From 45179ade6423c7d0518324468caf3e1eddb7374d Mon Sep 17 00:00:00 2001 From: Bloxx12 Date: Sat, 19 Jul 2025 19:26:54 +0200 Subject: [PATCH] quickshell: BackgroundImage: enable backgounds again Signed-off-by: Bloxx12 Change-Id: I6a6a6964a68815e795aa84d4a173542c01893d35 --- .../shell/modules/BackgroundImage.qml | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/modules/style/quickshell/shell/modules/BackgroundImage.qml b/modules/style/quickshell/shell/modules/BackgroundImage.qml index b0710aa..9cf0ded 100644 --- a/modules/style/quickshell/shell/modules/BackgroundImage.qml +++ b/modules/style/quickshell/shell/modules/BackgroundImage.qml @@ -10,9 +10,9 @@ PanelWindow { WlrLayershell.layer: WlrLayer.Background WlrLayershell.namespace: "shell:background" - // property string basePath: "file:///home/cr/Documents/Backgrounds/" - // property var absPath: folderModel.get(Math.floor(Math.random() * folderModel.count), "filePath") - // property var finalPath: absPath + property string basePath: "file:///home/cr/Documents/Backgrounds/" + property var absPath: folderModel.get(Math.floor(Math.random() * folderModel.count), "filePath") + property var finalPath: absPath // property bool _: log() // function log() { @@ -22,7 +22,7 @@ PanelWindow { // } FolderListModel { id: folderModel - // folder: root.basePath + folder: root.basePath nameFilters: ["*.png"] showDirs: false showFiles: true @@ -35,14 +35,14 @@ PanelWindow { right: true } - // Item { - // id: background - // anchors.fill: parent - // Image { - // id: image - // source: Qt.resolvedUrl(root.finalPath) - // } - // } + Item { + id: background + anchors.fill: parent + Image { + id: image + source: Qt.resolvedUrl(root.finalPath) + } + } Timer { id: timer // 10 minutes