Merge lp:~mzanetti/unity8/rounded-bfb into lp:unity8

Proposed by Michael Zanetti
Status: Superseded
Proposed branch: lp:~mzanetti/unity8/rounded-bfb
Merge into: lp:unity8
Diff against target: 60 lines (+27/-7)
1 file modified
qml/Launcher/LauncherPanel.qml (+27/-7)
To merge this branch: bzr merge lp:~mzanetti/unity8/rounded-bfb
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Andrea Cimitan (community) Approve
Review via email: mp+241931@code.launchpad.net

This proposal has been superseded by a proposal from 2014-11-20.

Commit message

Make the launcher BFB rounded on one end

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?

fixing bug reported by design

To post a comment you must log in.
Revision history for this message
Andrea Cimitan (cimi) :
review: Needs Fixing
lp:~mzanetti/unity8/rounded-bfb updated
1437. By Michael Zanetti

drop borderSource from shape

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

fixed. thanks

Revision history for this message
Andrea Cimitan (cimi) :
review: Needs Fixing
Revision history for this message
Michael Zanetti (mzanetti) wrote :

fixed/commented

lp:~mzanetti/unity8/rounded-bfb updated
1438. By Michael Zanetti

drop unneeded clipping

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Andrea Cimitan (cimi) wrote :

Please change to topMargin: -units.gu(2), since the first of the bezier curves used for the ubuntushape starts before 1gu from the edge (just tested locally)

review: Needs Fixing
lp:~mzanetti/unity8/rounded-bfb updated
1439. By Michael Zanetti

increase margins to prevent rounding at the top (bottom on phone)

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

> Please change to topMargin: -units.gu(2), since the first of the bezier curves
> used for the ubuntushape starts before 1gu from the edge (just tested locally)

Now I get what you mean... Fixed. Good catch!

Revision history for this message
Andrea Cimitan (cimi) wrote :

 * 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.
Autopilot
 * Did you make sure that the branch does not contain spurious tags?
Yes

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
lp:~mzanetti/unity8/rounded-bfb updated
1440. By Michael Zanetti

merge with launcher-snap-after-drag

1441. By Michael Zanetti

merge prereq

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Launcher/LauncherPanel.qml'
2--- qml/Launcher/LauncherPanel.qml 2014-11-10 10:10:34 +0000
3+++ qml/Launcher/LauncherPanel.qml 2014-11-20 09:41:51 +0000
4@@ -50,12 +50,19 @@
5 fill: parent
6 }
7
8- Rectangle {
9+ Item {
10 objectName: "buttonShowDashHome"
11 width: parent.width
12 height: units.gu(7)
13- color: UbuntuColors.orange
14- z: 1
15+
16+ UbuntuShape {
17+ anchors {
18+ fill: parent
19+ topMargin: -units.gu(2)
20+ }
21+ borderSource: "none"
22+ color: UbuntuColors.orange
23+ }
24
25 Image {
26 objectName: "dashItem"
27@@ -137,6 +144,20 @@
28 property bool draggingTransitionRunning: false
29 property int scheduledMoveTo: -1
30
31+ UbuntuNumberAnimation {
32+ id: snapToBottomAnimation
33+ target: launcherListView
34+ property: "contentY"
35+ to: launcherListView.originY
36+ }
37+
38+ UbuntuNumberAnimation {
39+ id: snapToTopAnimation
40+ target: launcherListView
41+ property: "contentY"
42+ to: launcherListView.contentHeight - launcherListView.height + launcherListView.originY
43+ }
44+
45 displaced: Transition {
46 NumberAnimation { properties: "x,y"; duration: UbuntuAnimation.FastDuration; easing: UbuntuAnimation.StandardEasing }
47 }
48@@ -342,10 +363,9 @@
49 progressiveScrollingTimer.stop();
50 launcherListView.interactive = true;
51 if (droppedIndex >= launcherListView.count - 2 && postDragging) {
52- launcherListView.flick(0, -launcherListView.clickFlickSpeed);
53- }
54- if (droppedIndex == 0 && postDragging) {
55- launcherListView.flick(0, launcherListView.clickFlickSpeed);
56+ snapToBottomAnimation.start();
57+ } else if (droppedIndex < 2 && postDragging) {
58+ snapToTopAnimation.start();
59 }
60 }
61

Subscribers

People subscribed via source and target branches