refractor: DeltaruneQuickshell -> Shell

This commit is contained in:
2026-01-23 23:28:40 +02:00
parent 2c32b17b16
commit edb941fe90
22 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,47 @@
import Quickshell
import Quickshell.Wayland
import Quickshell.Io
import "DialogBox"
PanelWindow {
id: baseDialog
anchors {
bottom: true
}
property bool isOpen: false
property string text: "(The power of Hyprland\nshines within you.)"
WlrLayershell.layer: WlrLayer.Overlay
WlrLayershell.focusable: false
WlrLayershell.keyboardFocus: WlrKeyboardFocus.None
WlrLayershell.namespace: "deltarune-quickshell-dialogbox"
visible: isOpen
exclusionMode: ExclusionMode.Ignore
aboveWindows: true
focusable: false
mask: Region {}
implicitHeight: 378
implicitWidth: 1334 - 147
color: '#000000ff'
DialogBox {
text: baseDialog.text
}
IpcHandler {
target: "deltarune.dialog"
enabled: true
function open(): void {
baseDialog.isOpen = true;
}
function close(): void {
baseDialog.isOpen = false;
}
function setText(text: string): void {
baseDialog.text = text.replace("\\n", "\n");
}
}
}