@@ -153,7 +153,7 @@ FocusScope {
153 available: !greeter.shown && !lockscreen.shown
153 available: !greeter.shown && !lockscreen.shown
154 hides: [stages, launcher, panel.indicators]
154 hides: [stages, launcher, panel.indicators]
155 shown: disappearingAnimationProgress !== 1.0
155 shown: disappearingAnimationProgress !== 1.0
156− enabled: disappearingAnimationProgress === 0.0
156+ enabled: disappearingAnimationProgress === 0.0 && !leftEdgeDemo.visible && !topEdgeDemo.visible
157 // FIXME: unfocus all applications when going back to the dash
157 // FIXME: unfocus all applications when going back to the dash
158 onEnabledChanged: {
158 onEnabledChanged: {
159 if (enabled) {
159 if (enabled) {
@@ -179,6 +179,40 @@ FocusScope {
179 // FIXME: only necessary because stagesRevealer.animatedProgress and
179 // FIXME: only necessary because stagesRevealer.animatedProgress and
180 // greeterRevealer.animatedProgress are not animated
180 // greeterRevealer.animatedProgress are not animated
181 Behavior on disappearingAnimationProgress { SmoothedAnimation { velocity: 5 }}
181 Behavior on disappearingAnimationProgress { SmoothedAnimation { velocity: 5 }}
188+ text: "Try swiping from the top edge to access the indicators"
189+ anchors.fill: parent
192+ target: panel.indicators
193+ onFullyOpenedChanged: topEdgeDemo.visible = false
202+ text: "Swipe from the left to reveal the launcher for quick access to apps"
203+ anchors.fill: parent
207+ target: bottomEdgeDemo
208+ onVisibleChanged: if (!bottomEdgeDemo.visible) leftEdgeDemo.visible = true
213+ onProgressChanged: if (launcher.progress >= 1.0) leftEdgeDemo.visible = false
@@ -442,11 +476,26 @@ FocusScope {
442 launcher.tease();
476 launcher.tease();
485+ text: "Try swiping from the right edge to unlock the phone"
486+ anchors.fill: parent
490+ onUnlocked: rightEdgeDemo.visible = false
491+ onShownChanged: if (!greeter.shown) rightEdgeDemo.visible = false
447 InputFilterArea {
496 InputFilterArea {
448− anchors.fill: parent
449 blockInput: greeter.shown || lockscreen.shown
497 blockInput: greeter.shown || lockscreen.shown
498+ anchors.fill: parent
@@ -460,6 +509,7 @@ FocusScope {
460 indicatorsMenuWidth: parent.width > units.gu(60) ? units.gu(40) : parent.width
509 indicatorsMenuWidth: parent.width > units.gu(60) ? units.gu(40) : parent.width
461 indicators {
510 indicators {
462 hides: [launcher]
511 hides: [launcher]
512+ available: !rightEdgeDemo.visible && !leftEdgeDemo.visible
464 fullscreenMode: shell.fullscreenMode
514 fullscreenMode: shell.fullscreenMode
465 searchVisible: !greeter.shown && !lockscreen.shown
515 searchVisible: !greeter.shown && !lockscreen.shown
@@ -468,6 +518,22 @@ FocusScope {
468 anchors.fill: parent
518 anchors.fill: parent
469 blockInput: panel.indicators.shown
519 blockInput: panel.indicators.shown
527+ text: "Swipe up again to close the settings screen"
528+ anchors.fill: panel.indicators
532+ target: panel.indicators
533+ onFullyOpenedChanged: if (panel.indicators.fullyOpened) bottomEdgeDemo.visible = true
534+ onPartiallyOpenedChanged: if (!panel.indicators.partiallyOpened && !panel.indicators.fullyOpened) bottomEdgeDemo.visible = false
@@ -476,7 +542,7 @@ FocusScope {
476 width: parent.width > units.gu(60) ? units.gu(40) : parent.width
542 width: parent.width > units.gu(60) ? units.gu(40) : parent.width
477 height: parent.height
543 height: parent.height
479− available: !greeter.shown && !panel.indicators.shown && !lockscreen.shown
545+ available: !greeter.shown && !panel.indicators.shown && !lockscreen.shown && !topEdgeDemo.visible
480 shown: false
546 shown: false
481 showAnimation: StandardAnimation { property: "y"; duration: hud.showableAnimationDuration; to: 0; easing.type: Easing.Linear }
547 showAnimation: StandardAnimation { property: "y"; duration: hud.showableAnimationDuration; to: 0; easing.type: Easing.Linear }
482 hideAnimation: StandardAnimation { property: "y"; duration: hud.showableAnimationDuration; to: hudRevealer.closedValue; easing.type: Easing.Linear }
548 hideAnimation: StandardAnimation { property: "y"; duration: hud.showableAnimationDuration; to: hudRevealer.closedValue; easing.type: Easing.Linear }
@@ -534,7 +600,7 @@ FocusScope {
534 anchors.bottom: parent.bottom
600 anchors.bottom: parent.bottom
535 width: parent.width
601 width: parent.width
536 dragAreaWidth: shell.edgeSize
602 dragAreaWidth: shell.edgeSize
537− available: !greeter.locked
603+ available: !greeter.locked && !rightEdgeDemo.visible && !topEdgeDemo.visible && !bottomEdgeDemo.visible
538 onDashItemSelected: {
604 onDashItemSelected: {
539 greeter.hide()
605 greeter.hide()
540 // Animate if moving between application and dash
606 // Animate if moving between application and dash