47 lines
790 B
QML
47 lines
790 B
QML
import QtQuick
|
|
import Quickshell
|
|
import Quickshell.Io
|
|
|
|
import "components/Bar"
|
|
import "components/CommandPalette"
|
|
import "components/OSD"
|
|
import "components/Shared"
|
|
|
|
ShellRoot {
|
|
id: root
|
|
|
|
// --- Global State ---
|
|
property bool commandPaletteOpen: false
|
|
|
|
IpcHandler {
|
|
target: "commandPalette"
|
|
function toggle() {
|
|
commandPaletteOpen = !commandPaletteOpen;
|
|
}
|
|
}
|
|
|
|
IpcHandler {
|
|
target: "osd"
|
|
function showVolume() {
|
|
osd.show("volume");
|
|
}
|
|
function showBrightness() {
|
|
osd.show("brightness");
|
|
}
|
|
}
|
|
|
|
Bar {
|
|
id: bar
|
|
rootState: root
|
|
}
|
|
|
|
CommandPalette {
|
|
id: commandPalette
|
|
rootState: root
|
|
}
|
|
|
|
OSD {
|
|
id: osd
|
|
}
|
|
}
|