refaktor
This commit is contained in:
@@ -4,8 +4,7 @@ import Quickshell
|
||||
import Quickshell.Io
|
||||
import Quickshell.Wayland
|
||||
|
||||
import "../../colors"
|
||||
import "../../states/wallpaperdir" as Global
|
||||
import "../../config"
|
||||
|
||||
Variants {
|
||||
id: root
|
||||
@@ -33,7 +32,7 @@ Variants {
|
||||
Keys.onPressed: event => {
|
||||
if (event.key == Qt.Key_Escape) {
|
||||
console.log("Pressed Escape, closing Wallpaper Picker")
|
||||
console.log("Wallpaper Dir:", Global.WallpaperState.wallpaperDir)
|
||||
console.log("Wallpaper Dir:", Config.wallpaperDir)
|
||||
wlogoutLoader.active = false
|
||||
} else {
|
||||
for (let i = 0; i < buttons.length; i++) {
|
||||
@@ -56,7 +55,7 @@ Variants {
|
||||
|
||||
Image {
|
||||
anchors.fill: parent
|
||||
source: Global.WallpaperState.wallpaperDir + "/Static/blurred.jpg"
|
||||
source: Config.wallpaperDir + "/Static/blurred.jpg"
|
||||
fillMode: Image.PreserveAspectCrop
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user