Merge lp:~fboucault/unity8/animated_splash into lp:unity8

Proposed by Florian Boucault
Status: Merged
Approved by: Michael Zanetti
Approved revision: 919
Merged at revision: 949
Proposed branch: lp:~fboucault/unity8/animated_splash
Merge into: lp:unity8
Diff against target: 163 lines (+114/-4)
4 files modified
qml/Stages/Dot.qml (+25/-0)
qml/Stages/PhoneStage.qml (+5/-2)
qml/Stages/StageWithSideStage.qml (+8/-2)
qml/Stages/WaitingDots.qml (+76/-0)
To merge this branch: bzr merge lp:~fboucault/unity8/animated_splash
Reviewer Review Type Date Requested Status
Michael Zanetti (community) Approve
PS Jenkins bot (community) continuous-integration Needs Fixing
Review via email: mp+220965@code.launchpad.net

Commit message

Application startup: changed splash rectangle to be black instead of white and added a neat little animation.

To post a comment you must log in.
lp:~fboucault/unity8/animated_splash updated
919. By Florian Boucault

Fixed coding style.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Florian Boucault (fboucault) wrote :

Looks like the failure is a flaky, unrelated test?

Revision history for this message
Michael Zanetti (mzanetti) wrote :

> Looks like the failure is a flaky, unrelated test?

Yes it is. We have a silo improving them already.

Revision history for this message
Michael Zanetti (mzanetti) wrote :

Can you please add the checklist from https://wiki.ubuntu.com/Process/Merges/Checklists/Unity8

Revision history for this message
Florian Boucault (fboucault) wrote :

* 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?

No. Only by around 6 people all engineers.

Revision history for this message
Michael Zanetti (mzanetti) wrote :

Ok. I've ran this by Jouni and we're good to go. Code looks good to me and it works nicely.

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

Yes

 * Did CI run pass? If not, please explain why.

Known temporary unstable tests. No new failures.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'qml/Stages/Dot.qml'
2--- qml/Stages/Dot.qml 1970-01-01 00:00:00 +0000
3+++ qml/Stages/Dot.qml 2014-05-26 14:14:49 +0000
4@@ -0,0 +1,25 @@
5+/*
6+ * Copyright (C) 2014 Canonical, Ltd.
7+ *
8+ * This program is free software; you can redistribute it and/or modify
9+ * it under the terms of the GNU General Public License as published by
10+ * the Free Software Foundation; version 3.
11+ *
12+ * This program is distributed in the hope that it will be useful,
13+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+ * GNU General Public License for more details.
16+ *
17+ * You should have received a copy of the GNU General Public License
18+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
19+ */
20+
21+import QtQuick 2.0
22+import Ubuntu.Components 0.1
23+
24+Rectangle {
25+ radius: width
26+ width: units.dp(6)
27+ height: width
28+ color: UbuntuColors.orange
29+}
30
31=== modified file 'qml/Stages/PhoneStage.qml'
32--- qml/Stages/PhoneStage.qml 2014-04-01 18:39:34 +0000
33+++ qml/Stages/PhoneStage.qml 2014-05-26 14:14:49 +0000
34@@ -214,7 +214,7 @@
35 Rectangle {
36 id: appSplash2
37 anchors.fill: parent
38- color: "white"
39+ color: "black"
40 visible: priv.secondApplicationStarting
41 }
42 Image {
43@@ -228,8 +228,11 @@
44 Rectangle {
45 id: appSplash
46 anchors.fill: parent
47- color: "white"
48+ color: "black"
49 visible: priv.applicationStarting
50+
51+ WaitingDots {
52+ }
53 }
54 Image {
55 id: mainScreenshotImage
56
57=== modified file 'qml/Stages/StageWithSideStage.qml'
58--- qml/Stages/StageWithSideStage.qml 2014-03-31 11:05:01 +0000
59+++ qml/Stages/StageWithSideStage.qml 2014-05-26 14:14:49 +0000
60@@ -282,7 +282,10 @@
61 id: mainStageSplash
62 anchors.fill: root
63 anchors.rightMargin: root.width - sideStageImage.x
64- color: "white"
65+ color: "black"
66+
67+ WaitingDots {
68+ }
69 }
70
71 SidestageHandle {
72@@ -402,6 +405,9 @@
73 id: sideStageSplash
74 anchors.fill: parent
75 anchors.leftMargin: sideStageImage.x
76- color: "white"
77+ color: "black"
78+
79+ WaitingDots {
80+ }
81 }
82 }
83
84=== added file 'qml/Stages/WaitingDots.qml'
85--- qml/Stages/WaitingDots.qml 1970-01-01 00:00:00 +0000
86+++ qml/Stages/WaitingDots.qml 2014-05-26 14:14:49 +0000
87@@ -0,0 +1,76 @@
88+/*
89+ * Copyright (C) 2014 Canonical, Ltd.
90+ *
91+ * This program is free software; you can redistribute it and/or modify
92+ * it under the terms of the GNU General Public License as published by
93+ * the Free Software Foundation; version 3.
94+ *
95+ * This program is distributed in the hope that it will be useful,
96+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
97+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
98+ * GNU General Public License for more details.
99+ *
100+ * You should have received a copy of the GNU General Public License
101+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
102+ */
103+
104+import QtQuick 2.2
105+import Ubuntu.Components 0.1
106+
107+Item {
108+ id: waitingDots
109+
110+ // center in parent; waitingDots has no size therefore anchors.centerIn cannot be used
111+ x: parent.width / 2
112+ y: parent.height / 2
113+
114+ property var dots: [dot1, dot2, dot3]
115+ property var vertices: [[-units.gu(1), -units.gu(1)],
116+ [units.gu(1), -units.gu(1)],
117+ [0, units.gu(1)]]
118+ property int shift: 0
119+
120+ function cycle () {
121+ var n = vertices.length;
122+ shift = (shift + 1) % n;
123+
124+ for (var i = 0; i < n; i++) {
125+ dots[i].x = vertices[(i+shift) % n][0];
126+ dots[i].y = vertices[(i+shift) % n][1];
127+ }
128+ }
129+
130+ Timer {
131+ interval: 800
132+ running: waitingDots.visible
133+ repeat: true
134+ triggeredOnStart: true
135+ onTriggered: waitingDots.cycle()
136+ }
137+
138+
139+ Dot {
140+ id: dot1
141+ x: vertices[0][0]
142+ y: vertices[0][1]
143+ Behavior on x {XAnimator {duration: UbuntuAnimation.BriskDuration; easing: UbuntuAnimation.StandardEasing}}
144+ Behavior on y {YAnimator {duration: UbuntuAnimation.BriskDuration; easing: UbuntuAnimation.StandardEasing}}
145+ }
146+
147+ Dot {
148+ id: dot2
149+ x: vertices[1][0]
150+ y: vertices[1][1]
151+ Behavior on x {XAnimator {duration: UbuntuAnimation.BriskDuration; easing: UbuntuAnimation.StandardEasing}}
152+ Behavior on y {YAnimator {duration: UbuntuAnimation.BriskDuration; easing: UbuntuAnimation.StandardEasing}}
153+
154+ }
155+
156+ Dot {
157+ id: dot3
158+ x: vertices[2][0]
159+ y: vertices[2][1]
160+ Behavior on x {XAnimator {duration: UbuntuAnimation.BriskDuration; easing: UbuntuAnimation.StandardEasing}}
161+ Behavior on y {YAnimator {duration: UbuntuAnimation.BriskDuration; easing: UbuntuAnimation.StandardEasing}}
162+ }
163+}

Subscribers

People subscribed via source and target branches