@@ -26,7 +26,6 @@ import Utils 0.1
26import LightDM 0.1 as LightDM
26import LightDM 0.1 as LightDM
27import Powerd 0.1
27import Powerd 0.1
28import SessionBroadcast 0.1
28import SessionBroadcast 0.1
30import "Greeter"
29import "Greeter"
31import "Launcher"
30import "Launcher"
32import "Panel"
31import "Panel"
@@ -123,35 +122,12 @@ Item {
123 visible: !fullyCovered
122 visible: !fullyCovered
126− anchors.fill: dash
125+ anchors.fill: underlay
127 source: shell.width > shell.height ? "Dash/graphics/paper_landscape.png" : "Dash/graphics/paper_portrait.png"
126 source: shell.width > shell.height ? "Dash/graphics/paper_landscape.png" : "Dash/graphics/paper_portrait.png"
128 fillMode: Image.PreserveAspectCrop
127 fillMode: Image.PreserveAspectCrop
129 horizontalAlignment: Image.AlignRight
128 horizontalAlignment: Image.AlignRight
130 verticalAlignment: Image.AlignTop
129 verticalAlignment: Image.AlignTop
137− available: !LightDM.Greeter.active
138− hides: [stages, launcher, panel.indicators]
139− shown: disappearingAnimationProgress !== 1.0 && greeterWrapper.showProgress !== 1.0 &&
140− !(panel.indicators.fullyOpened && !sideStageEnabled)
141− enabled: disappearingAnimationProgress === 0.0 && greeterWrapper.showProgress === 0.0 && edgeDemo.dashEnabled
145− topMargin: panel.panelHeight
148− contentScale: 1.0 - 0.2 * disappearingAnimationProgress
149− opacity: 1.0 - disappearingAnimationProgress
150− property real disappearingAnimationProgress: stages.showProgress
152− // FIXME: only necessary because stages.showProgress is not animated
153− Behavior on disappearingAnimationProgress { SmoothedAnimation { velocity: 5 }}
157 EdgeDragArea {
133 EdgeDragArea {
@@ -188,55 +164,7 @@ Item {
188 objectName: "stages"
164 objectName: "stages"
189 width: parent.width
165 width: parent.width
190 height: parent.height
166 height: parent.height
192− visible: !fullyHidden && !ApplicationManager.empty
167+ visible: !ApplicationManager.empty
196− if (locked || greeter.fakeActiveForApp !== "") {
199− return launcher.progress;
201− return stagesDragArea.progress
204− Behavior on x { SmoothedAnimation { velocity: 600; duration: UbuntuAnimation.FastDuration } }
206− property bool shown: false
209− if (ApplicationManager.count > 0) {
210− ApplicationManager.focusApplication(ApplicationManager.get(0).appId);
213− if (ApplicationManager.focusedApplicationId) {
214− ApplicationManager.updateScreenshot(ApplicationManager.focusedApplicationId);
215− ApplicationManager.unfocusCurrentApplication();
220− // Avoid a silent "divide by zero -> NaN" situation during init as shell.width will be
221− // zero. That breaks the property binding and the function won't be reevaluated once
222− // shell.width is set, with the NaN result staying there for good.
223− property real showProgress: shell.width ? MathUtils.clamp(1 - x / shell.width, 0, 1) : 0
225− property bool fullyShown: x == 0
226− property bool fullyHidden: x == width
228− property bool locked: applicationsDisplayLoader.item ? applicationsDisplayLoader.item.locked : false
230− // It might technically not be fullyShown but visually it just looks so.
231− property bool roughlyFullyShown: x >= 0 && x <= units.gu(1)
241 Connections {
169 Connections {
242 target: ApplicationManager
170 target: ApplicationManager
@@ -245,7 +173,6 @@ Item {
245 lockscreen.show();
173 lockscreen.show();
247 greeter.hide();
175 greeter.hide();
251 onFocusedApplicationIdChanged: {
178 onFocusedApplicationIdChanged: {
@@ -258,15 +185,6 @@ Item {
258 if (greeter.shown) {
185 if (greeter.shown) {
259 greeter.hide();
186 greeter.hide();
261− if (!stages.shown) {
267− if (ApplicationManager.empty) {
@@ -459,7 +377,7 @@ Item {
459 Binding {
377 Binding {
460 target: applicationsDisplayLoader.item
378 target: applicationsDisplayLoader.item
461 property: "interactive"
379 property: "interactive"
462− value: stages.roughlyFullyShown && !greeter.shown && !lockscreen.shown
380+ value: !greeter.shown && !lockscreen.shown
464 Binding {
382 Binding {
465 target: applicationsDisplayLoader.item
383 target: applicationsDisplayLoader.item
@@ -686,7 +604,8 @@ Item {
688 var animate = !LightDM.Greeter.active && !stages.shown
606 var animate = !LightDM.Greeter.active && !stages.shown
607+ // FIXME: IPC to dash-app needed?
689− dash.setCurrentScope("clickscope", animate, false)
608+ //dash.setCurrentScope("clickscope", animate, false)
690 stages.hide()
609 stages.hide()
@@ -748,7 +667,8 @@ Item {
749 onShowDashHome: showHome()
668 onShowDashHome: showHome()
750 onDash: showDash()
669 onDash: showDash()
670+ // FIXME: IPC to dash-app needed?
751− onDashSwipeChanged: if (dashSwipe && stages.shown) dash.setCurrentScope("clickscope", false, true)
671+// onDashSwipeChanged: if (dashSwipe && stages.shown) dash.setCurrentScope("clickscope", false, true)
752 onLauncherApplicationSelected: {
672 onLauncherApplicationSelected: {
753 if (greeter.fakeActiveForApp !== "") {
673 if (greeter.fakeActiveForApp !== "") {
754 lockscreen.show()
674 lockscreen.show()
@@ -829,7 +749,6 @@ Item {
829 z: alphaDisclaimerLabel.z + 10
749 z: alphaDisclaimerLabel.z + 10
830 greeter: greeter
750 greeter: greeter
831 launcher: launcher
751 launcher: launcher
833 indicators: panel.indicators
752 indicators: panel.indicators
834 underlay: underlay
753 underlay: underlay