From 7fa9f858568caa7bbda050f6e459045cbba7d2f8 Mon Sep 17 00:00:00 2001 From: inorishio Date: Tue, 21 Oct 2025 22:48:57 +0200 Subject: [PATCH] clean up --- Functions/ToggleLayer.qml | 15 --------------- Modules/PetMarch.qml | 5 ----- shell.qml | 6 ++---- 3 files changed, 2 insertions(+), 24 deletions(-) delete mode 100644 Functions/ToggleLayer.qml diff --git a/Functions/ToggleLayer.qml b/Functions/ToggleLayer.qml deleted file mode 100644 index 91a81b7..0000000 --- a/Functions/ToggleLayer.qml +++ /dev/null @@ -1,15 +0,0 @@ -import QtQuick -import Quickshell.Wayland - -QtObject { - // The main toggle function - function toggleLayer() { - if (!onTop) { - mainWindow.WlrLayershell.layer = WlrLayer.Top - onTop = true - } else { - mainWindow.WlrLayershell.layer = WlrLayer.Bottom - onTop = false - } - } -} diff --git a/Modules/PetMarch.qml b/Modules/PetMarch.qml index e9a2817..bf7d3e6 100644 --- a/Modules/PetMarch.qml +++ b/Modules/PetMarch.qml @@ -1,14 +1,9 @@ -pragma ComponentBehavior: Bound import QtQuick import Quickshell.Io import Quickshell.Wayland Rectangle { - color: "transparent" - anchors.fill: parent - AnimatedImage { - anchors.fill: parent source: "../Gifs/evernight.gif" fillMode: Image.PreserveAspectFit } diff --git a/shell.qml b/shell.qml index bda7f1f..69a46fc 100644 --- a/shell.qml +++ b/shell.qml @@ -24,11 +24,9 @@ PanelWindow { implicitWidth: 320 implicitHeight: 293 - ToggleLayer { - id: toggleHelper - } - PetMarch { id: petMarch + color: mainWindow.color + anchors.fill: parent } }