Add hover effect to quality/intent selector

CURA-6598
This commit is contained in:
Jaime van Kessel 2019-08-06 15:19:01 +02:00
parent 210a2aa6bb
commit 5ab31df738

View File

@ -58,6 +58,7 @@ Item
anchors.right: parent.right
width: UM.Theme.getSize("print_setup_big_item").width
height: textLabel.contentHeight + 2 * UM.Theme.getSize("narrow_margin").height
hoverEnabled: true
contentItem: Label
{
@ -72,7 +73,8 @@ Item
background: Rectangle
{
border.color: UM.Theme.getColor("lining")
id: backgroundItem
border.color: intentSelection.hovered ? UM.Theme.getColor("setting_control_border_highlight") : UM.Theme.getColor("setting_control_border")
border.width: UM.Theme.getSize("default_lining").width
radius: UM.Theme.getSize("default_radius").width
color: UM.Theme.getColor("main_background")