osd: partially revert last commit
Animate icon changes
This commit is contained in:
parent
469272cb48
commit
17ff34368d
1 changed files with 2 additions and 0 deletions
|
|
@ -57,6 +57,7 @@ Slider {
|
||||||
MaterialIcon {
|
MaterialIcon {
|
||||||
id: icon
|
id: icon
|
||||||
|
|
||||||
|
animate: true
|
||||||
text: root.icon
|
text: root.icon
|
||||||
color: Colours.palette.m3inverseOnSurface
|
color: Colours.palette.m3inverseOnSurface
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
@ -66,6 +67,7 @@ Slider {
|
||||||
when: handle.moving
|
when: handle.moving
|
||||||
|
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
|
icon.animate: false
|
||||||
icon.text: Math.round(root.value * 100)
|
icon.text: Math.round(root.value * 100)
|
||||||
icon.font.pointSize: Appearance.font.size.small
|
icon.font.pointSize: Appearance.font.size.small
|
||||||
icon.font.family: Appearance.font.family.sans
|
icon.font.family: Appearance.font.family.sans
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue