Merge lp:~saviq/unity8/fix-edges-demo into lp:unity8

Proposed by Michał Sawicz
Status: Rejected
Rejected by: Michael Terry
Proposed branch: lp:~saviq/unity8/fix-edges-demo
Merge into: lp:unity8
Diff against target: 127 lines (+13/-35)
2 files modified
qml/Components/EdgeDemo.qml (+12/-15)
qml/Shell.qml (+1/-20)
To merge this branch: bzr merge lp:~saviq/unity8/fix-edges-demo
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Michael Terry Needs Fixing
Review via email: mp+229778@code.launchpad.net

Commit message

Fix edges demo, drop underlay as it was never visible any more.

Description of the change

 * Are there any related MPs required for this MP to build/function as expected? Please list.
No.

 * Did you perform an exploratory manual test run of your code change and any related functionality?
Yes.

 * Did you make sure that your branch does not contain spurious tags?
Yes.

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A

 * If you changed the UI, has there been a design review?
N/A

To post a comment you must log in.
Revision history for this message
Michael Terry (mterry) wrote :

Comments inline.

review: Needs Fixing
Revision history for this message
Michał Sawicz (saviq) :
Revision history for this message
Michael Terry (mterry) wrote :

Marking this rejected, in favor of lp:~mterry/unity8/dash-app-demo-fixes

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Unmerged revisions

1115. By Michał Sawicz

Fix demo edges, remove underlay which was never visible any more.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Components/EdgeDemo.qml'
2--- qml/Components/EdgeDemo.qml 2014-07-23 10:16:29 +0000
3+++ qml/Components/EdgeDemo.qml 2014-08-06 12:52:33 +0000
4@@ -24,13 +24,12 @@
5 property Item greeter
6 property Item launcher
7 property Item indicators
8- property Item underlay
9+ property Item stages
10
11 property bool launcherEnabled: true
12- property bool dashEnabled: true
13 property bool panelEnabled: true
14 property bool panelContentEnabled: true
15- property bool running: !launcherEnabled || !dashEnabled || !panelEnabled || !panelContentEnabled
16+ property bool running: !launcherEnabled || !panelEnabled || !panelContentEnabled
17
18 property bool paused: false
19
20@@ -58,7 +57,6 @@
21
22 function stopDemo() {
23 launcherEnabled = true
24- dashEnabled = true
25 panelEnabled = true
26 panelContentEnabled = true
27 if (d.rightEdgeDemo) d.rightEdgeDemo.destroy()
28@@ -74,11 +72,10 @@
29 }
30
31 launcherEnabled = false;
32- dashEnabled = false;
33 panelEnabled = false;
34 panelContentEnabled = false;
35
36- // Begin with either greeter or dash, depending on which is visible
37+ // Begin with either greeter or top, depending on which is visible
38 if (greeter && greeter.shown) {
39 startRightEdgeDemo()
40 } else {
41@@ -138,12 +135,12 @@
42
43 function startTopEdgeDemo() {
44 demo.panelEnabled = true;
45- if (demo.dash && demo.underlay) {
46- d.topEdgeDemo = d.overlay.createObject(demo.underlay, {
47+ if (demo.stages) {
48+ d.topEdgeDemo = d.overlay.createObject(demo.stages, {
49 "edge": "top",
50 "title": i18n.tr("Top edge"),
51 "text": i18n.tr("Try swiping from the top edge to access the indicators"),
52- "anchors.fill": demo.underlay,
53+ "anchors.fill": demo.stages,
54 });
55 }
56 if (d.topEdgeDemo) {
57@@ -192,12 +189,12 @@
58 function startLeftEdgeDemo() {
59 demo.panelEnabled = false;
60 demo.launcherEnabled = true;
61- if (demo.underlay) {
62- d.leftEdgeDemo = d.overlay.createObject(demo.underlay, {
63+ if (demo.stages) {
64+ d.leftEdgeDemo = d.overlay.createObject(demo.stages, {
65 "edge": "left",
66 "title": i18n.tr("Left edge"),
67 "text": i18n.tr("Swipe from the left to reveal the launcher for quick access to apps"),
68- "anchors.fill": demo.underlay,
69+ "anchors.fill": demo.stages,
70 });
71 }
72 if (d.leftEdgeDemo) {
73@@ -220,12 +217,12 @@
74
75 function startFinalEdgeDemo() {
76 demo.launcherEnabled = false;
77- if (demo.underlay) {
78- d.finalEdgeDemo = d.overlay.createObject(demo.underlay, {
79+ if (demo.stages) {
80+ d.finalEdgeDemo = d.overlay.createObject(demo.stages, {
81 "edge": "none",
82 "title": i18n.tr("Well done"),
83 "text": i18n.tr("You have now mastered the edge gestures and can start using the phone<br><br>Tap on the screen to start"),
84- "anchors.fill": demo.underlay,
85+ "anchors.fill": demo.stages,
86 "showSkip": false,
87 });
88 }
89
90=== modified file 'qml/Shell.qml'
91--- qml/Shell.qml 2014-08-05 12:06:16 +0000
92+++ qml/Shell.qml 2014-08-06 12:52:33 +0000
93@@ -113,25 +113,6 @@
94 }
95
96 Item {
97- id: underlay
98- objectName: "underlay"
99- anchors.fill: parent
100-
101- // Whether the underlay is fully covered by opaque UI elements.
102- property bool fullyCovered: (panel.indicators.fullyOpened && shell.width <= panel.indicatorsMenuWidth)
103- || stages.fullyShown || greeterWrapper.fullyShown
104- visible: !fullyCovered
105-
106- Image {
107- anchors.fill: underlay
108- source: shell.width > shell.height ? "Dash/graphics/paper_landscape.png" : "Dash/graphics/paper_portrait.png"
109- fillMode: Image.PreserveAspectCrop
110- horizontalAlignment: Image.AlignRight
111- verticalAlignment: Image.AlignTop
112- }
113- }
114-
115- Item {
116 id: stages
117 objectName: "stages"
118 width: parent.width
119@@ -580,7 +561,7 @@
120 greeter: greeter
121 launcher: launcher
122 indicators: panel.indicators
123- underlay: underlay
124+ stages: stages
125 }
126
127 Connections {

Subscribers

People subscribed via source and target branches