summaryrefslogtreecommitdiff
path: root/components/controls/FilledSlider.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/FilledSlider.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/FilledSlider.qml')
-rw-r--r--components/controls/FilledSlider.qml10
1 files changed, 3 insertions, 7 deletions
diff --git a/components/controls/FilledSlider.qml b/components/controls/FilledSlider.qml
index af60e9f..4ddbfda 100644
--- a/components/controls/FilledSlider.qml
+++ b/components/controls/FilledSlider.qml
@@ -80,25 +80,23 @@ Slider {
Behavior on moving {
SequentialAnimation {
- NumberAnimation {
+ Anim {
target: icon
property: "scale"
from: 1
to: 0
duration: Appearance.anim.durations.normal / 2
- easing.type: Easing.BezierSpline
easing.bezierCurve: Appearance.anim.curves.standardAccel
}
ScriptAction {
script: icon.update()
}
- NumberAnimation {
+ Anim {
target: icon
property: "scale"
from: 0
to: 1
duration: Appearance.anim.durations.normal / 2
- easing.type: Easing.BezierSpline
easing.bezierCurve: Appearance.anim.curves.standardDecel
}
}
@@ -128,10 +126,8 @@ Slider {
}
Behavior on value {
- NumberAnimation {
+ Anim {
duration: Appearance.anim.durations.large
- easing.type: Easing.BezierSpline
- easing.bezierCurve: Appearance.anim.curves.standard
}
}
}