@@ -22,6 +22,7 @@ import Ubuntu.Components.ListItems 1.0 as ListItem
22import Unity.Application 0.1
22import Unity.Application 0.1
23import Unity.Test 0.1
23import Unity.Test 0.1
24import LightDM 0.1 as LightDM
24import LightDM 0.1 as LightDM
26import "../../qml"
27import "../../qml"
@@ -161,8 +162,16 @@ Rectangle {
163 Rectangle {
164 Rectangle {
164− id: controls
165+ width: controls.width
168+ bottom: parent.bottom
165 color: "darkgrey"
171 color: "darkgrey"
166 width: units.gu(30)
175 width: units.gu(30)
167 anchors {
176 anchors {
168 top: parent.top
177 top: parent.top
@@ -170,7 +179,11 @@ Rectangle {
170 right: parent.right
179 right: parent.right
182+ boundsBehavior: Flickable.StopAtBounds
183+ contentHeight: controlsColumn.height
174 anchors { left: parent.left; right: parent.right; top: parent.top; margins: units.gu(1) }
187 anchors { left: parent.left; right: parent.right; top: parent.top; margins: units.gu(1) }
175 spacing: units.gu(1)
188 spacing: units.gu(1)
@@ -281,6 +294,17 @@ Rectangle {
281 anchors.verticalCenter: parent.verticalCenter
294 anchors.verticalCenter: parent.verticalCenter
298+ text: Powerd.status === Powerd.On ? "Display ON" : "Display OFF"
299+ activeFocusOnPress: false
301+ if (Powerd.status === Powerd.On) {
302+ Powerd.status = Powerd.Off;
304+ Powerd.status = Powerd.On;