Animate HButton color changes

This commit is contained in:
miruka 2019-05-13 12:49:52 -04:00
parent f2c84d5260
commit 4024eee460

View File

@ -46,12 +46,20 @@ Button {
) )
radius: circle ? height : 0 radius: circle ? height : 0
Behavior on color {
ColorAnimation { duration: 60 }
}
Rectangle { Rectangle {
id: buttonBackgroundOverlay id: buttonBackgroundOverlay
anchors.fill: parent anchors.fill: parent
radius: parent.radius radius: parent.radius
color: "black" color: "black"
opacity: 0 opacity: 0
Behavior on opacity {
NumberAnimation { duration: 60 }
}
} }
} }