@@ -190,7 +190,7 @@ FocusScope {
190 available: !greeter.shown && !lockscreen.shown
190 available: !greeter.shown && !lockscreen.shown
191 hides: [stages, launcher, panel.indicators]
191 hides: [stages, launcher, panel.indicators]
192 shown: disappearingAnimationProgress !== 1.0
192 shown: disappearingAnimationProgress !== 1.0
193− enabled: disappearingAnimationProgress === 0.0 && !leftEdgeDemo.active && !topEdgeDemo.active
193+ enabled: disappearingAnimationProgress === 0.0 && !leftEdgeDemo.active && !topEdgeDemo.active && !finalEdgeDemo.active
194 // FIXME: unfocus all applications when going back to the dash
194 // FIXME: unfocus all applications when going back to the dash
195 onEnabledChanged: {
195 onEnabledChanged: {
196 if (enabled) {
196 if (enabled) {
@@ -258,12 +258,7 @@ FocusScope {
259 Connections {
259 Connections {
260 target: launcher
260 target: launcher
261− onProgressChanged: {
262− if (leftEdgeDemo.active && launcher.progress >= 1.0) {
263− leftEdgeDemo.enabled = false;
261+ onProgressChanged: if (launcher.progress >= 1.0) leftEdgeDemo.enabled = false
264− shell.hideEdgeDemo();
@@ -513,7 +508,7 @@ FocusScope {
513 shell.background = bgPath ? bgPath : defaultBackground
508 shell.background = bgPath ? bgPath : defaultBackground
514 // Update edge demo hint
509 // Update edge demo hint
515 var user = LightDM.Users.data(uid, LightDM.UserRoles.NameRole)
510 var user = LightDM.Users.data(uid, LightDM.UserRoles.NameRole)
516− shell.showEdgeDemo = AccountsService.getUserProperty(user, "demo-edges")
511+ shell.showEdgeDemo = true //AccountsService.getUserProperty(user, "demo-edges")
519 onLeftTeaserPressedChanged: {
514 onLeftTeaserPressedChanged: {
@@ -528,6 +523,7 @@ FocusScope {
528 edge: "right"
523 edge: "right"
529 title: i18n.tr("Right edge")
524 title: i18n.tr("Right edge")
530 text: i18n.tr("Try swiping from the right edge to unlock the phone")
525 text: i18n.tr("Try swiping from the right edge to unlock the phone")
526+ skipText: i18n.tr("Finish")
531 anchors.fill: parent
527 anchors.fill: parent
532 visible: shell.showEdgeDemoInGreeter
528 visible: shell.showEdgeDemoInGreeter
533 onSkip: {
529 onSkip: {
@@ -602,7 +598,7 @@ FocusScope {
602 indicatorsMenuWidth: parent.width > units.gu(60) ? units.gu(40) : parent.width
598 indicatorsMenuWidth: parent.width > units.gu(60) ? units.gu(40) : parent.width
603 indicators {
599 indicators {
604 hides: [launcher]
600 hides: [launcher]
605− available: !rightEdgeDemo.active && !leftEdgeDemo.active
601+ available: !rightEdgeDemo.active && !leftEdgeDemo.active && !finalEdgeDemo.active
607 fullscreenMode: shell.fullscreenMode
603 fullscreenMode: shell.fullscreenMode
608 searchVisible: !greeter.shown && !lockscreen.shown
604 searchVisible: !greeter.shown && !lockscreen.shown
@@ -695,7 +691,7 @@ FocusScope {
695 anchors.bottom: parent.bottom
691 anchors.bottom: parent.bottom
696 width: parent.width
692 width: parent.width
697 dragAreaWidth: shell.edgeSize
693 dragAreaWidth: shell.edgeSize
698− available: !greeter.shown || greeter.narrowMode && !rightEdgeDemo.active && !topEdgeDemo.active && !bottomEdgeDemo.active
694+ available: (!greeter.shown || greeter.narrowMode) && !rightEdgeDemo.active && !topEdgeDemo.active && !bottomEdgeDemo.active && !finalEdgeDemo.active
699 onDashItemSelected: {
695 onDashItemSelected: {
700 greeter.hide()
696 greeter.hide()
701 // Animate if moving between application and dash
697 // Animate if moving between application and dash
@@ -753,6 +749,27 @@ FocusScope {
756+ title: i18n.tr("Well done")
757+ text: i18n.tr("You have now mastered the edge gestures and can start using the phone")
758+ skipText: i18n.tr("Finish")
759+ anchors.fill: overlay
761+ enabled: shell.showEdgeDemo
764+ shell.hideEdgeDemo();
768+ target: leftEdgeDemo
769+ onActiveChanged: if (!leftEdgeDemo.active) finalEdgeDemo.visible = true
756 focus: true
773 focus: true
758 InputFilterArea {
775 InputFilterArea {