@@ -14,16 +14,18 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18−import Ubuntu.Application 0.1
19import AccountsService 0.1
17import AccountsService 0.1
20import LightDM 0.1 as LightDM
18import LightDM 0.1 as LightDM
21import SessionBroadcast 0.1
21import SessionBroadcast 0.1
22+import Ubuntu.Application 0.1
23+import Unity.Launcher 0.1
25+import "Components/Math.js" as MathLocal
22import "Greeter"
26import "Greeter"
23import "Launcher"
27import "Launcher"
24import "Panel"
28import "Panel"
26−import "Components/Math.js" as MathLocal
28BasicShell {
30BasicShell {
@@ -35,13 +37,6 @@ BasicShell {
36 backgroundSource: AccountsService.backgroundFile
38 backgroundSource: AccountsService.backgroundFile
42− source: shell.background
45 Lockscreen {
40 Lockscreen {
46 id: lockscreen
41 id: lockscreen
47 hides: [launcher, panel.indicators]
42 hides: [launcher, panel.indicators]
@@ -53,7 +48,6 @@ BasicShell {
53 x: required ? 0 : - width
48 x: required ? 0 : - width
54 width: parent.width
49 width: parent.width
55 height: parent.height - panel.panelHeight
50 height: parent.height - panel.panelHeight
56− background: shell.background
58 onUnlocked: lockscreen.hide()
52 onUnlocked: lockscreen.hide()
59 onCancel: greeter.show()
53 onCancel: greeter.show()
@@ -90,6 +84,7 @@ BasicShell {
90 available: true
84 available: true
91 hides: [launcher, panel.indicators]
85 hides: [launcher, panel.indicators]
92 shown: true
86 shown: true
87+ background: shell.background
94 y: panel.panelHeight
89 y: panel.panelHeight
95 width: parent.width
90 width: parent.width
@@ -183,6 +178,21 @@ BasicShell {
183 panel.indicators.hide()
178 panel.indicators.hide()
181+ onDashItemSelected: greeter.show()
189+ onDisplayPowerStateChange: {
190+ if (status == Powerd.Off) {
192+ edgeDemo.paused = true;
193+ } else if (status == Powerd.On) {
194+ edgeDemo.paused = false;