Correct line colour when hovered

A detail that I almost missed in the design examples.

Contributes to issue CURA-5876.
This commit is contained in:
Ghostkeeper 2018-11-27 14:06:07 +01:00
parent 1555a1ab17
commit b0e9f23eee
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -19,7 +19,7 @@ Button
{
height: childrenRect.height
color: parent.hovered ? UM.Theme.getColor("action_button_hovered") : UM.Theme.getColor("action_button")
border.color: parent.checked ? UM.Theme.getColor("primary") : UM.Theme.getColor("lining")
border.color: (parent.checked || parent.hovered) ? UM.Theme.getColor("primary") : UM.Theme.getColor("lining")
border.width: parent.checked ? UM.Theme.getSize("thick_lining").width : UM.Theme.getSize("default_lining").width
radius: UM.Theme.getSize("default_radius").width