fix(lockscreen): resolve wallpaper source binding to Theme.wallpaperPath and add currentWallpaper alias in WallpaperService

This commit is contained in:
Sho 2026-08-02 16:22:24 +09:00
parent 4f1ad9deb6
commit ceeb669a6a
2 changed files with 5 additions and 13 deletions

View File

@ -20,13 +20,13 @@ PanelWindow {
exclusionMode: ExclusionMode.Ignore
visible: LockscreenService.isLocked
color: "black"
color: Theme.bg
// Raw System Wallpaper Image
Image {
id: bgImage
anchors.fill: parent
source: WallpaperService.currentWallpaper
source: Theme.wallpaperPath
fillMode: Image.PreserveAspectCrop
Behavior on source {
@ -34,22 +34,13 @@ PanelWindow {
}
}
// ShaderEffectSource capturing bgImage GPU texture with hideSource: true
ShaderEffectSource {
id: wallpaperSource
anchors.fill: parent
sourceItem: bgImage
hideSource: true
live: true
}
// Blurred Background of the current system wallpaper
MultiEffect {
anchors.fill: parent
source: wallpaperSource
source: bgImage
blurEnabled: true
blur: 1.0
blurMax: 48
blurMax: 64
opacity: 0.85
}

View File

@ -11,6 +11,7 @@ Item {
property string activeCustomWallpaper: ""
property var cachedThemeWallpapers: ({})
property bool isLoaded: false
readonly property string currentWallpaper: Theme.wallpaperPath
// Automatic recolor watcher background daemon
Process {