mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Wallpaper: Lockscreen & MediaCard now respect the wallpaper.enabled flag.
This commit is contained in:
@@ -93,7 +93,7 @@ NBox {
|
||||
id: bgImage
|
||||
readonly property int dim: Math.round(256 * Style.uiScaleRatio)
|
||||
anchors.fill: parent
|
||||
source: MediaService.trackArtUrl || root.cachedWallpaper
|
||||
source: MediaService.trackArtUrl || (Settings.data.wallpaper.enabled ? root.cachedWallpaper : "")
|
||||
sourceSize: Qt.size(dim, dim)
|
||||
fillMode: Image.PreserveAspectCrop
|
||||
layer.enabled: true
|
||||
|
||||
@@ -192,7 +192,7 @@ Loader {
|
||||
});
|
||||
}
|
||||
|
||||
// Black backgound, in case image fails to load or takes a while
|
||||
// Black backgound, in case no wallpaper or if its takes a while to load
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: "#000000"
|
||||
@@ -200,7 +200,7 @@ Loader {
|
||||
|
||||
Image {
|
||||
id: lockBgImage
|
||||
visible: source !== ""
|
||||
visible: source !== "" && Settings.data.wallpaper.enabled
|
||||
anchors.fill: parent
|
||||
fillMode: Image.PreserveAspectCrop
|
||||
source: resolvedWallpaperPath
|
||||
|
||||
Reference in New Issue
Block a user