Merge pull request #47 from quadbyte/wallpaper-improvements
Wallpaper improvements
This commit is contained in:
commit
95187e632f
3 changed files with 80 additions and 48 deletions
|
|
@ -6,7 +6,13 @@ import qs.Settings
|
||||||
|
|
||||||
ShellRoot {
|
ShellRoot {
|
||||||
property string wallpaperSource: WallpaperManager.currentWallpaper !== "" && !Settings.settings.useSWWW ? WallpaperManager.currentWallpaper : ""
|
property string wallpaperSource: WallpaperManager.currentWallpaper !== "" && !Settings.settings.useSWWW ? WallpaperManager.currentWallpaper : ""
|
||||||
|
|
||||||
|
Variants {
|
||||||
|
model: Quickshell.screens
|
||||||
|
|
||||||
PanelWindow {
|
PanelWindow {
|
||||||
|
required property ShellScreen modelData
|
||||||
|
|
||||||
visible: wallpaperSource !== ""
|
visible: wallpaperSource !== ""
|
||||||
anchors {
|
anchors {
|
||||||
bottom: true
|
bottom: true
|
||||||
|
|
@ -18,6 +24,7 @@ ShellRoot {
|
||||||
top: 0
|
top: 0
|
||||||
}
|
}
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
screen: modelData
|
||||||
WlrLayershell.layer: WlrLayer.Background
|
WlrLayershell.layer: WlrLayer.Background
|
||||||
WlrLayershell.exclusionMode: ExclusionMode.Ignore
|
WlrLayershell.exclusionMode: ExclusionMode.Ignore
|
||||||
WlrLayershell.namespace: "quickshell-wallpaper"
|
WlrLayershell.namespace: "quickshell-wallpaper"
|
||||||
|
|
@ -31,3 +38,6 @@ ShellRoot {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -141,9 +141,16 @@ WlSessionLock {
|
||||||
FastBlur {
|
FastBlur {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
source: lockBgImage
|
source: lockBgImage
|
||||||
radius: 48 // Adjust blur strength as needed
|
radius: 22 // Adjust blur strength as needed
|
||||||
transparentBorder: true
|
transparentBorder: true
|
||||||
}
|
}
|
||||||
|
Rectangle {
|
||||||
|
anchors.fill: parent
|
||||||
|
color: Qt.rgba(
|
||||||
|
Theme.backgroundPrimary.r,
|
||||||
|
Theme.backgroundPrimary.g,
|
||||||
|
Theme.backgroundPrimary.b, 0.6)
|
||||||
|
}
|
||||||
// Main content container (moved up, Rectangle removed)
|
// Main content container (moved up, Rectangle removed)
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,13 @@ import qs.Settings
|
||||||
|
|
||||||
ShellRoot {
|
ShellRoot {
|
||||||
property string wallpaperSource: WallpaperManager.currentWallpaper !== "" && !Settings.settings.useSWWW ? WallpaperManager.currentWallpaper : ""
|
property string wallpaperSource: WallpaperManager.currentWallpaper !== "" && !Settings.settings.useSWWW ? WallpaperManager.currentWallpaper : ""
|
||||||
|
|
||||||
|
Variants {
|
||||||
|
model: Quickshell.screens
|
||||||
|
|
||||||
PanelWindow {
|
PanelWindow {
|
||||||
|
required property ShellScreen modelData
|
||||||
|
|
||||||
visible: wallpaperSource !== ""
|
visible: wallpaperSource !== ""
|
||||||
anchors {
|
anchors {
|
||||||
top: true
|
top: true
|
||||||
|
|
@ -16,6 +22,7 @@ ShellRoot {
|
||||||
left: true
|
left: true
|
||||||
}
|
}
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
screen: modelData
|
||||||
WlrLayershell.layer: WlrLayer.Background
|
WlrLayershell.layer: WlrLayer.Background
|
||||||
WlrLayershell.exclusionMode: ExclusionMode.Ignore
|
WlrLayershell.exclusionMode: ExclusionMode.Ignore
|
||||||
WlrLayershell.namespace: "quickshell-overview"
|
WlrLayershell.namespace: "quickshell-overview"
|
||||||
|
|
@ -32,8 +39,16 @@ ShellRoot {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
visible: wallpaperSource !== ""
|
visible: wallpaperSource !== ""
|
||||||
source: bgImage
|
source: bgImage
|
||||||
radius: 24 // Adjust blur strength as needed
|
radius: 18 // Adjust blur strength as needed
|
||||||
transparentBorder: true
|
transparentBorder: true
|
||||||
}
|
}
|
||||||
|
Rectangle {
|
||||||
|
anchors.fill: parent
|
||||||
|
color: Qt.rgba(
|
||||||
|
Theme.backgroundPrimary.r,
|
||||||
|
Theme.backgroundPrimary.g,
|
||||||
|
Theme.backgroundPrimary.b, 0.6)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue