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

Proposed by Michael Zanetti
Status: Merged
Approved by: Michał Sawicz
Approved revision: 1354
Merged at revision: 1356
Proposed branch: lp:~mzanetti/unity8/no-more-pinning-rtm
Merge into: lp:unity8/rtm-14.09
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-rtm
Reviewer Review Type Date Requested Status
Michał Sawicz Approve
Andrea Cimitan (community) Approve
Review via email: mp+238294@code.launchpad.net

This proposal supersedes a proposal from 2014-10-14.

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
Michał Sawicz (saviq) wrote :

As per the upstream change.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'qml/Launcher/LauncherDelegate.qml'
--- qml/Launcher/LauncherDelegate.qml 2014-10-07 11:11:09 +0000
+++ qml/Launcher/LauncherDelegate.qml 2014-10-14 13:11:21 +0000
@@ -27,7 +27,6 @@
27 property bool itemFocused: false27 property bool itemFocused: false
28 property real maxAngle: 028 property real maxAngle: 0
29 property bool inverted: false29 property bool inverted: false
30 property alias pinned: pin.visible
3130
32 readonly property int effectiveHeight: Math.cos(angle * Math.PI / 180) * itemHeight31 readonly property int effectiveHeight: Math.cos(angle * Math.PI / 180) * itemHeight
33 readonly property real foldedHeight: Math.cos(maxAngle * Math.PI / 180) * itemHeight32 readonly property real foldedHeight: Math.cos(maxAngle * Math.PI / 180) * itemHeight
@@ -71,31 +70,15 @@
71 height: root.itemHeight - units.gu(1)70 height: root.itemHeight - units.gu(1)
72 }71 }
7372
74 Rectangle {
75 id: pin
76 anchors {
77 left: iconShape.left
78 top: iconShape.top
79 topMargin: -units.dp(2)
80 }
81 width: units.gu(1)
82 height: width
83 radius: width / 2
84 color: "white"
85 }
86
87 UbuntuShape {73 UbuntuShape {
88 id: countEmblem74 id: countEmblem
89 objectName: "countEmblem"75 objectName: "countEmblem"
90
91 readonly property real pinMargin: pin.visible ? pin.width + units.gu(1) - anchors.leftMargin : 0
92
93 anchors {76 anchors {
94 right: parent.right77 right: parent.right
95 top: parent.top78 top: parent.top
96 margins: units.dp(3)79 margins: units.dp(3)
97 }80 }
98 width: Math.min(root.itemWidth - pinMargin, Math.max(units.gu(2), countLabel.implicitWidth + units.gu(1)))81 width: Math.min(root.itemWidth, Math.max(units.gu(2), countLabel.implicitWidth + units.gu(1)))
99 height: units.gu(2)82 height: units.gu(2)
100 color: UbuntuColors.orange83 color: UbuntuColors.orange
101 visible: root.countVisible84 visible: root.countVisible
@@ -109,7 +92,7 @@
109 // FIXME: verticalCenter seems to be off wee bit and QML doesn't have a centerLine92 // FIXME: verticalCenter seems to be off wee bit and QML doesn't have a centerLine
110 // property for Text: https://bugreports.qt-project.org/browse/QTBUG-4047993 // property for Text: https://bugreports.qt-project.org/browse/QTBUG-40479
111 anchors.verticalCenterOffset: -units.dp(.5)94 anchors.verticalCenterOffset: -units.dp(.5)
112 width: root.itemWidth - units.gu(1) - countEmblem.pinMargin95 width: root.itemWidth - units.gu(1)
113 horizontalAlignment: Text.AlignHCenter96 horizontalAlignment: Text.AlignHCenter
114 elide: Text.ElideRight97 elide: Text.ElideRight
115 color: "white"98 color: "white"
11699
=== modified file 'qml/Launcher/LauncherPanel.qml'
--- qml/Launcher/LauncherPanel.qml 2014-10-07 08:25:59 +0000
+++ qml/Launcher/LauncherPanel.qml 2014-10-14 13:11:21 +0000
@@ -149,7 +149,6 @@
149 count: model.count149 count: model.count
150 countVisible: model.countVisible150 countVisible: model.countVisible
151 progress: model.progress151 progress: model.progress
152 pinned: model.pinned
153 itemFocused: model.focused152 itemFocused: model.focused
154 inverted: root.inverted153 inverted: root.inverted
155 z: -Math.abs(offset)154 z: -Math.abs(offset)
@@ -460,10 +459,6 @@
460 width: itemWidth459 width: itemWidth
461 rotation: root.rotation460 rotation: root.rotation
462 itemOpacity: 0.9461 itemOpacity: 0.9
463 pinned: dndArea.draggedIndex > -1 &&
464 LauncherModel.get(dndArea.draggedIndex).pinned &&
465 !dndArea.preDragging &&
466 !dndArea.dragging
467462
468 function flatten() {463 function flatten() {
469 fakeDragItemAnimation.start();464 fakeDragItemAnimation.start();

Subscribers

People subscribed via source and target branches

to all changes: