Switch checked and hovered themes

I misunderstood the theme as it was in the screenshots.

Contributes to issue CURA-5876.
This commit is contained in:
Ghostkeeper 2018-11-27 13:05:32 +01:00
parent 81cadf702c
commit c6a9aca346
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -22,9 +22,9 @@ Button
contentItem: Rectangle
{
height: childrenRect.height
color: parent.checked ? UM.Theme.getColor("action_button_hovered") : UM.Theme.getColor("action_button")
border.color: parent.hovered ? UM.Theme.getColor("primary") : UM.Theme.getColor("lining")
border.width: parent.hovered ? UM.Theme.getSize("thick_lining").width : UM.Theme.getSize("default_lining").width
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.width: parent.checked ? UM.Theme.getSize("thick_lining").width : UM.Theme.getSize("default_lining").width
radius: UM.Theme.getSize("default_radius").width
Column