55 lines
1.7 KiB
QML
55 lines
1.7 KiB
QML
import QtQuick
|
|
import QtQuick.Effects
|
|
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 {
|
|
top: true
|
|
bottom: true
|
|
right: true
|
|
left: true
|
|
}
|
|
color: "transparent"
|
|
screen: modelData
|
|
WlrLayershell.layer: WlrLayer.Background
|
|
WlrLayershell.exclusionMode: ExclusionMode.Ignore
|
|
WlrLayershell.namespace: "quickshell-overview"
|
|
Image {
|
|
id: bgImage
|
|
anchors.fill: parent
|
|
fillMode: Image.PreserveAspectCrop
|
|
source: wallpaperSource
|
|
cache: true
|
|
smooth: true
|
|
visible: wallpaperSource !== "" // Show the original for FastBlur input
|
|
}
|
|
MultiEffect {
|
|
id: overviewBgBlur
|
|
anchors.fill: parent
|
|
source: bgImage
|
|
blurEnabled: true
|
|
blur: 0.48 // controls blur strength (0 to 1)
|
|
blurMax: 128 // max blur radius in pixels
|
|
}
|
|
Rectangle {
|
|
anchors.fill: parent
|
|
color: Qt.rgba(
|
|
Theme.backgroundPrimary.r,
|
|
Theme.backgroundPrimary.g,
|
|
Theme.backgroundPrimary.b, 0.5)
|
|
}
|
|
}
|
|
}
|
|
}
|