mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-27 04:41:06 -07:00
Changed behaviour of hoover over button
Per request of UX Contributes to CURA-8558
This commit is contained in:
parent
a58891ce58
commit
cbf83e500d
1 changed files with 4 additions and 2 deletions
|
|
@ -14,11 +14,13 @@ Button
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
|
|
||||||
hoverEnabled: true
|
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
|
background: Rectangle
|
||||||
{
|
{
|
||||||
color: UM.Theme.getColor("action_button")
|
color: backgroundColor
|
||||||
border.color: "transparent"
|
border.color: borderColor
|
||||||
border.width: UM.Theme.getSize("default_lining").width
|
border.width: UM.Theme.getSize("default_lining").width
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue