Animate button enabled state change
This commit is contained in:
parent
ff7c2413df
commit
4f1884b121
|
@ -36,6 +36,7 @@ HBaseButton {
|
||||||
dimension: iconDimension || contentLayout.height
|
dimension: iconDimension || contentLayout.height
|
||||||
transform: iconTransform
|
transform: iconTransform
|
||||||
opacity: button.enabled ? 1 : 0.7
|
opacity: button.enabled ? 1 : 0.7
|
||||||
|
Behavior on opacity { HNumberAnimation {} }
|
||||||
|
|
||||||
Layout.topMargin: verticalMargin
|
Layout.topMargin: verticalMargin
|
||||||
Layout.bottomMargin: verticalMargin
|
Layout.bottomMargin: verticalMargin
|
||||||
|
@ -51,6 +52,7 @@ HBaseButton {
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
color: enabled ?
|
color: enabled ?
|
||||||
theme.colors.foreground : theme.colors.foregroundDim2
|
theme.colors.foreground : theme.colors.foregroundDim2
|
||||||
|
Behavior on color { HNumberAnimation {} }
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user