This commit is contained in:
2025-10-19 23:34:16 +02:00
parent cbd67c3c34
commit c57e90d65e
4 changed files with 99 additions and 14 deletions
+13 -10
View File
@@ -11,17 +11,18 @@ PanelWindow {
WlrLayershell.layer: WlrLayer.Top
color: "transparent"
anchors {
bottom: true
left: true
bottom: true
}
surfaceFormat.opaque: false
implicitWidth: 320
implicitHeight: 293
margins {
left: 0
bottom: 9
}
surfaceFormat.opaque: false
implicitWidth: 320
implicitHeight: 293
property bool onTop: true
IpcHandler {
@@ -29,23 +30,23 @@ PanelWindow {
// Keybind swap layer
function toggleLayer(): void {
if (!onTop) {
if ( !mainWindow.onTop ) {
mainWindow.WlrLayershell.layer = WlrLayer.Top
onTop = true
mainWindow.onTop = true
} else {
mainWindow.WlrLayershell.layer = WlrLayer.Bottom
onTop = false
mainWindow.onTop = false
}
}
// Keybind swap overlay
function toggleOverlay(): void {
if (!onTop) {
if (!mainWindow.onTop) {
mainWindow.WlrLayershell.layer = WlrLayer.Overlay
onTop = true
mainWindow.onTop = true
} else {
mainWindow.WlrLayershell.layer = WlrLayer.Bottom
onTop = false
mainWindow.onTop = false
}
}
}
@@ -57,4 +58,6 @@ PanelWindow {
PetMarch{
id:petMarch
}
Areapicker{}
}