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,28 +6,38 @@ 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 : ""
|
||||||
PanelWindow {
|
|
||||||
visible: wallpaperSource !== ""
|
Variants {
|
||||||
anchors {
|
model: Quickshell.screens
|
||||||
bottom: true
|
|
||||||
top: true
|
PanelWindow {
|
||||||
right: true
|
required property ShellScreen modelData
|
||||||
left: true
|
|
||||||
}
|
|
||||||
margins {
|
|
||||||
top: 0
|
|
||||||
}
|
|
||||||
color: "transparent"
|
|
||||||
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
|
anchors {
|
||||||
smooth: true
|
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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -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,33 +7,48 @@ 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 : ""
|
||||||
PanelWindow {
|
|
||||||
visible: wallpaperSource !== ""
|
Variants {
|
||||||
anchors {
|
model: Quickshell.screens
|
||||||
top: true
|
|
||||||
bottom: true
|
PanelWindow {
|
||||||
right: true
|
required property ShellScreen modelData
|
||||||
left: true
|
|
||||||
}
|
|
||||||
color: "transparent"
|
|
||||||
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
|
|
||||||
}
|
|
||||||
FastBlur {
|
|
||||||
anchors.fill: parent
|
|
||||||
visible: wallpaperSource !== ""
|
visible: wallpaperSource !== ""
|
||||||
source: bgImage
|
anchors {
|
||||||
radius: 24 // Adjust blur strength as needed
|
top: true
|
||||||
transparentBorder: 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
|
||||||
|
}
|
||||||
|
FastBlur {
|
||||||
|
anchors.fill: parent
|
||||||
|
visible: wallpaperSource !== ""
|
||||||
|
source: bgImage
|
||||||
|
radius: 18 // Adjust blur strength as needed
|
||||||
|
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