fix(lockscreen): resolve wallpaper source binding to Theme.wallpaperPath and add currentWallpaper alias in WallpaperService
This commit is contained in:
parent
4f1ad9deb6
commit
ceeb669a6a
@ -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
|
||||
}
|
||||
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user