on xenial help sign in
fix review comments
commit6a7e67fb9e5fad7e6fb5d05ad6ddb006c2114f81 authorMichael Zanetti <michael.zanetti@canonical.com> dateTue 11 Nov 2014, 17:12 (12 years ago) parent5bd3dbc
2 files changed+13−1
qml/Components/Lockscreen.qml+3 qml/Shell.qml+10−1
qml/Components/Lockscreen.qml+3
@@ -107,6 +107,9 @@ Showable {
107107 fillMode: Image.PreserveAspectCrop
108108 }
109109
110+ // This is to
111+ // a) align it with the greeter and
112+ // b) keep the white fonts readable on bright backgrounds
110113 Rectangle {
111114 anchors.fill: parent
112115 color: "black"
qml/Shell.qml+10−1
@@ -100,7 +100,7 @@ Item {
100100 }
101101
102102 // This is a dummy image to detect if the custom set wallpaper
103− // loads successfully. If it doesn't fall back to the defaultBackground.
103+ // loads successfully. If it doesn't, fall back to the defaultBackground.
104104 Image {
105105 source: shell.background
106106 height: 0
@@ -130,6 +130,15 @@ Item {
130130 }
131131 }
132132
133+ GSettings {
134+ id: backgroundSettings
135+ schema.id: "org.gnome.desktop.background"
136+ }
137+ property url gSettingsPicture: backgroundSettings.pictureUri != undefined && backgroundSettings.pictureUri.length > 0 ? backgroundSettings.pictureUri : shell.defaultBackground
138+ onGSettingsPictureChanged: {
139+ shell.background = gSettingsPicture
140+ }
141+
133142 VolumeControl {
134143 id: volumeControl
135144 }