diff --git a/resources/qml/ProfileSetup.qml b/resources/qml/ProfileSetup.qml index e8d966ae40..62d37e8ed3 100644 --- a/resources/qml/ProfileSetup.qml +++ b/resources/qml/ProfileSetup.qml @@ -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() + } } } diff --git a/resources/themes/cura/icons/star.svg b/resources/themes/cura/icons/star.svg new file mode 100644 index 0000000000..e550b36575 --- /dev/null +++ b/resources/themes/cura/icons/star.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/resources/themes/cura/styles.qml b/resources/themes/cura/styles.qml index 1d0b385fc2..e89966daa4 100644 --- a/resources/themes/cura/styles.qml +++ b/resources/themes/cura/styles.qml @@ -34,6 +34,7 @@ QtObject { anchors.left: parent.left; anchors.leftMargin: Theme.getSize("setting_unit_margin").width anchors.right: downArrow.left; + anchors.rightMargin: control.rightMargin; anchors.verticalCenter: parent.verticalCenter; font: Theme.getFont("default") }