[ui] Fix color for MaterialToolLabel

The name of the property used to set the color was ambiguous, causing
the colors to not be applied at all.
This commit is contained in:
Candice Bentéjac 2024-11-22 16:54:58 +01:00
parent 66e3dd409d
commit 05a742a221
3 changed files with 7 additions and 4 deletions

View file

@ -120,7 +120,7 @@ Item {
iconText: MaterialIcons.loop
label: (root.iteration + 1) + "/" + root.loopSize + " "
color: palette.base
labelIconColor: palette.base
ToolTip.text: "Foreach Loop"
}

View file

@ -12,7 +12,7 @@ Item {
property alias iconText: iconItem.text
property alias iconSize: iconItem.font.pointSize
property alias label: labelItem.text
property var color: palette.text
property var labelIconColor: palette.text
implicitWidth: childrenRect.width
implicitHeight: childrenRect.height
anchors.rightMargin: 5
@ -24,12 +24,12 @@ Item {
font.pointSize: 13
padding: 0
text: ""
color: color
color: labelIconColor
}
Label {
id: labelItem
text: ""
color: color
color: labelIconColor
}
}

View file

@ -252,6 +252,7 @@ FloatingPane {
return 0
}
labelIconColor: palette.text
ToolTip.text: "Number Of Cameras In Current Resection Group"
visible: Viewer3DSettings.displayResectionIds
}
@ -269,6 +270,7 @@ FloatingPane {
return currentCameras
}
labelIconColor: palette.text
ToolTip.text: "Number Of Cumulated Cameras"
visible: Viewer3DSettings.displayResectionIds
}
@ -285,6 +287,7 @@ FloatingPane {
return totalCameras
}
labelIconColor: palette.text
ToolTip.text: "Total Number Of Cameras"
visible: Viewer3DSettings.displayResectionIds
}