feat: healthbars + ipc
This commit is contained in:
36
shell.qml
36
shell.qml
@@ -1,19 +1,27 @@
|
||||
import Quickshell // for PanelWindow
|
||||
import QtQuick // for Text
|
||||
import QtQuick
|
||||
import Quickshell.Io
|
||||
import Quickshell
|
||||
import "DeltaruneQuickshell"
|
||||
|
||||
PanelWindow {
|
||||
anchors {
|
||||
top: true
|
||||
left: true
|
||||
right: true
|
||||
ShellRoot {
|
||||
id: baseShell
|
||||
property bool isOpen: !true
|
||||
|
||||
WLRLayerTopbar {
|
||||
visible: baseShell.isOpen
|
||||
}
|
||||
WLRLayerHealthbar {
|
||||
visible: baseShell.isOpen
|
||||
}
|
||||
// exclusionMode:x ExclusionMode.Ignore
|
||||
aboveWindows: true
|
||||
focusable: false
|
||||
|
||||
implicitHeight: 182
|
||||
color: "#000000"
|
||||
|
||||
DeltaruneTopbar {}
|
||||
IpcHandler {
|
||||
target: "deltarune.shell"
|
||||
enabled: true
|
||||
function open(): void {
|
||||
baseShell.isOpen = true;
|
||||
}
|
||||
function close(): void {
|
||||
baseShell.isOpen = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user