[ImageGallery] Use palette's colors for the text of the intrinsics display

This commit is contained in:
Candice Bentéjac 2025-01-22 20:14:20 +01:00
parent f1a83628a6
commit 7c9a869d99
2 changed files with 10 additions and 8 deletions

View file

@ -557,8 +557,10 @@ Panel {
anchors.fill: parent
boundsMovement : Flickable.StopAtBounds
//Provide width for column
//Note no size provided for the last column (bool comp) so it uses its automated size
palette: root.palette
// Provide width for column
// Note no size provided for the last column (bool comp) so it uses its automated size
columnWidthProvider: function (column) { return intrinsicModel.columnWidths[column] }
model: intrinsicModel

View file

@ -67,12 +67,12 @@ RowLayout {
width: intrinsicModel.columnWidths[columnIndex]
horizontalAlignment: TextInput.AlignRight
readOnly: root.readOnly
color: 'white'
color: palette.text
padding: 12
selectByMouse: true
selectionColor: 'white'
selectionColor: palette.text
selectedTextColor: Qt.darker(palette.window, 1.1)
onEditingFinished: _reconstruction.setAttribute(attribute, text)
@ -93,13 +93,13 @@ RowLayout {
text: model.display.value
width: intrinsicModel.columnWidths[columnIndex]
horizontalAlignment: TextInput.AlignRight
color: 'white'
color: palette.text
readOnly: root.readOnly
padding: 12
selectByMouse: true
selectionColor: 'white'
selectionColor: palette.text
selectedTextColor: Qt.darker(palette.window, 1.1)
IntValidator {
@ -164,11 +164,11 @@ RowLayout {
width: intrinsicModel.columnWidths[columnIndex]
horizontalAlignment: TextInput.AlignRight
color: 'white'
color: palette.text
padding: 12
selectByMouse: true
selectionColor: 'white'
selectionColor: palette.text
selectedTextColor: Qt.darker(palette.window, 1.1)
readOnly: root.readOnly