summaryrefslogtreecommitdiff
path: root/modules/background/Background.qml
diff options
context:
space:
mode:
authorUnrectified <83581717+Unrectified@users.noreply.github.com>2026-02-19 12:34:21 +0100
committerGitHub <noreply@github.com>2026-02-19 22:34:21 +1100
commit69adb9208723467014cf21f401f2ba1804f38376 (patch)
tree626e199469ed037b89a6665abdb6a7fe2ff905f3 /modules/background/Background.qml
parentlauncher: add favorite apps (#946) (diff)
downloadcaelestia-shell-69adb9208723467014cf21f401f2ba1804f38376.tar.gz
caelestia-shell-69adb9208723467014cf21f401f2ba1804f38376.tar.bz2
caelestia-shell-69adb9208723467014cf21f401f2ba1804f38376.zip
feat: add wallpaperEnabled option (#1187)
* fix: change background color to none allowing other wallpaper engine and background enabled * feat: add wallpaperEnabled property and toggle in appearance settings * fix background: Make it "black" if wallpaper is enabled, otherwise "transparent" * fix: separate Visualiser from Wallpaper (hope I didn't made more shit buh) * fix: transparency not working & layer position * fix --------- Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Diffstat (limited to 'modules/background/Background.qml')
-rw-r--r--modules/background/Background.qml12
1 files changed, 9 insertions, 3 deletions
diff --git a/modules/background/Background.qml b/modules/background/Background.qml
index f8484e1..682da62 100644
--- a/modules/background/Background.qml
+++ b/modules/background/Background.qml
@@ -22,8 +22,9 @@ Loader {
screen: modelData
name: "background"
WlrLayershell.exclusionMode: ExclusionMode.Ignore
- WlrLayershell.layer: WlrLayer.Background
- color: "black"
+ WlrLayershell.layer: Config.background.wallpaperEnabled ? WlrLayer.Background : WlrLayer.Bottom
+ color: Config.background.wallpaperEnabled ? "black" : "transparent"
+ surfaceFormat.opaque: false
anchors.top: true
anchors.bottom: true
@@ -35,8 +36,13 @@ Loader {
anchors.fill: parent
- Wallpaper {
+ Loader {
id: wallpaper
+
+ anchors.fill: parent
+ active: Config.background.wallpaperEnabled
+
+ sourceComponent: Wallpaper {}
}
Visualiser {