Merge lp:~tiagosh/unity-2d/fix-filter-pane into lp:unity-2d

Proposed by Tiago Salem Herrmann
Status: Merged
Approved by: Albert Astals Cid
Approved revision: 949
Merged at revision: 1042
Proposed branch: lp:~tiagosh/unity-2d/fix-filter-pane
Merge into: lp:unity-2d
Diff against target: 76 lines (+5/-6)
6 files modified
shell/dash/Filter.qml (+1/-0)
shell/dash/FilterCheckoption.qml (+2/-2)
shell/dash/FilterMultirange.qml (+1/-1)
shell/dash/FilterPane.qml (+0/-1)
shell/dash/FilterRatings.qml (+1/-1)
shell/dash/MultiRangeButton.qml (+0/-1)
To merge this branch: bzr merge lp:~tiagosh/unity-2d/fix-filter-pane
Reviewer Review Type Date Requested Status
Albert Astals Cid (community) Approve
Xi Zhu Pending
Review via email: mp+95935@code.launchpad.net

Commit message

[dash] fix filter pane size and spacing between sections

Description of the change

[dash] fix filter pane size and spacing between sections

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

Rosie approved via IRC the new looks

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

Code looks good and works nice :-)

review: Approve
Revision history for this message
Unity Merger (unity-merger) wrote :

No commit message specified.

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

FWIW my irc conversation with rosie went like
[12:40:22] <tsdgeos> rosie: Cimi: can you confirm that http://ubuntuone.com/12ghNmCDUzoxeozn0VifWO is better than http://ubuntuone.com/40oEC5ITHkcrPOj5buSVtJ (regarding the vertical spacing in the filters) ?
[12:49:35] <rosie> tsdgeos: yes, its better :)
[12:50:01] <tsdgeos> thanks, thought it was obvious, but better ask ;-)
[12:52:00] <rosie> tsdgeos: :D

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'shell/dash/Filter.qml'
2--- shell/dash/Filter.qml 2011-11-09 12:47:37 +0000
3+++ shell/dash/Filter.qml 2012-03-19 17:32:21 +0000
4@@ -23,6 +23,7 @@
5
6 property variant lens
7 property variant filterModel
8+ property int sectionSpacing: 12
9
10 height: childrenRect.height
11 }
12
13=== modified file 'shell/dash/FilterCheckoption.qml'
14--- shell/dash/FilterCheckoption.qml 2012-01-24 12:14:59 +0000
15+++ shell/dash/FilterCheckoption.qml 2012-03-19 17:32:21 +0000
16@@ -39,8 +39,8 @@
17 delegateHeight: 30
18
19 /* Substracting verticalSpacing so that the last row does
20- not have padding below it */
21- height: cellHeight * rows - verticalSpacing
22+ not have padding below it in case rows != 1 */
23+ height: rows == 1 ? cellHeight + sectionSpacing : cellHeight * rows
24 boundsBehavior: Flickable.StopAtBounds
25
26 focus: true
27
28=== modified file 'shell/dash/FilterMultirange.qml'
29--- shell/dash/FilterMultirange.qml 2011-11-09 12:47:37 +0000
30+++ shell/dash/FilterMultirange.qml 2012-03-19 17:32:21 +0000
31@@ -21,7 +21,7 @@
32 Filter {
33 id: filterView
34
35- height: filters.height
36+ height: filters.height + sectionSpacing
37
38 MultiRangeView {
39 id: filters
40
41=== modified file 'shell/dash/FilterPane.qml'
42--- shell/dash/FilterPane.qml 2012-02-27 21:20:08 +0000
43+++ shell/dash/FilterPane.qml 2012-03-19 17:32:21 +0000
44@@ -103,7 +103,6 @@
45 anchors.topMargin: 7
46 anchors.bottom: parent.bottom
47 orientation: ListView.Vertical
48- spacing: 13
49
50 /* Make sure the first section is selected when getting the focus */
51 currentIndex: 0
52
53=== modified file 'shell/dash/FilterRatings.qml'
54--- shell/dash/FilterRatings.qml 2011-11-09 12:47:37 +0000
55+++ shell/dash/FilterRatings.qml 2012-03-19 17:32:21 +0000
56@@ -21,7 +21,7 @@
57 Filter {
58 id: filterView
59
60- height: rating.height
61+ height: rating.height + sectionSpacing
62
63 RatingStars {
64 id: rating
65
66=== modified file 'shell/dash/MultiRangeButton.qml'
67--- shell/dash/MultiRangeButton.qml 2012-02-24 17:58:11 +0000
68+++ shell/dash/MultiRangeButton.qml 2012-03-19 17:32:21 +0000
69@@ -42,7 +42,6 @@
70 color: "white"
71 text: multiRangeButton.text
72 elide: Text.ElideRight
73-
74 }
75
76 Rectangle {

Subscribers

People subscribed via source and target branches