Perfection ~Zach
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
pragma ComponentBehavior: Bound
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Wayland
|
||||
@@ -5,11 +6,19 @@ import Quickshell.Wayland
|
||||
|
||||
PanelWindow {
|
||||
id: mainWindow
|
||||
WlrLayershell.layer: WlrLayer.Bottom
|
||||
WlrLayershell.layer: WlrLayer.Top
|
||||
color: "transparent"
|
||||
anchors {
|
||||
bottom: true
|
||||
left: true
|
||||
}
|
||||
surfaceFormat.opaque: false
|
||||
implicitWidth: screen.width
|
||||
implicitHeight: screen.height
|
||||
implicitWidth: 320
|
||||
implicitHeight: 293
|
||||
margins {
|
||||
left: 0
|
||||
bottom: 5
|
||||
}
|
||||
|
||||
property bool onTop: true
|
||||
|
||||
@@ -23,35 +32,20 @@ PanelWindow {
|
||||
}
|
||||
}
|
||||
|
||||
ListModel {
|
||||
id: petModels
|
||||
ListElement {
|
||||
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
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: "transparent"
|
||||
|
||||
id: petContainer
|
||||
AnimatedImage {
|
||||
anchors.fill: parent
|
||||
source: model.source
|
||||
source: "Gifs/evernight.gif"
|
||||
fillMode: Image.PreserveAspectFit
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
drag.target: parent
|
||||
acceptedButtons: Qt.LeftButton | Qt.MiddleButton
|
||||
acceptedButtons: Qt.MiddleButton
|
||||
onClicked: (mouse) => {
|
||||
if (mouse.button === Qt.MiddleButton) {
|
||||
mainWindow.toggleLayer()
|
||||
@@ -59,5 +53,4 @@ PanelWindow {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user