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
|
exclusionMode: ExclusionMode.Ignore
|
||||||
|
|
||||||
visible: LockscreenService.isLocked
|
visible: LockscreenService.isLocked
|
||||||
color: "black"
|
color: Theme.bg
|
||||||
|
|
||||||
// Raw System Wallpaper Image
|
// Raw System Wallpaper Image
|
||||||
Image {
|
Image {
|
||||||
id: bgImage
|
id: bgImage
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
source: WallpaperService.currentWallpaper
|
source: Theme.wallpaperPath
|
||||||
fillMode: Image.PreserveAspectCrop
|
fillMode: Image.PreserveAspectCrop
|
||||||
|
|
||||||
Behavior on source {
|
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
|
// Blurred Background of the current system wallpaper
|
||||||
MultiEffect {
|
MultiEffect {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
source: wallpaperSource
|
source: bgImage
|
||||||
blurEnabled: true
|
blurEnabled: true
|
||||||
blur: 1.0
|
blur: 1.0
|
||||||
blurMax: 48
|
blurMax: 64
|
||||||
opacity: 0.85
|
opacity: 0.85
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -11,6 +11,7 @@ Item {
|
|||||||
property string activeCustomWallpaper: ""
|
property string activeCustomWallpaper: ""
|
||||||
property var cachedThemeWallpapers: ({})
|
property var cachedThemeWallpapers: ({})
|
||||||
property bool isLoaded: false
|
property bool isLoaded: false
|
||||||
|
readonly property string currentWallpaper: Theme.wallpaperPath
|
||||||
|
|
||||||
// Automatic recolor watcher background daemon
|
// Automatic recolor watcher background daemon
|
||||||
Process {
|
Process {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user