summaryrefslogtreecommitdiff
path: root/modules/areapicker
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 /modules/areapicker
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 'modules/areapicker')
-rw-r--r--modules/areapicker/Picker.qml17
1 files changed, 8 insertions, 9 deletions
diff --git a/modules/areapicker/Picker.qml b/modules/areapicker/Picker.qml
index cd94047..0584b51 100644
--- a/modules/areapicker/Picker.qml
+++ b/modules/areapicker/Picker.qml
@@ -140,17 +140,17 @@ MouseArea {
to: 0
duration: Appearance.anim.durations.large
}
- Anim {
+ ExAnim {
target: root
properties: "rsx,rsy"
to: 0
}
- Anim {
+ ExAnim {
target: root
property: "sw"
to: root.screen.width
}
- Anim {
+ ExAnim {
target: root
property: "sh"
to: root.screen.height
@@ -256,30 +256,29 @@ MouseArea {
Behavior on rsx {
enabled: !root.pressed
- Anim {}
+ ExAnim {}
}
Behavior on rsy {
enabled: !root.pressed
- Anim {}
+ ExAnim {}
}
Behavior on sw {
enabled: !root.pressed
- Anim {}
+ ExAnim {}
}
Behavior on sh {
enabled: !root.pressed
- Anim {}
+ ExAnim {}
}
- component Anim: NumberAnimation {
+ component ExAnim: Anim {
duration: Appearance.anim.durations.expressiveDefaultSpatial
- easing.type: Easing.BezierSpline
easing.bezierCurve: Appearance.anim.curves.expressiveDefaultSpatial
}
}