Perfection ~Zach

This commit is contained in:
2025-10-07 22:29:44 +02:00
parent ccd3456416
commit 8d39ad59c3
+18 -25
View File
@@ -1,3 +1,4 @@
pragma ComponentBehavior: Bound
import QtQuick import QtQuick
import Quickshell import Quickshell
import Quickshell.Wayland import Quickshell.Wayland
@@ -5,11 +6,19 @@ import Quickshell.Wayland
PanelWindow { PanelWindow {
id: mainWindow id: mainWindow
WlrLayershell.layer: WlrLayer.Bottom WlrLayershell.layer: WlrLayer.Top
color: "transparent" color: "transparent"
anchors {
bottom: true
left: true
}
surfaceFormat.opaque: false surfaceFormat.opaque: false
implicitWidth: screen.width implicitWidth: 320
implicitHeight: screen.height implicitHeight: 293
margins {
left: 0
bottom: 5
}
property bool onTop: true property bool onTop: true
@@ -23,35 +32,20 @@ PanelWindow {
} }
} }
ListModel { Rectangle {
id: petModels anchors.fill: parent
ListElement { color: "transparent"
width: 320;
height: 293;
x: 0;
y: 1124;
source: "./Gifs/evernight.gif"
}
}
Repeater {
model: petModels
delegate: Item {
width: model.width
height: model.height
x: model.x
y: model.y
id: petContainer
AnimatedImage { AnimatedImage {
anchors.fill: parent anchors.fill: parent
source: model.source source: "Gifs/evernight.gif"
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
} }
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
drag.target: parent acceptedButtons: Qt.MiddleButton
acceptedButtons: Qt.LeftButton | Qt.MiddleButton
onClicked: (mouse) => { onClicked: (mouse) => {
if (mouse.button === Qt.MiddleButton) { if (mouse.button === Qt.MiddleButton) {
mainWindow.toggleLayer() mainWindow.toggleLayer()
@@ -60,4 +54,3 @@ PanelWindow {
} }
} }
} }
}