adds files & wallpaper switcher toolbar

This commit is contained in:
2026-08-21 00:02:49 +02:00
parent 0a03db8fe6
commit 89af518e7d
10 changed files with 423 additions and 2 deletions
+23
View File
@@ -0,0 +1,23 @@
// GlobalStates.qml - a place to store global state variables accessible from any QML file.
pragma Singleton
import Quickshell
import QtQuick
Singleton {
id: root
// Used by the merged overview module (own/modules/overview) — see own/modules/overview/CREDITS.md
property bool overviewOpen: false
readonly property QtObject popups: QtObject {
property string active: ""
property real anchorX: 0
function open(name, ax) { popups.anchorX = ax ?? 0; popups.active = name }
function close() { popups.active = "" }
function toggle(name, ax) {
if (popups.active === name) { popups.active = "" }
else { popups.anchorX = ax ?? 0; popups.active = name }
}
}
}