finished update

This commit is contained in:
2025-11-09 02:37:11 +01:00
parent 4acc1556b2
commit 089a5f7a49
6 changed files with 49 additions and 110 deletions
+48 -3
View File
@@ -1,6 +1,7 @@
pragma ComponentBehavior: Bound
import QtQuick
import Quickshell
import Quickshell.Io
import Quickshell.Wayland
import qs.Modules
@@ -30,7 +31,7 @@ PanelWindow {
id: getGifs
running: true
}
GifsLoader {
id: gifloader
gifsList: getGifs.gifsList
@@ -39,6 +40,32 @@ PanelWindow {
}
}
IpcHandler {
target: "command"
// Keybind swap layer
function toggleLayer(): void {
if ( !mainWindow.onTop ) {
mainWindow.WlrLayershell.layer = WlrLayer.Top
mainWindow.onTop = true
} else {
mainWindow.WlrLayershell.layer = WlrLayer.Bottom
mainWindow.onTop = false
}
}
// Keybind swap overlay
function toggleOverlay(): void {
if (!mainWindow.onTop) {
mainWindow.WlrLayershell.layer = WlrLayer.Overlay
mainWindow.onTop = true
} else {
mainWindow.WlrLayershell.layer = WlrLayer.Bottom
mainWindow.onTop = false
}
}
}
function petRegion( itemObject ) {
let newregion = regionComponent.createObject( pets, { "item": itemObject })
pets.regions.push( newregion )
@@ -49,7 +76,25 @@ PanelWindow {
Region { }
}
mask: Region {
id: pets
mask: Region {}
property var petMove: Region { id: pets }
property var noMove: Region {}
property bool setMask: false
IpcHandler {
target: "Mask"
function edmask(): void {
if ( !mainWindow.setMask ) {
mainWindow.mask = petMove
mainWindow.setMask = true
} else {
mainWindow.mask = noMove
mainWindow.setMask = false
}
}
}
}