From 9a7cf1242d296dbdb9c03df48ab09054960295aa Mon Sep 17 00:00:00 2001 From: Leander Scherer Date: Mon, 18 May 2026 21:48:24 +0200 Subject: feat(quickshell): basic bar, tray, notification --- modules/system/quickshell/GlobalState.qml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 modules/system/quickshell/GlobalState.qml (limited to 'modules/system/quickshell/GlobalState.qml') diff --git a/modules/system/quickshell/GlobalState.qml b/modules/system/quickshell/GlobalState.qml new file mode 100644 index 0000000..c212967 --- /dev/null +++ b/modules/system/quickshell/GlobalState.qml @@ -0,0 +1,23 @@ +import QtQuick + +pragma Singleton + +// Shared state to coordinate which popup is currently open. +// Ensures only one menu is visible at a time. +QtObject { + property string activePopup: "" + + function open(name) { + activePopup = "" + activePopup = name + } + + function close() { + activePopup = "" + } + + function toggle(name) { + if (activePopup === name) activePopup = "" + else activePopup = name + } +} -- cgit v1.3.1