summaryrefslogtreecommitdiff
path: root/modules/background
diff options
context:
space:
mode:
authorTim Hämisch <haemtim@gmail.com>2025-06-13 17:49:49 +0200
committerGitHub <noreply@github.com>2025-06-13 17:49:49 +0200
commit5fb727a4c8d9e89acc63a1c353202423bc7b120e (patch)
tree28839211a383025df53168993d090cdccaa9bf7a /modules/background
parentAdd shutdown, reboot, and logout actions to launcher (diff)
parentdocs: add contributing.md (diff)
downloadcaelestia-shell-5fb727a4c8d9e89acc63a1c353202423bc7b120e.tar.gz
caelestia-shell-5fb727a4c8d9e89acc63a1c353202423bc7b120e.tar.bz2
caelestia-shell-5fb727a4c8d9e89acc63a1c353202423bc7b120e.zip
Merge branch 'caelestia-dots:main' into betteractions
Diffstat (limited to 'modules/background')
-rw-r--r--modules/background/Wallpaper.qml14
1 files changed, 4 insertions, 10 deletions
diff --git a/modules/background/Wallpaper.qml b/modules/background/Wallpaper.qml
index 2734034..f4e3243 100644
--- a/modules/background/Wallpaper.qml
+++ b/modules/background/Wallpaper.qml
@@ -8,7 +8,7 @@ import QtQuick
Item {
id: root
- property url source: Wallpapers.current ? `file://${Wallpapers.current}` : ""
+ property string source: Wallpapers.current
property Image current: one
anchors.fill: parent
@@ -32,20 +32,14 @@ Item {
id: img
function update(): void {
- const srcPath = `${root.source}`.slice(7);
- if (thumbnail.originalPath === srcPath) {
+ if (path === root.source)
root.current = this;
- } else
- path = srcPath;
+ else
+ path = root.source;
}
anchors.fill: parent
- loadOriginal: true
- asynchronous: true
- cache: false
- fillMode: Image.PreserveAspectCrop
-
opacity: 0
scale: Wallpapers.showPreview ? 1 : 0.8