quickshell: BackgroundImage: enable backgounds again
Signed-off-by: Bloxx12 <charlie@charlieroot.dev> Change-Id: I6a6a6964a68815e795aa84d4a173542c01893d35
This commit is contained in:
parent
49882fbae8
commit
45179ade64
1 changed files with 12 additions and 12 deletions
|
@ -10,9 +10,9 @@ PanelWindow {
|
||||||
WlrLayershell.layer: WlrLayer.Background
|
WlrLayershell.layer: WlrLayer.Background
|
||||||
WlrLayershell.namespace: "shell:background"
|
WlrLayershell.namespace: "shell:background"
|
||||||
|
|
||||||
// property string basePath: "file:///home/cr/Documents/Backgrounds/"
|
property string basePath: "file:///home/cr/Documents/Backgrounds/"
|
||||||
// property var absPath: folderModel.get(Math.floor(Math.random() * folderModel.count), "filePath")
|
property var absPath: folderModel.get(Math.floor(Math.random() * folderModel.count), "filePath")
|
||||||
// property var finalPath: absPath
|
property var finalPath: absPath
|
||||||
|
|
||||||
// property bool _: log()
|
// property bool _: log()
|
||||||
// function log() {
|
// function log() {
|
||||||
|
@ -22,7 +22,7 @@ PanelWindow {
|
||||||
// }
|
// }
|
||||||
FolderListModel {
|
FolderListModel {
|
||||||
id: folderModel
|
id: folderModel
|
||||||
// folder: root.basePath
|
folder: root.basePath
|
||||||
nameFilters: ["*.png"]
|
nameFilters: ["*.png"]
|
||||||
showDirs: false
|
showDirs: false
|
||||||
showFiles: true
|
showFiles: true
|
||||||
|
@ -35,14 +35,14 @@ PanelWindow {
|
||||||
right: true
|
right: true
|
||||||
}
|
}
|
||||||
|
|
||||||
// Item {
|
Item {
|
||||||
// id: background
|
id: background
|
||||||
// anchors.fill: parent
|
anchors.fill: parent
|
||||||
// Image {
|
Image {
|
||||||
// id: image
|
id: image
|
||||||
// source: Qt.resolvedUrl(root.finalPath)
|
source: Qt.resolvedUrl(root.finalPath)
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
Timer {
|
Timer {
|
||||||
id: timer
|
id: timer
|
||||||
// 10 minutes
|
// 10 minutes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue