From 982a5a3e8de4abb322b53ea0bf77b5e57860540f Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 23 Jul 2025 23:04:28 +1000 Subject: dcontent: create bluetooth panel --- modules/bar/popouts/Wrapper.qml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'modules/bar/popouts/Wrapper.qml') 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 -- cgit v1.2.3-freya