Only one ShellRoot in shell.qml

This commit is contained in:
quadbyte 2025-08-10 11:56:43 -04:00
parent dacb40921c
commit 2ed3488453
3 changed files with 75 additions and 74 deletions

View file

@ -3,33 +3,31 @@ import Quickshell
import Quickshell.Wayland import Quickshell.Wayland
import qs.Services import qs.Services
ShellRoot {
property var modelData
property string wallpaperSource: Qt.resolvedUrl(
"../../Assets/Tests/wallpaper.png")
Variants { Variants {
model: Quickshell.screens model: Quickshell.screens
PanelWindow { PanelWindow {
required property ShellScreen modelData required property ShellScreen modelData
property string wallpaperSource: Qt.resolvedUrl("../../Assets/Tests/wallpaper.png")
visible: wallpaperSource !== "" visible: wallpaperSource !== ""
color: "transparent"
screen: modelData
WlrLayershell.layer: WlrLayer.Background
WlrLayershell.exclusionMode: ExclusionMode.Ignore
WlrLayershell.namespace: "quickshell-wallpaper"
anchors { anchors {
bottom: true bottom: true
top: true top: true
right: true right: true
left: true left: true
} }
margins { margins {
top: 0 top: 0
} }
color: "transparent"
screen: modelData
WlrLayershell.layer: WlrLayer.Background
WlrLayershell.exclusionMode: ExclusionMode.Ignore
WlrLayershell.namespace: "quickshell-wallpaper"
Image { Image {
anchors.fill: parent anchors.fill: parent
fillMode: Image.PreserveAspectCrop fillMode: Image.PreserveAspectCrop
@ -39,6 +37,7 @@ ShellRoot {
smooth: true smooth: true
mipmap: false mipmap: false
} }
} }
}
} }

View file

@ -4,31 +4,30 @@ import Quickshell
import Quickshell.Wayland import Quickshell.Wayland
import qs.Services import qs.Services
ShellRoot {
property string wallpaperSource: Qt.resolvedUrl(
"../../Assets/Tests/wallpaper.png")
property var modelData
Variants { Variants {
model: Quickshell.screens model: Quickshell.screens
PanelWindow { PanelWindow {
required property ShellScreen modelData required property ShellScreen modelData
property string wallpaperSource: Qt.resolvedUrl("../../Assets/Tests/wallpaper.png")
visible: wallpaperSource !== "" visible: wallpaperSource !== ""
color: "transparent"
screen: modelData
WlrLayershell.layer: WlrLayer.Background
WlrLayershell.exclusionMode: ExclusionMode.Ignore
WlrLayershell.namespace: "quickshell-overview"
anchors { anchors {
top: true top: true
bottom: true bottom: true
right: true right: true
left: true left: true
} }
color: "transparent"
screen: modelData
WlrLayershell.layer: WlrLayer.Background
WlrLayershell.exclusionMode: ExclusionMode.Ignore
WlrLayershell.namespace: "quickshell-overview"
Image { Image {
id: bgImage id: bgImage
anchors.fill: parent anchors.fill: parent
fillMode: Image.PreserveAspectCrop fillMode: Image.PreserveAspectCrop
source: wallpaperSource source: wallpaperSource
@ -37,19 +36,22 @@ ShellRoot {
mipmap: false mipmap: false
visible: wallpaperSource !== "" visible: wallpaperSource !== ""
} }
MultiEffect { MultiEffect {
id: overviewBgBlur id: overviewBgBlur
anchors.fill: parent anchors.fill: parent
source: bgImage source: bgImage
blurEnabled: true blurEnabled: true
blur: 0.48 blur: 0.48
blurMax: 128 blurMax: 128
} }
Rectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
color: Qt.rgba(Colors.backgroundPrimary.r, Colors.backgroundPrimary.g, color: Qt.rgba(Colors.backgroundPrimary.r, Colors.backgroundPrimary.g, Colors.backgroundPrimary.b, 0.5)
Colors.backgroundPrimary.b, 0.5)
}
} }
} }
} }

0
Modules/Bar/Bars.qml Normal file
View file