summaryrefslogtreecommitdiff
path: root/modules/session/Wrapper.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-13 19:01:00 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-13 19:01:00 +1000
commit3fd429c9f30e1b8cffdeca2778c7eb20f8a0647f (patch)
treee2c2c8d8e812c7ed960b49686a159b9acaba7b09 /modules/session/Wrapper.qml
parentnotifs: move to drawers (diff)
downloadcaelestia-shell-3fd429c9f30e1b8cffdeca2778c7eb20f8a0647f.tar.gz
caelestia-shell-3fd429c9f30e1b8cffdeca2778c7eb20f8a0647f.tar.bz2
caelestia-shell-3fd429c9f30e1b8cffdeca2778c7eb20f8a0647f.zip
session: move to drawers
Diffstat (limited to 'modules/session/Wrapper.qml')
-rw-r--r--modules/session/Wrapper.qml56
1 files changed, 25 insertions, 31 deletions
diff --git a/modules/session/Wrapper.qml b/modules/session/Wrapper.qml
index 5806972..4f81d1a 100644
--- a/modules/session/Wrapper.qml
+++ b/modules/session/Wrapper.qml
@@ -1,23 +1,23 @@
+import "root:/services"
import "root:/config"
+import Quickshell
import QtQuick
Item {
id: root
- required property bool sessionVisible
- required property real contentWidth
- property bool shouldBeVisible
+ required property PersistentProperties visibilities
visible: width > 0
- width: 0
+ implicitWidth: 0
+ implicitHeight: content.height + BorderConfig.rounding * 2
states: State {
name: "visible"
- when: root.sessionVisible
+ when: root.visibilities.session
PropertyChanges {
- root.width: contentWidth
- root.shouldBeVisible: true
+ root.implicitWidth: content.width
}
}
@@ -26,37 +26,31 @@ Item {
from: ""
to: "visible"
- SequentialAnimation {
- PropertyAction {
- target: root
- property: "shouldBeVisible"
- }
- NumberAnimation {
- target: root
- property: "width"
- duration: Appearance.anim.durations.large
- easing.type: Easing.BezierSpline
- easing.bezierCurve: Appearance.anim.curves.emphasizedDecel
- }
+ NumberAnimation {
+ target: root
+ property: "implicitWidth"
+ duration: Appearance.anim.durations.large
+ easing.type: Easing.BezierSpline
+ easing.bezierCurve: Appearance.anim.curves.emphasizedDecel
}
},
Transition {
from: "visible"
to: ""
- SequentialAnimation {
- NumberAnimation {
- target: root
- property: "width"
- duration: Appearance.anim.durations.normal
- easing.type: Easing.BezierSpline
- easing.bezierCurve: Appearance.anim.curves.emphasizedAccel
- }
- PropertyAction {
- target: root
- property: "shouldBeVisible"
- }
+ NumberAnimation {
+ target: root
+ property: "implicitWidth"
+ duration: Appearance.anim.durations.normal
+ easing.type: Easing.BezierSpline
+ easing.bezierCurve: Appearance.anim.curves.emphasizedAccel
}
}
]
+
+ Content {
+ id: content
+
+ visibilities: root.visibilities
+ }
}