mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-10-10 15:27:53 -06:00
Add "star" icon to profile dropdown when there are customised settings
Contributes to CURA-909
This commit is contained in:
parent
00afebbc0d
commit
81a015015d
3 changed files with 20 additions and 1 deletions
|
@ -32,8 +32,9 @@ Item{
|
|||
color: UM.Theme.getColor("text");
|
||||
}
|
||||
|
||||
|
||||
ToolButton {
|
||||
property int rightMargin: customisedSettings.visible ? customisedSettings.width + UM.Theme.getSize("default_margin").width / 2 : 0
|
||||
|
||||
id: globalProfileSelection
|
||||
text: UM.MachineManager.activeProfile
|
||||
width: parent.width/100*55
|
||||
|
@ -83,5 +84,21 @@ Item{
|
|||
}
|
||||
}
|
||||
}
|
||||
UM.SimpleButton {
|
||||
id: customisedSettings
|
||||
|
||||
visible: UM.ActiveProfile.hasCustomisedValues
|
||||
height: parent.height * 0.6
|
||||
width: parent.height * 0.6
|
||||
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: UM.Theme.getSize("setting_preferences_button_margin").width
|
||||
|
||||
color: hovered ? UM.Theme.getColor("setting_control_button_hover") : UM.Theme.getColor("setting_control_button");
|
||||
iconSource: UM.Theme.getIcon("star");
|
||||
|
||||
onClicked: base.manageProfilesAction.trigger()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue