From 0656e11afa28235aeee42e5219172e2e76f10f3d Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 22 Sep 2021 13:52:54 +0200 Subject: [PATCH] Fix styling of application button Fixes previous mistake that I made while simplifying the QML CURA-8421 --- resources/qml/ApplicationSwitcher/ApplicationButton.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/qml/ApplicationSwitcher/ApplicationButton.qml b/resources/qml/ApplicationSwitcher/ApplicationButton.qml index 3ea5dc6f37..bcf780753c 100644 --- a/resources/qml/ApplicationSwitcher/ApplicationButton.qml +++ b/resources/qml/ApplicationSwitcher/ApplicationButton.qml @@ -15,8 +15,10 @@ Button property alias displayName: applicationDisplayName.text property alias tooltipText: tooltip.text 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 borderColor { ColorAnimation { duration: 200; } } hoverEnabled: true width: UM.Theme.getSize("application_switcher_item").width @@ -24,8 +26,8 @@ Button background: Rectangle { - color: backgroundColor - border.color: backgroundColor + color:backgroundColor + border.color: borderColor border.width: UM.Theme.getSize("default_lining").width }