Merge lp:~mzanetti/unity8/no-more-pinning into lp:unity8

Proposed by Michael Zanetti
Status: Merged
Approved by: Michał Sawicz
Approved revision: 1366
Merged at revision: 1377
Proposed branch: lp:~mzanetti/unity8/no-more-pinning
Merge into: lp:unity8
Diff against target: 76 lines (+2/-24)
2 files modified
qml/Launcher/LauncherDelegate.qml (+2/-19)
qml/Launcher/LauncherPanel.qml (+0/-5)
To merge this branch: bzr merge lp:~mzanetti/unity8/no-more-pinning
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Michał Sawicz Approve
Andrea Cimitan (community) Approve
Review via email: mp+238290@code.launchpad.net

Commit message

Drop all visual indication of "pinning"

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?
 * If you changed the UI, has there been a design review?

both N/A

To post a comment you must log in.
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.
Waiting before top approve
 * 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)
Revision history for this message
Michał Sawicz (saviq) wrote :

 * Did you perform an exploratory manual test run of the code change and any related functionality?
Y
 * Did CI run pass? If not, please explain why.
Bar broken AP tests
 * Did you make sure that the branch does not contain spurious tags?
Y

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Launcher/LauncherDelegate.qml'
2--- qml/Launcher/LauncherDelegate.qml 2014-10-07 11:11:09 +0000
3+++ qml/Launcher/LauncherDelegate.qml 2014-10-14 12:35:31 +0000
4@@ -27,7 +27,6 @@
5 property bool itemFocused: false
6 property real maxAngle: 0
7 property bool inverted: false
8- property alias pinned: pin.visible
9
10 readonly property int effectiveHeight: Math.cos(angle * Math.PI / 180) * itemHeight
11 readonly property real foldedHeight: Math.cos(maxAngle * Math.PI / 180) * itemHeight
12@@ -71,31 +70,15 @@
13 height: root.itemHeight - units.gu(1)
14 }
15
16- Rectangle {
17- id: pin
18- anchors {
19- left: iconShape.left
20- top: iconShape.top
21- topMargin: -units.dp(2)
22- }
23- width: units.gu(1)
24- height: width
25- radius: width / 2
26- color: "white"
27- }
28-
29 UbuntuShape {
30 id: countEmblem
31 objectName: "countEmblem"
32-
33- readonly property real pinMargin: pin.visible ? pin.width + units.gu(1) - anchors.leftMargin : 0
34-
35 anchors {
36 right: parent.right
37 top: parent.top
38 margins: units.dp(3)
39 }
40- width: Math.min(root.itemWidth - pinMargin, Math.max(units.gu(2), countLabel.implicitWidth + units.gu(1)))
41+ width: Math.min(root.itemWidth, Math.max(units.gu(2), countLabel.implicitWidth + units.gu(1)))
42 height: units.gu(2)
43 color: UbuntuColors.orange
44 visible: root.countVisible
45@@ -109,7 +92,7 @@
46 // FIXME: verticalCenter seems to be off wee bit and QML doesn't have a centerLine
47 // property for Text: https://bugreports.qt-project.org/browse/QTBUG-40479
48 anchors.verticalCenterOffset: -units.dp(.5)
49- width: root.itemWidth - units.gu(1) - countEmblem.pinMargin
50+ width: root.itemWidth - units.gu(1)
51 horizontalAlignment: Text.AlignHCenter
52 elide: Text.ElideRight
53 color: "white"
54
55=== modified file 'qml/Launcher/LauncherPanel.qml'
56--- qml/Launcher/LauncherPanel.qml 2014-10-13 15:42:40 +0000
57+++ qml/Launcher/LauncherPanel.qml 2014-10-14 12:35:31 +0000
58@@ -151,7 +151,6 @@
59 count: model.count
60 countVisible: model.countVisible
61 progress: model.progress
62- pinned: model.pinned
63 itemFocused: model.focused
64 inverted: root.inverted
65 z: -Math.abs(offset)
66@@ -462,10 +461,6 @@
67 width: itemWidth
68 rotation: root.rotation
69 itemOpacity: 0.9
70- pinned: dndArea.draggedIndex > -1 &&
71- LauncherModel.get(dndArea.draggedIndex).pinned &&
72- !dndArea.preDragging &&
73- !dndArea.dragging
74
75 function flatten() {
76 fakeDragItemAnimation.start();

Subscribers

People subscribed via source and target branches