mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Apply theming to perObjectCategory
CURA-8688
This commit is contained in:
parent
b03fbc0d6d
commit
7fd6601b1a
1 changed files with 6 additions and 8 deletions
|
@ -28,8 +28,8 @@ Button {
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
height: (label.height / 2) | 0
|
height: (label.height / 2) | 0
|
||||||
width: height
|
width: height
|
||||||
source: base.checked ? UM.Theme.getIcon("ChevronSingleDown") : UM.Theme.getIcon("ChevronSingleRight");
|
source: base.checked ? UM.Theme.getIcon("ChevronSingleDown") : UM.Theme.getIcon("ChevronSingleRight")
|
||||||
color: base.hovered ? palette.highlight : palette.buttonText
|
color: base.hovered ? UM.Theme.getColor("primary_button_hover"): UM.Theme.getColor("primary_button_text")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
UM.RecolorImage
|
UM.RecolorImage
|
||||||
|
@ -38,22 +38,20 @@ Button {
|
||||||
height: label.height
|
height: label.height
|
||||||
width: height
|
width: height
|
||||||
source: UM.Theme.getIcon(definition.icon)
|
source: UM.Theme.getIcon(definition.icon)
|
||||||
color: base.hovered ? palette.highlight : palette.buttonText
|
color: base.hovered ? UM.Theme.getColor("primary_button_hover") : UM.Theme.getColor("primary_button_text")
|
||||||
}
|
}
|
||||||
UM.Label
|
UM.Label
|
||||||
{
|
{
|
||||||
id: label
|
id: label
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
text: base.text
|
text: base.text
|
||||||
color: base.hovered ? palette.highlight : palette.buttonText
|
color: base.hovered ? UM.Theme.getColor("primary_button_hover") : UM.Theme.getColor("primary_button_text")
|
||||||
font.bold: true
|
font.bold: true
|
||||||
}
|
}
|
||||||
|
|
||||||
SystemPalette { id: palette }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
signal showTooltip(string text);
|
signal showTooltip(string text)
|
||||||
signal hideTooltip();
|
signal hideTooltip()
|
||||||
signal contextMenuRequested()
|
signal contextMenuRequested()
|
||||||
|
|
||||||
text: definition.label
|
text: definition.label
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue