Merge lp:~tpeeters/ubuntu-ui-toolkit/trunk-old-header into lp:ubuntu-ui-toolkit

Proposed by Tim Peeters
Status: Merged
Merged at revision: 1184
Proposed branch: lp:~tpeeters/ubuntu-ui-toolkit/trunk-old-header
Merge into: lp:ubuntu-ui-toolkit
Diff against target: 223 lines (+47/-63)
2 files modified
modules/Ubuntu/Components/Themes/Ambiance/PageHeadButton.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/PageHeadStyle.qml (+46/-62)
To merge this branch: bzr merge lp:~tpeeters/ubuntu-ui-toolkit/trunk-old-header
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Ubuntu SDK team Pending
Review via email: mp+257684@code.launchpad.net

Commit message

Revert to use the old header in trunk.

Description of the change

Revert to use the old header in trunk.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
1187. By Tim Peeters

CI broke? kick it again.

Revision history for this message
Tim Peeters (tpeeters) wrote :

I don't know what caused this:

cd ..; tests/qmlapicheck.sh || exit 1; cd tests
Dumping QML API of C++ components
qmlplugindump: could not find a Qt installation of ''
qmlplugindump: could not find a Qt installation of ''
qmlplugindump: could not find a Qt installation of ''
qmlplugindump: could not find a Qt installation of ''
Error: qmlplugindump failed
Makefile:327: recipe for target 'check' failed
make[1]: *** [check] Error 1
make[1]: Leaving directory '/tmp/buildd/ubuntu-ui-toolkit-1.2.1485+15.04.20150421bzr1186pkg0vivid2501+autopilot0/tests'
Makefile:329: recipe for target 'sub-tests-check' failed
make: *** [sub-tests-check] Error 2

