diff --git a/dots/.config/quickshell/ii/modules/common/widgets/StyledSwitch.qml b/dots/.config/quickshell/ii/modules/common/widgets/StyledSwitch.qml index f16e213fd..871ce550f 100644 --- a/dots/.config/quickshell/ii/modules/common/widgets/StyledSwitch.qml +++ b/dots/.config/quickshell/ii/modules/common/widgets/StyledSwitch.qml @@ -45,13 +45,25 @@ Switch { anchors.leftMargin: root.checked ? ((root.pressed || root.down) ? (22 * root.scale) : 24 * root.scale) : ((root.pressed || root.down) ? (2 * root.scale) : 8 * root.scale) Behavior on anchors.leftMargin { - animation: Appearance.animation.elementMove.numberAnimation.createObject(this) + NumberAnimation { + duration: Appearance.animationCurves.expressiveFastSpatialDuration + easing.type: Easing.BezierCurve + easing.bezierCurve: Appearance.animationCurves.expressiveFastSpatial + } } Behavior on width { - animation: Appearance.animation.elementMove.numberAnimation.createObject(this) + NumberAnimation { + duration: Appearance.animationCurves.expressiveFastSpatialDuration + easing.type: Easing.BezierCurve + easing.bezierCurve: Appearance.animationCurves.expressiveFastSpatial + } } Behavior on height { - animation: Appearance.animation.elementMove.numberAnimation.createObject(this) + NumberAnimation { + duration: Appearance.animationCurves.expressiveFastSpatialDuration + easing.type: Easing.BezierCurve + easing.bezierCurve: Appearance.animationCurves.expressiveFastSpatial + } } Behavior on color { animation: Appearance.animation.elementMoveFast.colorAnimation.createObject(this)