summaryrefslogtreecommitdiff
path: root/modules/session
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/session
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/session')
-rw-r--r--modules/session/Wrapper.qml9
1 files changed, 3 insertions, 6 deletions
diff --git a/modules/session/Wrapper.qml b/modules/session/Wrapper.qml
index ee485a9..facb0ff 100644
--- a/modules/session/Wrapper.qml
+++ b/modules/session/Wrapper.qml
@@ -1,3 +1,4 @@
+import qs.components
import qs.config
import Quickshell
import QtQuick
@@ -25,11 +26,9 @@ Item {
from: ""
to: "visible"
- NumberAnimation {
+ Anim {
target: root
property: "implicitWidth"
- duration: Appearance.anim.durations.normal
- easing.type: Easing.BezierSpline
easing.bezierCurve: Appearance.anim.curves.expressiveDefaultSpatial
}
},
@@ -37,11 +36,9 @@ Item {
from: "visible"
to: ""
- NumberAnimation {
+ Anim {
target: root
property: "implicitWidth"
- duration: root.visibilities.osd ? Appearance.anim.durations.normal : Appearance.anim.durations.normal
- easing.type: Easing.BezierSpline
easing.bezierCurve: root.visibilities.osd ? Appearance.anim.curves.expressiveDefaultSpatial : Appearance.anim.curves.emphasized
}
}