Changed behaviour of hoover over button

Per request of UX

Contributes to CURA-8558
This commit is contained in:
Jelle Spijker 2021-11-04 10:04:59 +01:00 committed by Jelle Spijker
parent a58891ce58
commit cbf83e500d
No known key found for this signature in database
GPG key ID: 6662DC033BE6B99A

View file

@ -14,11 +14,13 @@ Button
height: childrenRect.height
hoverEnabled: true
property color borderColor: hovered ? UM.Theme.getColor("primary") : "transparent"
property color backgroundColor: hovered ? UM.Theme.getColor("action_button_hovered") : UM.Theme.getColor("action_button")
background: Rectangle
{
color: UM.Theme.getColor("action_button")
border.color: "transparent"
color: backgroundColor
border.color: borderColor
border.width: UM.Theme.getSize("default_lining").width
}