Add animations to hover effect

CURA-8421
This commit is contained in:
Jaime van Kessel 2021-09-22 09:48:27 +02:00
parent 90bfdce3bb
commit aa905a80fe
2 changed files with 3 additions and 0 deletions

View file

@ -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 } }
}
}

View file

@ -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 } }
}
}