summaryrefslogtreecommitdiff
path: root/components/controls/StyledSwitch.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-24 17:22:00 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-24 17:22:00 +1000
commit6e8a32d4e40e25e1c077394f1638a43176ebf9ed (patch)
tree26704741e0c3a41a9ca461c7bc148f58553bf8f7 /components/controls/StyledSwitch.qml
parentinternal: add canim component (diff)
downloadcaelestia-shell-6e8a32d4e40e25e1c077394f1638a43176ebf9ed.tar.gz
caelestia-shell-6e8a32d4e40e25e1c077394f1638a43176ebf9ed.tar.bz2
caelestia-shell-6e8a32d4e40e25e1c077394f1638a43176ebf9ed.zip
internal: use Anim component
Diffstat (limited to 'components/controls/StyledSwitch.qml')
-rw-r--r--components/controls/StyledSwitch.qml12
1 files changed, 3 insertions, 9 deletions
diff --git a/components/controls/StyledSwitch.qml b/components/controls/StyledSwitch.qml
index af5c07d..ecc1076 100644
--- a/components/controls/StyledSwitch.qml
+++ b/components/controls/StyledSwitch.qml
@@ -39,7 +39,7 @@ Switch {
opacity: root.pressed ? 0.1 : root.hovered ? 0.08 : 0
Behavior on opacity {
- NumberAnim {}
+ Anim {}
}
}
@@ -129,11 +129,11 @@ Switch {
}
Behavior on x {
- NumberAnim {}
+ Anim {}
}
Behavior on implicitWidth {
- NumberAnim {}
+ Anim {}
}
}
}
@@ -144,12 +144,6 @@ Switch {
enabled: false
}
- component NumberAnim: NumberAnimation {
- duration: Appearance.anim.durations.normal
- easing.type: Easing.BezierSpline
- easing.bezierCurve: Appearance.anim.curves.standard
- }
-
component PropAnim: PropertyAnimation {
duration: Appearance.anim.durations.normal
easing.type: Easing.BezierSpline