Merge lp:~feng-kylin/unity8/removeHorizonalRuleOnUnlockScreen into lp:unity8

Proposed by handsome_feng
Status: Merged
Approved by: Michael Zanetti
Approved revision: 1780
Merged at revision: 1825
Proposed branch: lp:~feng-kylin/unity8/removeHorizonalRuleOnUnlockScreen
Merge into: lp:unity8
Diff against target: 23 lines (+1/-5)
1 file modified
qml/Components/PinLockscreen.qml (+1/-5)
To merge this branch: bzr merge lp:~feng-kylin/unity8/removeHorizonalRuleOnUnlockScreen
Reviewer Review Type Date Requested Status
Michael Zanetti (community) Approve
Albert Astals Cid (community) Needs Fixing
Review via email: mp+259343@code.launchpad.net

Commit message

Removed the horizonal rule on pin unlock screen.

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?

yes

To post a comment you must log in.
Revision history for this message
Albert Astals Cid (aacid) wrote :

By removing the thin divider the rest of the elements of the layout get shifted up, by the design decision i am not sure that's what they want. Can you make it so the divider is gone but the rest of elements show up in the same place?

review: Needs Fixing
Revision history for this message
handsome_feng (feng-kylin) wrote :

> By removing the thin divider the rest of the elements of the layout get
> shifted up, by the design decision i am not sure that's what they want. Can
> you make it so the divider is gone but the rest of elements show up in the
> same place?

I use an Item to replace the ThinDivider to keep the rest of the elements stay
in the same place, but it seems a little bit odd to put an item just for this.
Could it be better to change the "spacing" of Column ?

Revision history for this message
Albert Astals Cid (aacid) 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.
CI didn't run but we don't really need it for this

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

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

I don't really like the placeholder Item...

This ends up being this right now:

Column {
  spacing: units.gu(2)

  UpperItem { }

  Item {}

  LowerItem {}
}

Wouldn't it be better to just drop the middle Item and adjust the spacing to units.gu(4)? (I know that'll cause things to be off by units.dp(2) but I don't think that's a problem as this behaves slightly different for different screen sizes anyways.

So yes, I agree with Feng.

Revision history for this message
Albert Astals Cid (aacid) wrote :

Ok, Feng please update to the spacing solution.

Revision history for this message
Albert Astals Cid (aacid) :
review: Needs Fixing
1780. By handsome_feng

Adjust the spacing to units.gu(4)

Revision history for this message
Michael Zanetti (mzanetti) 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.

Ci doesn't run on 3rd party, but I've ran all the affected tests myself and they pass.

 * Did you make sure that the branch does not contain spurious tags?

yes

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Components/PinLockscreen.qml'
2--- qml/Components/PinLockscreen.qml 2015-03-18 17:27:30 +0000
3+++ qml/Components/PinLockscreen.qml 2015-05-28 07:48:13 +0000
4@@ -52,7 +52,7 @@
5 verticalCenter: parent.verticalCenter;
6 verticalCenterOffset: Math.max(-units.gu(10), -(root.height - height) / 2) + units.gu(4)
7 }
8- spacing: units.gu(2)
9+ spacing: units.gu(4)
10
11 Column {
12 id: shakeContainer
13@@ -154,10 +154,6 @@
14 }
15 }
16
17- ThinDivider {
18- anchors { left: parent.left; right: parent.right; margins: units.gu(2) }
19- }
20-
21 Grid {
22 id: numbersGrid
23 objectName: "numbersGrid"

Subscribers

People subscribed via source and target branches