summaryrefslogtreecommitdiff
path: root/modules/dashboard/Wrapper.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-28 21:42:21 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-28 21:42:21 +1000
commit1518b37b9b8fd5cbd6531d641d3d0679e2155be0 (patch)
tree9a8b5e2f81e4acc7f7220cb507ef84ffb7055acc /modules/dashboard/Wrapper.qml
parentpicker: sort client rects (diff)
downloadcaelestia-shell-1518b37b9b8fd5cbd6531d641d3d0679e2155be0.tar.gz
caelestia-shell-1518b37b9b8fd5cbd6531d641d3d0679e2155be0.tar.bz2
caelestia-shell-1518b37b9b8fd5cbd6531d641d3d0679e2155be0.zip
dashboard: loader content
Diffstat (limited to 'modules/dashboard/Wrapper.qml')
-rw-r--r--modules/dashboard/Wrapper.qml17
1 files changed, 15 insertions, 2 deletions
diff --git a/modules/dashboard/Wrapper.qml b/modules/dashboard/Wrapper.qml
index e043904..26f6d5b 100644
--- a/modules/dashboard/Wrapper.qml
+++ b/modules/dashboard/Wrapper.qml
@@ -1,3 +1,5 @@
+pragma ComponentBehavior: Bound
+
import QtQuick
import Quickshell
import "root:/config"
@@ -6,6 +8,9 @@ Item {
id: root
required property PersistentProperties visibilities
+ readonly property PersistentProperties state: PersistentProperties {
+ property int currentTab
+ }
visible: height > 0
implicitHeight: 0
@@ -47,9 +52,17 @@ Item {
}
]
- Content {
+ Loader {
id: content
- visibilities: root.visibilities
+ Component.onCompleted: active = Qt.binding(() => root.visibilities.dashboard || root.visible)
+
+ anchors.horizontalCenter: parent.horizontalCenter
+ anchors.bottom: parent.bottom
+
+ sourceComponent: Content {
+ visibilities: root.visibilities
+ state: root.state
+ }
}
}