Fix setting visibility styling working in one theme and not the other.

CURA-8688
This commit is contained in:
j.delarago 2022-03-02 09:06:47 +01:00
parent 5dfc5971e3
commit b2bed4efdd
4 changed files with 10 additions and 5 deletions

View file

@ -35,7 +35,8 @@ Item
model: columnHeaders
Rectangle
{
width: Math.max(1, Math.round(tableBase.width / headerRepeater.count))
//minimumWidth: Math.max(1, Math.round(tableBase.width / headerRepeater.count))
width: 300
height: UM.Theme.getSize("section").height
color: UM.Theme.getColor("secondary")

View file

@ -12,7 +12,7 @@ Button {
id: base;
background: Rectangle {
color: UM.Theme.getColor("background_3")
color: UM.Theme.getColor("category_background")
}
contentItem: Row
@ -31,7 +31,7 @@ Button {
height: (label.height / 2) | 0
width: height
source: base.checked ? UM.Theme.getIcon("ChevronSingleDown") : UM.Theme.getIcon("ChevronSingleRight")
color: base.hovered ? UM.Theme.getColor("primary_button_hover"): UM.Theme.getColor("primary_button_text")
color: base.hovered ? UM.Theme.getColor("primary_button_hover"): UM.Theme.getColor("text")
}
}
UM.RecolorImage
@ -40,14 +40,14 @@ Button {
height: label.height
width: height
source: UM.Theme.getIcon(definition.icon)
color: base.hovered ? UM.Theme.getColor("primary_button_hover") : UM.Theme.getColor("primary_button_text")
color: base.hovered ? UM.Theme.getColor("primary_button_hover") : UM.Theme.getColor("text")
}
UM.Label
{
id: label
anchors.verticalCenter: parent.verticalCenter
text: base.text
color: base.hovered ? UM.Theme.getColor("primary_button_hover") : UM.Theme.getColor("primary_button_text")
color: base.hovered ? UM.Theme.getColor("primary_button_hover") : UM.Theme.getColor("text")
font.bold: true
}
}

View file

@ -164,6 +164,8 @@
"checkbox_text": "text_default",
"checkbox_disabled": "background_2",
"category_background": "background_3",
"tooltip": "background_2",
"tooltip_text": "text_default",

View file

@ -332,6 +332,8 @@
"checkbox_disabled": "background_2",
"checkbox_text": [0, 12, 26, 255],
"category_background": "background_2",
"tooltip": [25, 25, 25, 255],
"tooltip_text": [255, 255, 255, 255],