Animate HButton color changes
This commit is contained in:
parent
f2c84d5260
commit
4024eee460
@ -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 }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user