styled switch: use correct anim curve for colors

This commit is contained in:
end-4
2025-05-25 20:37:35 +02:00
parent 16d96ae7ee
commit 8b439d8917
@@ -22,10 +22,10 @@ Switch {
border.color: root.checked ? Appearance.m3colors.m3primary : Appearance.m3colors.m3outline border.color: root.checked ? Appearance.m3colors.m3primary : Appearance.m3colors.m3outline
Behavior on color { Behavior on color {
animation: Appearance.animation.elementMove.colorAnimation.createObject(this) animation: Appearance.animation.elementMoveFast.colorAnimation.createObject(this)
} }
Behavior on border.color { Behavior on border.color {
animation: Appearance.animation.elementMove.colorAnimation.createObject(this) animation: Appearance.animation.elementMoveFast.colorAnimation.createObject(this)
} }
} }
@@ -49,7 +49,7 @@ Switch {
animation: Appearance.animation.elementMove.numberAnimation.createObject(this) animation: Appearance.animation.elementMove.numberAnimation.createObject(this)
} }
Behavior on color { Behavior on color {
animation: Appearance.animation.elementMove.colorAnimation.createObject(this) animation: Appearance.animation.elementMoveFast.colorAnimation.createObject(this)
} }
} }
} }