simplify things by moving popups into a new layer
This commit is contained in:
parent
6f2bc1a107
commit
4410d41fb3
10 changed files with 223 additions and 199 deletions
15
modules/Services/WidgetTracker.qml
Normal file
15
modules/Services/WidgetTracker.qml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
pragma Singleton
|
||||
import Quickshell
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
property string current: ""
|
||||
property ShellScreen screen: null
|
||||
function toggle(name, scr) {
|
||||
current = (current === name && screen === scr) ? "" : name;
|
||||
screen = scr;
|
||||
}
|
||||
function close() {
|
||||
current = "";
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue