noctalia-shell/Widgets/Background.qml
Sébastien Atoch 40f157a0ff Wallpapers without SWWW
- Apply wallpaper to all screen
- Improve the overall look of the "backdrop" overview bg with a slight
coloring
2025-07-29 10:38:33 -04:00

43 lines
No EOL
1.1 KiB
QML

import QtQuick
import Quickshell
import Quickshell.Wayland
import qs.Services
import qs.Settings
ShellRoot {
property string wallpaperSource: WallpaperManager.currentWallpaper !== "" && !Settings.settings.useSWWW ? WallpaperManager.currentWallpaper : ""
Variants {
model: Quickshell.screens
PanelWindow {
required property ShellScreen modelData
visible: wallpaperSource !== ""
anchors {
bottom: true
top: true
right: true
left: true
}
margins {
top: 0
}
color: "transparent"
screen: modelData
WlrLayershell.layer: WlrLayer.Background
WlrLayershell.exclusionMode: ExclusionMode.Ignore
WlrLayershell.namespace: "quickshell-wallpaper"
Image {
anchors.fill: parent
fillMode: Image.PreserveAspectCrop
source: wallpaperSource
visible: wallpaperSource !== ""
cache: true
smooth: true
}
}
}
}