qmlplugindump runs fine locally. And if there were API issues, it would print a clear error message. I pushed an empty commit; let's see if jenkins likes it on the second try.

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 'modules/Ubuntu/Components/Themes/Ambiance/PageHeadButton.qml'
2--- modules/Ubuntu/Components/Themes/Ambiance/PageHeadButton.qml 2015-04-09 09:42:36 +0000
3+++ modules/Ubuntu/Components/Themes/Ambiance/PageHeadButton.qml 2015-04-28 21:37:37 +0000
4@@ -20,7 +20,7 @@
5 AbstractButton {
6 id: button
7
8- property real iconWidth: units.gu(2)
9+ property real iconWidth: units.gu(2.5)
10 property real iconHeight: iconWidth
11
12 width: visible ? units.gu(5) : 0
13
14=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/PageHeadStyle.qml'
15--- modules/Ubuntu/Components/Themes/Ambiance/PageHeadStyle.qml 2015-04-20 10:40:57 +0000
16+++ modules/Ubuntu/Components/Themes/Ambiance/PageHeadStyle.qml 2015-04-28 21:37:37 +0000
17@@ -1,5 +1,5 @@
18 /*
19- * Copyright 2015 Canonical Ltd.
20+ * Copyright 2014 Canonical Ltd.
21 *
22 * This program is free software; you can redistribute it and/or modify
23 * it under the terms of the GNU Lesser General Public License as published by
24@@ -14,7 +14,7 @@
25 * along with this program. If not, see <http://www.gnu.org/licenses/>.
26 */
27 import QtQuick 2.4
28-import Ubuntu.Components 1.3
29+import Ubuntu.Components 1.2
30 import Ubuntu.Components.Popups 1.0
31 import Ubuntu.Components.ListItems 1.0 as ListItem
32 import Ubuntu.Components.Styles 1.2 as Style
33@@ -22,9 +22,9 @@
34 Style.PageHeadStyle {
35 id: headerStyle
36 objectName: "PageHeadStyle" // used in unit tests
37- contentHeight: units.gu(6)
38+ contentHeight: units.gu(7)
39 fontWeight: Font.Light
40- fontSize: "large"
41+ fontSize: "x-large"
42 textLeftMargin: units.gu(2)
43 maximumNumberOfActions: 3
44
45@@ -38,31 +38,25 @@
46 */
47 property color titleColor: styledItem.config.foregroundColor
48
49- // FIXME: When the three panel color properties below are removed,
50- // update unity8/Dash/PageHeader to use the new theming (currently
51- // in progress) to set these colors.
52 /*!
53- \deprecated
54 The background color of the tabs panel and the actions overflow panel.
55 */
56 property color panelBackgroundColor: styledItem.panelColor
57
58 /*!
59- \deprecated
60- The background color of the tapped item in the panel.
61- */
62- property color panelHighlightColor: theme.palette.selected.background
63+ The background color of the tapped item in the panel.
64+ */
65+ property color panelHighlightColor: Theme.palette.selected.background
66
67 /*!
68- \deprecated
69- The foreground color (icon and text) of actions in the panel.
70- */
71- property color panelForegroundColor: theme.palette.selected.backgroundText
72+ The foreground color (icon and text) of actions in the panel.
73+ */
74+ property color panelForegroundColor: Theme.palette.selected.backgroundText
75
76 /*!
77 The text color of unselected sections and the section divider.
78 */
79- property color sectionColor: theme.palette.selected.backgroundText
80+ property color sectionColor: Theme.palette.selected.backgroundText
81
82 /*!
83 The text color of the selected section.
84@@ -72,14 +66,9 @@
85 /*!
86 The background color of the pressed section.
87 */
88- property color sectionHighlightColor: theme.palette.selected.background
89-
90- implicitHeight: headerStyle.contentHeight + divider.height + sectionsItem.height
91-
92- /*!
93- The height of the row displaying the sections, if sections are specified.
94- */
95- property real sectionsHeight: units.gu(4)
96+ property color sectionHighlightColor: Theme.palette.selected.background
97+
98+ implicitHeight: headerStyle.contentHeight + divider.height
99
100 // FIXME: Workaround to get sectionsRepeater.count in autopilot tests,
101 // see also FIXME in AppHeader where this property is used.
102@@ -94,57 +83,50 @@
103 // have a separator.
104 property alias __separator_visible: divider.visible
105
106- Rectangle {
107+ StyledItem {
108 id: divider
109 anchors {
110- left: parent.left
111- right: parent.right
112 bottom: parent.bottom
113- }
114- height: units.dp(1)
115- color: styledItem.dividerColor
116- }
117-
118- Item {
119- id: sectionsItem
120- anchors {
121- bottom: divider.top
122 left: parent.left
123 right: parent.right
124 }
125
126- visible: sectionsItem.sections.model !== undefined
127- height: visible ? headerStyle.sectionsHeight : 0
128+ height: sectionsRow.visible ? units.gu(3) : units.gu(2)
129+
130+ // separatorSource and separatorBottomSource are needed for the deprecated
131+ // HeadSeparatorImageStyle.
132+ property url separatorSource: headerStyle.separatorSource
133+ property url separatorBottomSource: headerStyle.separatorBottomSource
134+
135+ // backgroundColor is used in the new HeadDividerStyle
136+ property color backgroundColor: styledItem.dividerColor
137+
138+ style: Theme.createStyleComponent("HeadDividerStyle.qml", divider)
139
140 property PageHeadSections sections: styledItem.config.sections
141
142 Row {
143 id: sectionsRow
144- anchors {
145- top: parent.top
146- bottom: parent.bottom
147- horizontalCenter: parent.horizontalCenter
148- }
149+ anchors.centerIn: parent
150 width: childrenRect.width
151- enabled: sectionsItem.sections.enabled
152- visible: sectionsItem.sections.model !== undefined
153+ height: parent.height
154+ enabled: divider.sections.enabled
155+ visible: divider.sections.model !== undefined
156 opacity: enabled ? 1.0 : 0.5
157
158 Repeater {
159 id: sectionsRepeater
160- model: sectionsItem.sections.model
161+ model: divider.sections.model
162 objectName: "page_head_sections_repeater"
163 AbstractButton {
164 id: sectionButton
165- anchors {
166- top: parent.top
167- bottom: parent.bottom
168- }
169+ anchors.verticalCenter: parent ? parent.verticalCenter : undefined
170 objectName: "section_button_" + index
171 enabled: sectionsRow.enabled
172- width: label.width + units.gu(4) // FIXME: expose spacing as style property
173- property bool selected: index === sectionsItem.sections.selectedIndex
174- onClicked: sectionsItem.sections.selectedIndex = index;
175+ width: label.width + units.gu(4)
176+ height: sectionsRow.height + units.gu(2)
177+ property bool selected: index === divider.sections.selectedIndex
178+ onClicked: divider.sections.selectedIndex = index;
179
180 Rectangle {
181 visible: parent.pressed
182@@ -152,6 +134,7 @@
183 verticalCenter: parent.verticalCenter
184 left: parent.left
185 right: parent.right
186+ rightMargin: verticalDividerLine.width
187 }
188 height: sectionsRow.height
189 color: headerStyle.sectionHighlightColor
190@@ -161,24 +144,25 @@
191 id: label
192 text: modelData
193 fontSize: "small"
194- anchors.centerIn: parent
195+ anchors.centerIn: sectionButton
196 horizontalAlignment: Text.AlignHCenter
197 color: sectionButton.selected ?
198 headerStyle.selectedSectionColor :
199 headerStyle.sectionColor
200 }
201
202+ // vertical divider line
203 Rectangle {
204- id: sectionLine
205+ id: verticalDividerLine
206 anchors {
207- bottom: parent.bottom
208- left: parent.left
209+ verticalCenter: parent.verticalCenter
210 right: parent.right
211 }
212- height: units.dp(2) // FIXME: Expose as style property
213- color: sectionButton.selected ?
214- headerStyle.selectedSectionColor :
215- styledItem.dividerColor
216+ height: units.dp(10)
217+ width: units.dp(1)
218+ visible: index < sectionsRepeater.model.length - 1
219+ color: headerStyle.sectionColor
220+ opacity: 0.2
221 }
222 }
223 }

Subscribers

People subscribed via source and target branches

to status/vote changes: