Browse Source

Add animations to hover effect

CURA-8421
Jaime van Kessel 3 years ago
parent
commit
aa905a80fe

+ 2 - 0
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 } }
                 }
             }
 

+ 1 - 0
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 } }
             }
         }