35 lines
675 B
QML
35 lines
675 B
QML
|
pragma Singleton
|
||
|
pragma ComponentBehavior: Bound
|
||
|
|
||
|
import QtQuick
|
||
|
import QtQuick.Layouts
|
||
|
import QtQuick.Controls
|
||
|
import Quickshell
|
||
|
import Quickshell.Io
|
||
|
import Quickshell.Wayland
|
||
|
import Quickshell.Widgets
|
||
|
import Quickshell.Services.SystemTray
|
||
|
|
||
|
Singleton {
|
||
|
PersistentProperties {
|
||
|
id: persist
|
||
|
property bool launcherOpen: false
|
||
|
}
|
||
|
|
||
|
IpcHandler {
|
||
|
target: "launcher"
|
||
|
|
||
|
function open(): void {
|
||
|
persist.launcherOpen = true;
|
||
|
}
|
||
|
|
||
|
function close(): void {
|
||
|
persist.launcherOpen = false;
|
||
|
}
|
||
|
|
||
|
function toggle(): void {
|
||
|
persist.launcherOpen = !persist.launcherOpen;
|
||
|
}
|
||
|
}
|
||
|
}
|