Only one ShellRoot in shell.qml
This commit is contained in:
parent
dacb40921c
commit
2ed3488453
3 changed files with 75 additions and 74 deletions
|
|
@ -3,42 +3,41 @@ import Quickshell
|
||||||
import Quickshell.Wayland
|
import Quickshell.Wayland
|
||||||
import qs.Services
|
import qs.Services
|
||||||
|
|
||||||
ShellRoot {
|
Variants {
|
||||||
|
|
||||||
property var modelData
|
|
||||||
property string wallpaperSource: Qt.resolvedUrl(
|
|
||||||
"../../Assets/Tests/wallpaper.png")
|
|
||||||
|
|
||||||
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 !== ""
|
|
||||||
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 !== ""
|
visible: wallpaperSource !== ""
|
||||||
cache: true
|
color: "transparent"
|
||||||
smooth: true
|
screen: modelData
|
||||||
mipmap: false
|
WlrLayershell.layer: WlrLayer.Background
|
||||||
}
|
WlrLayershell.exclusionMode: ExclusionMode.Ignore
|
||||||
|
WlrLayershell.namespace: "quickshell-wallpaper"
|
||||||
|
|
||||||
|
anchors {
|
||||||
|
bottom: true
|
||||||
|
top: true
|
||||||
|
right: true
|
||||||
|
left: true
|
||||||
|
}
|
||||||
|
|
||||||
|
margins {
|
||||||
|
top: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
Image {
|
||||||
|
anchors.fill: parent
|
||||||
|
fillMode: Image.PreserveAspectCrop
|
||||||
|
source: wallpaperSource
|
||||||
|
visible: wallpaperSource !== ""
|
||||||
|
cache: true
|
||||||
|
smooth: true
|
||||||
|
mipmap: false
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,52 +4,54 @@ import Quickshell
|
||||||
import Quickshell.Wayland
|
import Quickshell.Wayland
|
||||||
import qs.Services
|
import qs.Services
|
||||||
|
|
||||||
ShellRoot {
|
Variants {
|
||||||
property string wallpaperSource: Qt.resolvedUrl(
|
|
||||||
"../../Assets/Tests/wallpaper.png")
|
|
||||||
property var modelData
|
|
||||||
|
|
||||||
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 !== ""
|
|
||||||
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
|
|
||||||
mipmap: false
|
|
||||||
visible: wallpaperSource !== ""
|
visible: wallpaperSource !== ""
|
||||||
}
|
color: "transparent"
|
||||||
MultiEffect {
|
screen: modelData
|
||||||
id: overviewBgBlur
|
WlrLayershell.layer: WlrLayer.Background
|
||||||
anchors.fill: parent
|
WlrLayershell.exclusionMode: ExclusionMode.Ignore
|
||||||
source: bgImage
|
WlrLayershell.namespace: "quickshell-overview"
|
||||||
blurEnabled: true
|
|
||||||
blur: 0.48
|
anchors {
|
||||||
blurMax: 128
|
top: true
|
||||||
}
|
bottom: true
|
||||||
Rectangle {
|
right: true
|
||||||
anchors.fill: parent
|
left: true
|
||||||
color: Qt.rgba(Colors.backgroundPrimary.r, Colors.backgroundPrimary.g,
|
}
|
||||||
Colors.backgroundPrimary.b, 0.5)
|
|
||||||
}
|
Image {
|
||||||
|
id: bgImage
|
||||||
|
|
||||||
|
anchors.fill: parent
|
||||||
|
fillMode: Image.PreserveAspectCrop
|
||||||
|
source: wallpaperSource
|
||||||
|
cache: true
|
||||||
|
smooth: true
|
||||||
|
mipmap: false
|
||||||
|
visible: wallpaperSource !== ""
|
||||||
|
}
|
||||||
|
|
||||||
|
MultiEffect {
|
||||||
|
id: overviewBgBlur
|
||||||
|
|
||||||
|
anchors.fill: parent
|
||||||
|
source: bgImage
|
||||||
|
blurEnabled: true
|
||||||
|
blur: 0.48
|
||||||
|
blurMax: 128
|
||||||
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
anchors.fill: parent
|
||||||
|
color: Qt.rgba(Colors.backgroundPrimary.r, Colors.backgroundPrimary.g, Colors.backgroundPrimary.b, 0.5)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
0
Modules/Bar/Bars.qml
Normal file
0
Modules/Bar/Bars.qml
Normal file
Loading…
Add table
Add a link
Reference in a new issue