on xenial help sign in
fix review comments
6a7e67fMichael Zanetti
qml/Components/Lockscreen.qml+3
@@ -107,6 +107,9 @@ Showable {
107 fillMode: Image.PreserveAspectCrop
107 fillMode: Image.PreserveAspectCrop
108 }
108 }
109
109
110+ // This is to
111+ // a) align it with the greeter and
112+ // b) keep the white fonts readable on bright backgrounds
110 Rectangle {
113 Rectangle {
111 anchors.fill: parent
114 anchors.fill: parent
112 color: "black"
115 color: "black"
qml/Shell.qml+10−1
@@ -100,7 +100,7 @@ Item {
100 }
100 }
101
101
102 // This is a dummy image to detect if the custom set wallpaper
102 // 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.
104 Image {
104 Image {
105 source: shell.background
105 source: shell.background
106 height: 0
106 height: 0
@@ -130,6 +130,15 @@ Item {
130 }
130 }
131 }
131 }
132
132
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+
133 VolumeControl {
142 VolumeControl {
134 id: volumeControl
143 id: volumeControl
135 }
144 }