on xenial help sign in
Add support for Wallpaper in Desktop stage
0f896a3Michael Zanetti
qml/Shell.qml+5
@@ -311,6 +311,11 @@ Item {
311 property: "orientation"
311 property: "orientation"
312 value: shell.orientation
312 value: shell.orientation
313 }
313 }
314+ Binding {
315+ target: applicationsDisplayLoader.item
316+ property: "background"
317+ value: shell.background
318+ }
314 }
319 }
315 }
320 }
316
321
qml/Stages/DesktopStage.qml+9
@@ -25,6 +25,15 @@ Item {
25
25
26 anchors.fill: parent
26 anchors.fill: parent
27
27
28+ property alias background: wallpaper.source
29+
30+ CrossFadeImage {
31+ id: wallpaper
32+ anchors.fill: parent
33+ sourceSize { height: root.height; width: root.width }
34+ fillMode: Image.PreserveAspectCrop
35+ }
36+
28 Connections {
37 Connections {
29 target: ApplicationManager
38 target: ApplicationManager
30 onApplicationAdded: {
39 onApplicationAdded: {