From cf0efea4c3bead690d69ce04f08d04c51f5e722f Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Wed, 13 Jun 2018 12:25:52 +0200 Subject: [PATCH] Fix reset to formula button and use new icon CURA-5407 --- resources/qml/Settings/SettingItem.qml | 4 +- resources/themes/cura-light/icons/formula.svg | 53 +++++++++++++++++++ 2 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 resources/themes/cura-light/icons/formula.svg diff --git a/resources/qml/Settings/SettingItem.qml b/resources/qml/Settings/SettingItem.qml index 013371e528..48b3cd306d 100644 --- a/resources/qml/Settings/SettingItem.qml +++ b/resources/qml/Settings/SettingItem.qml @@ -264,7 +264,7 @@ Item { { // Another special case. The setting that is overriden is only 1 instance container deeper, // so we can remove it. - propertyProvider.removeFromContainer(0) + propertyProvider.removeFromContainer(last_entry - 1) } else { @@ -281,7 +281,7 @@ Item { color: UM.Theme.getColor("setting_control_button") hoverColor: UM.Theme.getColor("setting_control_button_hover") - iconSource: UM.Theme.getIcon("notice"); + iconSource: UM.Theme.getIcon("formula"); onEntered: { hoverTimer.stop(); base.showTooltip(catalog.i18nc("@label", "This setting is normally calculated, but it currently has an absolute value set.\n\nClick to restore the calculated value.")) } onExited: base.showTooltip(base.tooltipText); diff --git a/resources/themes/cura-light/icons/formula.svg b/resources/themes/cura-light/icons/formula.svg new file mode 100644 index 0000000000..ae810bc014 --- /dev/null +++ b/resources/themes/cura-light/icons/formula.svg @@ -0,0 +1,53 @@ + + + + + + image/svg+xml + + + + + + + +