Add small hover-effect to small buttons

This commit is contained in:
fieldOfView 2015-12-15 16:47:07 +01:00
parent a900b02ae8
commit 4bf4a20d44
3 changed files with 5 additions and 4 deletions

View file

@ -104,7 +104,7 @@ Item {
height: parent.height/2 height: parent.height/2
sourceSize.width: width sourceSize.width: width
sourceSize.height: 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 source: UM.Theme.icons.cross1
} }
} }

View file

@ -106,7 +106,7 @@ Rectangle {
height: UM.Theme.sizes.save_button_specs_icons.height height: UM.Theme.sizes.save_button_specs_icons.height
sourceSize.width: width sourceSize.width: width
sourceSize.height: 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; source: UM.Theme.icons.pencil;
} }
} }

View file

@ -64,7 +64,7 @@
"text": [24, 41, 77, 255], "text": [24, 41, 77, 255],
"text_inactive": [174, 174, 174, 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_pressed": [12, 169, 227, 255],
"text_white": [255, 255, 255, 255], "text_white": [255, 255, 255, 255],
"text_subtext": [127, 127, 127, 255], "text_subtext": [127, 127, 127, 255],
@ -135,7 +135,8 @@
"setting_control_border_highlight": [12, 169, 227, 255], "setting_control_border_highlight": [12, 169, 227, 255],
"setting_control_text": [24, 41, 77, 255], "setting_control_text": [24, 41, 77, 255],
"setting_control_depth_line": [127, 127, 127, 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_unit": [127, 127, 127, 255],
"setting_validation_error": [255, 57, 14, 255], "setting_validation_error": [255, 57, 14, 255],
"setting_validation_warning": [255, 186, 15, 255], "setting_validation_warning": [255, 186, 15, 255],