mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 20:28:01 -06:00
Let quality intents menu use checkmark to indicate active profile
CURA-8928
This commit is contained in:
parent
fc577ffcbc
commit
cbbe961a44
3 changed files with 30 additions and 8 deletions
|
@ -19,10 +19,14 @@ Button
|
|||
id: button
|
||||
hoverEnabled: true
|
||||
leftPadding: UM.Theme.getSize("default_margin").width
|
||||
implicitWidth: UM.Theme.getSize("menu").width
|
||||
implicitHeight: UM.Theme.getSize("menu").height + UM.Theme.getSize("narrow_margin").height
|
||||
|
||||
background: Rectangle
|
||||
{
|
||||
id: backgroundRectanglewide_margin
|
||||
height: button.height
|
||||
width: button.width
|
||||
color: button.hovered ? UM.Theme.getColor("background_2"): UM.Theme.getColor("background_1")
|
||||
}
|
||||
|
||||
|
@ -37,11 +41,29 @@ Button
|
|||
return txt
|
||||
}
|
||||
|
||||
contentItem: UM.Label
|
||||
contentItem: Item
|
||||
{
|
||||
id: textLabel
|
||||
text: button.text != "" ? replaceText(button.text) : replaceText(button.labelText)
|
||||
height: contentHeight
|
||||
color: button.enabled ? UM.Theme.getColor("text") :UM.Theme.getColor("text_inactive")
|
||||
height: button.height
|
||||
width: button.width
|
||||
UM.RecolorImage
|
||||
{
|
||||
id: check
|
||||
height: UM.Theme.getSize("default_arrow").height
|
||||
width: height
|
||||
source: UM.Theme.getIcon("Check", "low")
|
||||
color: UM.Theme.getColor("setting_control_text")
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
visible: button.checked
|
||||
}
|
||||
UM.Label
|
||||
{
|
||||
id: textLabel
|
||||
text: button.text != "" ? replaceText(button.text) : replaceText(button.labelText)
|
||||
height: contentHeight
|
||||
color: button.enabled ? UM.Theme.getColor("text") :UM.Theme.getColor("text_inactive")
|
||||
anchors.left: check.right
|
||||
anchors.leftMargin: UM.Theme.getSize("narrow_margin").width
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue