@@ -15,7 +15,6 @@
17import QtQuick 2.0
17import QtQuick 2.0
19import Ubuntu.Application 0.1
18import Ubuntu.Application 0.1
20import Ubuntu.Components 0.1
19import Ubuntu.Components 0.1
21import Ubuntu.Gestures 0.1
20import Ubuntu.Gestures 0.1
@@ -42,8 +41,8 @@ FocusScope {
42 height: tablet ? units.gu(100) : applicationArguments.hasGeometry() ? applicationArguments.height() : units.gu(71)
41 height: tablet ? units.gu(100) : applicationArguments.hasGeometry() ? applicationArguments.height() : units.gu(71)
44 property real edgeSize: units.gu(2)
43 property real edgeSize: units.gu(2)
45− property url defaultBackground: shell.width >= units.gu(60) ? "graphics/tablet_background.jpg" : "graphics/phone_background.jpg"
44+ property url default_background: shell.width >= units.gu(60) ? "graphics/tablet_background.jpg" : "graphics/phone_background.jpg"
46− property url background: backgroundSettings.pictureUri
45+ property url background: default_background
47 readonly property real panelHeight: panel.panelHeight
46 readonly property real panelHeight: panel.panelHeight
49 property bool dashShown: dash.shown
48 property bool dashShown: dash.shown
@@ -116,11 +115,6 @@ FocusScope {
120− id: backgroundSettings
121− schema.id: "org.gnome.desktop.background"
124 VolumeControl {
118 VolumeControl {
125 id: volumeControl
119 id: volumeControl
@@ -145,16 +139,12 @@ FocusScope {
145 // through the translucent parts of the shell surface.
139 // through the translucent parts of the shell surface.
146 visible: !fullyCovered && !applicationSurfaceShouldBeSeen
140 visible: !fullyCovered && !applicationSurfaceShouldBeSeen
148− CrossFadeImage {
142+ Image {
149 id: backgroundImage
143 id: backgroundImage
150− objectName: "backgroundImage"
151 source: shell.background
144 source: shell.background
145+ sourceSize.width: parent.width
146+ sourceSize.height: parent.height
152 anchors.fill: parent
147 anchors.fill: parent
154− if (status == Image.Error) {
155− backgroundSettings.pictureUri = shell.defaultBackground
160 Rectangle {
150 Rectangle {
@@ -199,6 +189,7 @@ FocusScope {
203 id: stagesOuterContainer
194 id: stagesOuterContainer
@@ -263,6 +254,7 @@ FocusScope {
263 ignoreUnknownSignals: true
254 ignoreUnknownSignals: true
267 id: mainStage
259 id: mainStage
@@ -438,7 +430,7 @@ FocusScope {
438 onUnlocked: greeter.hide()
430 onUnlocked: greeter.hide()
439 onSelected: {
431 onSelected: {
440 var bgPath = greeter.model.data(uid, LightDM.UserRoles.BackgroundPathRole)
432 var bgPath = greeter.model.data(uid, LightDM.UserRoles.BackgroundPathRole)
441− shell.background = bgPath ? bgPath : defaultBackground
433+ shell.background = bgPath ? bgPath : default_background
444 onLeftTeaserPressedChanged: {
436 onLeftTeaserPressedChanged: {