mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 20:58:58 +08:00
Apply theming to perObjectCategory
CURA-8688
This commit is contained in:
parent
b03fbc0d6d
commit
7fd6601b1a
@ -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…
x
Reference in New Issue
Block a user