Add support for Wallpaper in Desktop stage
Approved by: Gerry Boland
commit0f896a337abea9489fa303b7b742ea8f63379ff1
authorMichael Zanetti <michael.zanetti@canonical.com>
dateThu 11 Dec 2014, 13:23 (12 years ago)
parent8471b26f93c159
qml/Shell.qml+5
@@ -311,6 +311,11 @@ Item {
311311 property: "orientation"
312312 value: shell.orientation
313313 }
314+ Binding {
315+ target: applicationsDisplayLoader.item
316+ property: "background"
317+ value: shell.background
318+ }
314319 }
315320 }
316321
qml/Stages/DesktopStage.qml+9
@@ -25,6 +25,15 @@ Item {
2525
2626 anchors.fill: parent
2727
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+
2837 Connections {
2938 target: ApplicationManager
3039 onApplicationAdded: {