mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-22 04:29:01 +08:00
Fix styling of application button
Fixes previous mistake that I made while simplifying the QML CURA-8421
This commit is contained in:
parent
e39675e447
commit
0656e11afa
@ -15,8 +15,10 @@ Button
|
|||||||
property alias displayName: applicationDisplayName.text
|
property alias displayName: applicationDisplayName.text
|
||||||
property alias tooltipText: tooltip.text
|
property alias tooltipText: tooltip.text
|
||||||
property bool isExternalLink: false
|
property bool isExternalLink: false
|
||||||
property color backgroundColor: hovered ? UM.Theme.getColor("primary") : "transparent"
|
property color borderColor: hovered ? UM.Theme.getColor("primary") : "transparent"
|
||||||
|
property color backgroundColor: hovered ? UM.Theme.getColor("action_button_hovered") : UM.Theme.getColor("action_button")
|
||||||
Behavior on backgroundColor { ColorAnimation { duration: 200; } }
|
Behavior on backgroundColor { ColorAnimation { duration: 200; } }
|
||||||
|
Behavior on borderColor { ColorAnimation { duration: 200; } }
|
||||||
|
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
width: UM.Theme.getSize("application_switcher_item").width
|
width: UM.Theme.getSize("application_switcher_item").width
|
||||||
@ -24,8 +26,8 @@ Button
|
|||||||
|
|
||||||
background: Rectangle
|
background: Rectangle
|
||||||
{
|
{
|
||||||
color: backgroundColor
|
color:backgroundColor
|
||||||
border.color: backgroundColor
|
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