From aa905a80fec6dfa22c06619b57b87682033063d3 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 22 Sep 2021 09:48:27 +0200 Subject: [PATCH] Add animations to hover effect CURA-8421 --- resources/qml/Account/AccountWidget.qml | 2 ++ resources/qml/MainWindow/MainWindowHeader.qml | 1 + 2 files changed, 3 insertions(+) diff --git a/resources/qml/Account/AccountWidget.qml b/resources/qml/Account/AccountWidget.qml index ceb3988ca4..b058ead22f 100644 --- a/resources/qml/Account/AccountWidget.qml +++ b/resources/qml/Account/AccountWidget.qml @@ -42,6 +42,7 @@ Item radius: parent.radius color: UM.Theme.getColor("primary_text") opacity: signInButton.hovered ? 0.2 : 0 + Behavior on opacity { NumberAnimation { duration: 100 } } } } @@ -108,6 +109,7 @@ Item radius: parent.radius color: UM.Theme.getColor("primary_text") opacity: accountWidget.hovered ? 0.2 : 0 + Behavior on opacity { NumberAnimation { duration: 100 } } } } diff --git a/resources/qml/MainWindow/MainWindowHeader.qml b/resources/qml/MainWindow/MainWindowHeader.qml index 5282731537..815ddff732 100644 --- a/resources/qml/MainWindow/MainWindowHeader.qml +++ b/resources/qml/MainWindow/MainWindowHeader.qml @@ -108,6 +108,7 @@ Item radius: parent.radius color: UM.Theme.getColor("primary_text") opacity: marketplaceButton.hovered ? 0.2 : 0 + Behavior on opacity { NumberAnimation { duration: 100 } } } }