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
Behavior on color {
ColorAnimation { duration: 60 }
}
Rectangle {
id: buttonBackgroundOverlay
anchors.fill: parent
radius: parent.radius
color: "black"
opacity: 0
Behavior on opacity {
NumberAnimation { duration: 60 }
}
}
}