mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 00:16:04 +08:00
Changed behaviour of hoover over button
Per request of UX Contributes to CURA-8558
This commit is contained in:
parent
a58891ce58
commit
cbf83e500d
@ -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…
x
Reference in New Issue
Block a user