From 4bf4a20d44dd160e3a6d4a8bcb3f66ced1aa8f72 Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Tue, 15 Dec 2015 16:47:07 +0100 Subject: [PATCH] Add small hover-effect to small buttons --- plugins/PerObjectSettingsTool/PerObjectSettingsPanel.qml | 2 +- resources/qml/JobSpecs.qml | 2 +- resources/themes/cura/theme.json | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/PerObjectSettingsTool/PerObjectSettingsPanel.qml b/plugins/PerObjectSettingsTool/PerObjectSettingsPanel.qml index 1a10db90e3..6095b9ad96 100644 --- a/plugins/PerObjectSettingsTool/PerObjectSettingsPanel.qml +++ b/plugins/PerObjectSettingsTool/PerObjectSettingsPanel.qml @@ -104,7 +104,7 @@ Item { height: parent.height/2 sourceSize.width: width sourceSize.height: width - color: UM.Theme.colors.setting_control_revert + color: control.hovered ? UM.Theme.colors.setting_control_button_hover : UM.Theme.colors.setting_control_button source: UM.Theme.icons.cross1 } } diff --git a/resources/qml/JobSpecs.qml b/resources/qml/JobSpecs.qml index dbcda42b5e..56fae1b0b8 100644 --- a/resources/qml/JobSpecs.qml +++ b/resources/qml/JobSpecs.qml @@ -106,7 +106,7 @@ Rectangle { height: UM.Theme.sizes.save_button_specs_icons.height sourceSize.width: width sourceSize.height: width - color: UM.Theme.colors.setting_control_text + color: control.hovered ? UM.Theme.colors.setting_control_button_hover : UM.Theme.colors.text source: UM.Theme.icons.pencil; } } diff --git a/resources/themes/cura/theme.json b/resources/themes/cura/theme.json index 861b0c50d1..1c56cce1d5 100644 --- a/resources/themes/cura/theme.json +++ b/resources/themes/cura/theme.json @@ -64,7 +64,7 @@ "text": [24, 41, 77, 255], "text_inactive": [174, 174, 174, 255], - "text_hover": [35, 35, 35, 255], + "text_hover": [70, 84, 113, 255], "text_pressed": [12, 169, 227, 255], "text_white": [255, 255, 255, 255], "text_subtext": [127, 127, 127, 255], @@ -135,7 +135,8 @@ "setting_control_border_highlight": [12, 169, 227, 255], "setting_control_text": [24, 41, 77, 255], "setting_control_depth_line": [127, 127, 127, 255], - "setting_control_revert": [127, 127, 127, 255], + "setting_control_button": [127, 127, 127, 255], + "setting_control_button_hover": [70, 84, 113, 255], "setting_unit": [127, 127, 127, 255], "setting_validation_error": [255, 57, 14, 255], "setting_validation_warning": [255, 186, 15, 255],