[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 anchors.fill: parent
boundsMovement : Flickable.StopAtBounds boundsMovement : Flickable.StopAtBounds
//Provide width for column palette: root.palette
//Note no size provided for the last column (bool comp) so it uses its automated size
// 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] } columnWidthProvider: function (column) { return intrinsicModel.columnWidths[column] }
model: intrinsicModel model: intrinsicModel

View file

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