summaryrefslogtreecommitdiff
path: root/modules/background/Background.qml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/background/Background.qml12
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/background/Background.qml b/modules/background/Background.qml
index f7c0a3f..0acce6b 100644
--- a/modules/background/Background.qml
+++ b/modules/background/Background.qml
@@ -10,7 +10,6 @@ import Quickshell.Wayland
import QtQuick
Loader {
- asynchronous: true
active: Config.background.enabled
sourceComponent: Variants {
@@ -27,16 +26,19 @@ Loader {
WlrLayershell.layer: WlrLayer.Background
color: "black"
- anchors.top: true
- anchors.bottom: true
- anchors.left: true
- anchors.right: true
+ WlrLayershell.anchors {
+ top: true
+ bottom: true
+ left: true
+ right: true
+ }
Image {
id: wallpaper
anchors.fill: parent
asynchronous: true
+ fillMode: Image.PreserveAspectCrop
source: Paths.wallpaper ?? ""
}