diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-23 23:04:28 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-23 23:04:28 +1000 |
| commit | 982a5a3e8de4abb322b53ea0bf77b5e57860540f (patch) | |
| tree | 59bff3a6eb8ea4c8de6d208465d0ea1361f15465 /modules/bar/popouts/Wrapper.qml | |
| parent | internal: better styled switch (diff) | |
| download | caelestia-shell-982a5a3e8de4abb322b53ea0bf77b5e57860540f.tar.gz caelestia-shell-982a5a3e8de4abb322b53ea0bf77b5e57860540f.tar.bz2 caelestia-shell-982a5a3e8de4abb322b53ea0bf77b5e57860540f.zip | |
dcontent: create bluetooth panel
Diffstat (limited to 'modules/bar/popouts/Wrapper.qml')
| -rw-r--r-- | modules/bar/popouts/Wrapper.qml | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/modules/bar/popouts/Wrapper.qml b/modules/bar/popouts/Wrapper.qml index 293f9d5..9a7f7c1 100644 --- a/modules/bar/popouts/Wrapper.qml +++ b/modules/bar/popouts/Wrapper.qml @@ -3,6 +3,7 @@ pragma ComponentBehavior: Bound import qs.services import qs.config import qs.modules.windowinfo +import qs.modules.detachedcontent import Quickshell import Quickshell.Wayland import Quickshell.Hyprland @@ -21,6 +22,7 @@ Item { property bool hasCurrent property string detachedMode + property string queuedMode readonly property bool isDetached: detachedMode.length > 0 property int animLength: Appearance.anim.durations.normal @@ -28,7 +30,12 @@ Item { function detach(mode: string): void { animLength = Appearance.anim.durations.large; - detachedMode = mode; + if (mode === "winfo") { + detachedMode = mode; + } else { + detachedMode = "any"; + queuedMode = mode; + } focus = true; } @@ -86,6 +93,19 @@ Item { } } + Comp { + id: detachedContent + + shouldBeActive: root.detachedMode === "any" + asynchronous: true + anchors.centerIn: parent + + sourceComponent: DetachedContent { + screen: root.screen + active: root.queuedMode + } + } + Behavior on x { Anim { duration: root.animLength |