summaryrefslogtreecommitdiff
path: root/modules/launcher
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/launcher
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/launcher')
-rw-r--r--modules/launcher/Content.qml8
-rw-r--r--modules/launcher/ContentList.qml26
-rw-r--r--modules/launcher/Wrapper.qml8
-rw-r--r--modules/launcher/items/CalcItem.qml10
4 files changed, 13 insertions, 39 deletions
diff --git a/modules/launcher/Content.qml b/modules/launcher/Content.qml
index a8d8422..7158cdd 100644
--- a/modules/launcher/Content.qml
+++ b/modules/launcher/Content.qml
@@ -182,18 +182,14 @@ Item {
}
Behavior on width {
- NumberAnimation {
+ Anim {
duration: Appearance.anim.durations.small
- easing.type: Easing.BezierSpline
- easing.bezierCurve: Appearance.anim.curves.standard
}
}
Behavior on opacity {
- NumberAnimation {
+ Anim {
duration: Appearance.anim.durations.small
- easing.type: Easing.BezierSpline
- easing.bezierCurve: Appearance.anim.curves.standard
}
}
}
diff --git a/modules/launcher/ContentList.qml b/modules/launcher/ContentList.qml
index d426d58..2eaa515 100644
--- a/modules/launcher/ContentList.qml
+++ b/modules/launcher/ContentList.qml
@@ -55,24 +55,20 @@ Item {
Behavior on state {
SequentialAnimation {
- NumberAnimation {
+ Anim {
target: root
property: "opacity"
from: 1
to: 0
duration: Appearance.anim.durations.small
- easing.type: Easing.BezierSpline
- easing.bezierCurve: Appearance.anim.curves.standard
}
PropertyAction {}
- NumberAnimation {
+ Anim {
target: root
property: "opacity"
from: 0
to: 1
duration: Appearance.anim.durations.small
- easing.type: Easing.BezierSpline
- easing.bezierCurve: Appearance.anim.curves.standard
}
}
}
@@ -148,28 +144,19 @@ Item {
}
Behavior on opacity {
- NumberAnimation {
- duration: Appearance.anim.durations.normal
- easing.type: Easing.BezierSpline
- easing.bezierCurve: Appearance.anim.curves.standard
- }
+ Anim {}
}
Behavior on scale {
- NumberAnimation {
- duration: Appearance.anim.durations.normal
- easing.type: Easing.BezierSpline
- easing.bezierCurve: Appearance.anim.curves.standard
- }
+ Anim {}
}
}
Behavior on implicitWidth {
enabled: root.visibilities.launcher
- NumberAnimation {
+ Anim {
duration: Appearance.anim.durations.large
- easing.type: Easing.BezierSpline
easing.bezierCurve: Appearance.anim.curves.emphasizedDecel
}
}
@@ -177,9 +164,8 @@ Item {
Behavior on implicitHeight {
enabled: root.visibilities.launcher
- NumberAnimation {
+ Anim {
duration: Appearance.anim.durations.large
- easing.type: Easing.BezierSpline
easing.bezierCurve: Appearance.anim.curves.emphasizedDecel
}
}
diff --git a/modules/launcher/Wrapper.qml b/modules/launcher/Wrapper.qml
index f1ab672..d977b07 100644
--- a/modules/launcher/Wrapper.qml
+++ b/modules/launcher/Wrapper.qml
@@ -1,3 +1,4 @@
+import qs.components
import qs.config
import Quickshell
import QtQuick
@@ -26,11 +27,10 @@ Item {
from: ""
to: "visible"
- NumberAnimation {
+ Anim {
target: root
property: "implicitHeight"
duration: Appearance.anim.durations.expressiveDefaultSpatial
- easing.type: Easing.BezierSpline
easing.bezierCurve: Appearance.anim.curves.expressiveDefaultSpatial
}
},
@@ -38,11 +38,9 @@ Item {
from: "visible"
to: ""
- NumberAnimation {
+ Anim {
target: root
property: "implicitHeight"
- duration: Appearance.anim.durations.normal
- easing.type: Easing.BezierSpline
easing.bezierCurve: Appearance.anim.curves.emphasized
}
}
diff --git a/modules/launcher/items/CalcItem.qml b/modules/launcher/items/CalcItem.qml
index 5e578d8..211ac61 100644
--- a/modules/launcher/items/CalcItem.qml
+++ b/modules/launcher/items/CalcItem.qml
@@ -130,11 +130,7 @@ Item {
opacity: stateLayer.containsMouse ? 1 : 0
Behavior on opacity {
- NumberAnimation {
- duration: Appearance.anim.durations.normal
- easing.type: Easing.BezierSpline
- easing.bezierCurve: Appearance.anim.curves.standard
- }
+ Anim {}
}
}
@@ -151,9 +147,7 @@ Item {
}
Behavior on implicitWidth {
- NumberAnimation {
- duration: Appearance.anim.durations.normal
- easing.type: Easing.BezierSpline
+ Anim {
easing.bezierCurve: Appearance.anim.curves.emphasized
}
}