From 1a37e76c4a0c0b4b4ffffdb7f328cbe327e7698c Mon Sep 17 00:00:00 2001 From: ocbwoy3 Date: Sat, 24 Jan 2026 00:23:54 +0200 Subject: [PATCH] chore: upd --- CONSTANTS.txt | 13 ++++++++++--- Shell/Topbar/Topbar.qml | 3 +++ Shell/Topbar/topbar/DarkDollarsDisplay.qml | 7 ++++--- Shell/Window/Window.qml | 19 +++++++++++++++++++ Shell/{ => Window}/border.png | Bin shell.qml | 6 +++--- 6 files changed, 39 insertions(+), 9 deletions(-) create mode 100644 Shell/Window/Window.qml rename Shell/{ => Window}/border.png (100%) diff --git a/CONSTANTS.txt b/CONSTANTS.txt index fb2b0dc..ba71d31 100644 --- a/CONSTANTS.txt +++ b/CONSTANTS.txt @@ -9,8 +9,8 @@ top bar: option items: selected: #ffc90e unselected: #614e6b - gap: 76px - top: 45px + gap: 76 + top: 45 selection soul offset frop top left: x: 19 @@ -26,4 +26,11 @@ top bar: offset x: 2 offset y: 2 color: #04047C - \ No newline at end of file + + settings: + with 9slice borders: + x: 1217 + y: 767 + without: + x: 1154 + y: 504 \ No newline at end of file diff --git a/Shell/Topbar/Topbar.qml b/Shell/Topbar/Topbar.qml index 63ecc64..8d5094e 100644 --- a/Shell/Topbar/Topbar.qml +++ b/Shell/Topbar/Topbar.qml @@ -7,6 +7,7 @@ Item { id: topbar implicitWidth: 1312 implicitHeight: 182 + anchors.centerIn: parent property var iconSources: ["item.png", "equip.png", "power.png", "config.png"] @@ -31,6 +32,7 @@ Item { Image { source: "./topbar/setting_names/" + topbar.iconSources[topbar.selectedIndex] + x: -64 } FocusScope { @@ -46,6 +48,7 @@ Item { spacing: 76 anchors.horizontalCenter: parent.horizontalCenter y: 45 + anchors.horizontalCenterOffset: -38 Repeater { model: topbar.iconSources diff --git a/Shell/Topbar/topbar/DarkDollarsDisplay.qml b/Shell/Topbar/topbar/DarkDollarsDisplay.qml index e4c99a4..79b7bdf 100644 --- a/Shell/Topbar/topbar/DarkDollarsDisplay.qml +++ b/Shell/Topbar/topbar/DarkDollarsDisplay.qml @@ -4,11 +4,12 @@ import QtQuick Item { Text { - x: 1064 + 117 - y: 37 + 9 + x: 1064 + 117 - 75 + y: 37 + 9 + 1 color: "#ffffff" text: "D$ 4294" - font.pixelSize: 64 + font.pixelSize: 16 * 4 // nearest to 72 + antialiasing: false font.family: "8bitoperator JVE" } diff --git a/Shell/Window/Window.qml b/Shell/Window/Window.qml new file mode 100644 index 0000000..0b34e8f --- /dev/null +++ b/Shell/Window/Window.qml @@ -0,0 +1,19 @@ +import Quickshell +import Quickshell.Wayland +import QtQuick + +PanelWindow { + WlrLayershell.layer: WlrLayer.Top + WlrLayershell.focusable: true + WlrLayershell.keyboardFocus: WlrKeyboardFocus.OnDemand + WlrLayershell.namespace: "deltarune-quickshell" + + visible: true + exclusionMode: ExclusionMode.Ignore + aboveWindows: true + focusable: true + + implicitWidth: 1217 + implicitHeight: 767 + color: "#000000" +} diff --git a/Shell/border.png b/Shell/Window/border.png similarity index 100% rename from Shell/border.png rename to Shell/Window/border.png diff --git a/shell.qml b/shell.qml index b7947f1..31e095d 100644 --- a/shell.qml +++ b/shell.qml @@ -22,7 +22,7 @@ ShellRoot { triggerDescription: "Toggle the menu" name: "shell_toggle" onReleased: { - ShellStateManager.toggleShell() + ShellStateManager.toggleShell(); } } @@ -30,10 +30,10 @@ ShellRoot { target: "deltarune.shell" enabled: true function open(): void { - ShellStateManager.openShell() + ShellStateManager.openShell(); } function close(): void { - ShellStateManager.closeShell() + ShellStateManager.closeShell(); } } }