Merge lp:~zsombi/ubuntu-ui-toolkit/listitem-divider-rollback into lp:ubuntu-ui-toolkit/rtm

Proposed by Zsombor Egri
Status: Merged
Approved by: Tim Peeters
Approved revision: 1133
Merged at revision: 1134
Proposed branch: lp:~zsombi/ubuntu-ui-toolkit/listitem-divider-rollback
Merge into: lp:ubuntu-ui-toolkit/rtm
Diff against target: 99 lines (+51/-11)
4 files modified
modules/Ubuntu/Components/ListItems/Empty.qml (+1/-5)
modules/Ubuntu/Components/ListItems/Header.qml (+0/-2)
modules/Ubuntu/Components/ListItems/ThinDivider.qml (+4/-4)
tests/resources/listitems/Dividers.qml (+46/-0)
To merge this branch: bzr merge lp:~zsombi/ubuntu-ui-toolkit/listitem-divider-rollback
Reviewer Review Type Date Requested Status
Tim Peeters Approve
Review via email: mp+245712@code.launchpad.net

Commit message

Rolling back ListItem dividers from 2GU left&right margins to no margins.

Description of the change

Rolling back ListItem dividers from 2GU left&right margins to no margins.

To post a comment you must log in.
Revision history for this message
Tim Peeters (tpeeters) wrote :

This is the same as the combination of https://code.launchpad.net/~zsombi/ubuntu-ui-toolkit/header-divider/+merge/242663 and https://code.launchpad.net/~zsombi/ubuntu-ui-toolkit/thindivider-margins/+merge/239320 which I reviewed before and that already landed in staging.

Approving for rtm.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'modules/Ubuntu/Components/ListItems/Empty.qml'
2--- modules/Ubuntu/Components/ListItems/Empty.qml 2014-10-02 13:03:22 +0000
3+++ modules/Ubuntu/Components/ListItems/Empty.qml 2015-01-07 07:47:57 +0000
4@@ -307,11 +307,7 @@
5
6 ThinDivider {
7 id: bottomDividerLine
8- anchors {
9- bottom: parent.bottom
10- leftMargin: units.gu(2)
11- rightMargin: units.gu(2)
12- }
13+ anchors.bottom: parent.bottom
14 visible: showDivider && !priv.removed
15 }
16
17
18=== modified file 'modules/Ubuntu/Components/ListItems/Header.qml'
19--- modules/Ubuntu/Components/ListItems/Header.qml 2014-09-09 16:03:39 +0000
20+++ modules/Ubuntu/Components/ListItems/Header.qml 2015-01-07 07:47:57 +0000
21@@ -74,8 +74,6 @@
22 left: parent.left
23 right: parent.right
24 bottom: parent.bottom
25- leftMargin: units.gu(2)
26- rightMargin: units.gu(2)
27 }
28 }
29 }
30
31=== modified file 'modules/Ubuntu/Components/ListItems/ThinDivider.qml'
32--- modules/Ubuntu/Components/ListItems/ThinDivider.qml 2014-09-09 04:59:23 +0000
33+++ modules/Ubuntu/Components/ListItems/ThinDivider.qml 2015-01-07 07:47:57 +0000
34@@ -57,9 +57,9 @@
35 property bool __lightBackground: ColorUtils.luminance(Theme.palette.normal.background) > 0.85
36 // use a gradient of 4 steps instead of instantiating two Rectangles for performance reasons
37 gradient: Gradient {
38- GradientStop { position: 0.0; color: __lightBackground ? "#26000000" : "#26FFFFFF" }
39- GradientStop { position: 0.49; color: __lightBackground ? "#26000000" : "#26FFFFFF" }
40- GradientStop { position: 0.5; color: __lightBackground ? "#14FFFFFF" : "#14000000" }
41- GradientStop { position: 1.0; color: __lightBackground ? "#14FFFFFF" : "#14000000" }
42+ GradientStop { position: 0.0; color: __lightBackground ? Qt.rgba(0, 0, 0, 0.1) : Qt.rgba(0, 0, 0, 0.4) }
43+ GradientStop { position: 0.49; color: __lightBackground ? Qt.rgba(0, 0, 0, 0.1) : Qt.rgba(0, 0, 0, 0.4) }
44+ GradientStop { position: 0.5; color: __lightBackground ? Qt.rgba(1, 1, 1, 0.4) : Qt.rgba(1, 1, 1, 0.1) }
45+ GradientStop { position: 1.0; color: __lightBackground ? Qt.rgba(1, 1, 1, 0.4) : Qt.rgba(1, 1, 1, 0.1) }
46 }
47 }
48
49=== added directory 'tests/resources/listitems'
50=== added file 'tests/resources/listitems/Dividers.qml'
51--- tests/resources/listitems/Dividers.qml 1970-01-01 00:00:00 +0000
52+++ tests/resources/listitems/Dividers.qml 2015-01-07 07:47:57 +0000
53@@ -0,0 +1,46 @@
54+/*
55+ * Copyright 2014 Canonical Ltd.
56+ *
57+ * This program is free software; you can redistribute it and/or modify
58+ * it under the terms of the GNU Lesser General Public License as published by
59+ * the Free Software Foundation; version 3.
60+ *
61+ * This program is distributed in the hope that it will be useful,
62+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
63+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
64+ * GNU Lesser General Public License for more details.
65+ *
66+ * You should have received a copy of the GNU Lesser General Public License
67+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
68+ */
69+
70+import QtQuick 2.0
71+import Ubuntu.Components 0.1
72+import Ubuntu.Components.ListItems 0.1
73+import Ubuntu.Components.Popups 0.1
74+
75+MainView {
76+ width: units.gu(50)
77+ height: units.gu(100)
78+
79+ Component.onCompleted: Theme.name = "Ubuntu.Components.Themes.SuruDark"
80+
81+ Column {
82+ width: parent.width
83+ Repeater {
84+ model: 5
85+ Subtitled {
86+ text: "Caption text"
87+ subText: "Subtitle"
88+ }
89+ }
90+ ThinDivider {}
91+ Repeater {
92+ model: 5
93+ Subtitled {
94+ text: "Caption text"
95+ subText: "Subtitle"
96+ }
97+ }
98+ }
99+}

Subscribers

People subscribed via source and target branches

to all changes: