Merge lp:~tpeeters/ubuntu-ui-toolkit/use-new-divider into lp:ubuntu-ui-toolkit/staging

Proposed by Tim Peeters
Status: Merged
Approved by: Zsombor Egri
Approved revision: 1347
Merged at revision: 1349
Proposed branch: lp:~tpeeters/ubuntu-ui-toolkit/use-new-divider
Merge into: lp:ubuntu-ui-toolkit/staging
Diff against target: 79 lines (+1/-47)
3 files modified
modules/Ubuntu/Components/Themes/Ambiance/HeadSeparatorImageStyle.qml (+0/-36)
modules/Ubuntu/Components/Themes/Ambiance/PageHeadStyle.qml (+1/-10)
modules/Ubuntu/Components/Themes/Ambiance/qmldir (+0/-1)
To merge this branch: bzr merge lp:~tpeeters/ubuntu-ui-toolkit/use-new-divider
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Zsombor Egri Approve
Review via email: mp+242794@code.launchpad.net

Commit message

Remove the old header separator style.

Description of the change

Remove the old header separator style.

Accidentally in PageHeadStyle, useOldDivider was already set to false (should have been true until unity8 was updated), so the old separator style was never used.

To post a comment you must log in.
Revision history for this message
Zsombor Egri (zsombi) wrote :

nice cleanup

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
1347. By Tim Peeters

put back ghe artwork

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

Added the artwork again. It is still used by the old HeaderStyle when we have MainView.useDeprecatedToolbar: true.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== removed file 'modules/Ubuntu/Components/Themes/Ambiance/HeadSeparatorImageStyle.qml'
2--- modules/Ubuntu/Components/Themes/Ambiance/HeadSeparatorImageStyle.qml 2014-10-24 13:13:11 +0000
3+++ modules/Ubuntu/Components/Themes/Ambiance/HeadSeparatorImageStyle.qml 1970-01-01 00:00:00 +0000
4@@ -1,36 +0,0 @@
5-/*
6- * Copyright 2014 Canonical Ltd.
7- *
8- * This program is free software; you can redistribute it and/or modify
9- * it under the terms of the GNU Lesser General Public License as published by
10- * the Free Software Foundation; version 3.
11- *
12- * This program is distributed in the hope that it will be useful,
13- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15- * GNU Lesser General Public License for more details.
16- *
17- * You should have received a copy of the GNU Lesser General Public License
18- * along with this program. If not, see <http://www.gnu.org/licenses/>.
19- */
20-import QtQuick 2.2
21-
22-// This is the old DEPRECATED header separator, which is here for backwards compatibility.
23-// The new header divider is in HeadDividerStyle.qml.
24-Item {
25- id: separatorStyle
26- BorderImage {
27- id: separatorImage
28- anchors.fill: parent
29- source: styledItem.separatorSource
30- }
31- Image {
32- id: separatorBottom
33- anchors {
34- top: separatorImage.bottom
35- left: parent.left
36- right: parent.right
37- }
38- source: styledItem.separatorBottomSource
39- }
40-}
41
42=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/PageHeadStyle.qml'
43--- modules/Ubuntu/Components/Themes/Ambiance/PageHeadStyle.qml 2014-11-17 18:45:05 +0000
44+++ modules/Ubuntu/Components/Themes/Ambiance/PageHeadStyle.qml 2014-11-26 20:10:50 +0000
45@@ -23,10 +23,6 @@
46 id: headerStyle
47 objectName: "PageHeadStyle" // used in unit tests
48 contentHeight: units.gu(7)
49- // FIXME: After After https://code.launchpad.net/~mzanetti/unity8/new-pageheader-api/+merge/239242
50- // lands, set separatorSource and separatorBottomSource to "" in order to use the new divider.
51- separatorSource: "artwork/PageHeaderBaseDividerLight.sci"
52- separatorBottomSource: "artwork/PageHeaderBaseDividerBottom.png"
53 fontWeight: Font.Light
54 fontSize: "x-large"
55 textLeftMargin: units.gu(2)
56@@ -105,12 +101,7 @@
57 // backgroundColor is used in the new HeadDividerStyle
58 property color backgroundColor: styledItem.dividerColor
59
60- // FIXME: After https://code.launchpad.net/~mzanetti/unity8/new-pageheader-api/+merge/239242
61- // lands, set the value of useOldDivider to: "" != separatorSource
62- property bool useOldDivider: false
63-
64- style: useOldDivider ? Theme.createStyleComponent("HeadSeparatorImageStyle.qml", divider)
65- : Theme.createStyleComponent("HeadDividerStyle.qml", divider)
66+ style: Theme.createStyleComponent("HeadDividerStyle.qml", divider)
67
68 property PageHeadSections sections: styledItem.config.sections
69
70
71=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/qmldir'
72--- modules/Ubuntu/Components/Themes/Ambiance/qmldir 2014-11-10 17:08:05 +0000
73+++ modules/Ubuntu/Components/Themes/Ambiance/qmldir 2014-11-26 20:10:50 +0000
74@@ -53,5 +53,4 @@
75 internal TextSelectionStartCursorStyle TextSelectionStartCursorStyle.qml
76 internal TextSelectionEndCursorStyle TextSelectionEndCursorStyle.qml
77 internal OverflowPanel OverflowPanel.qml
78-internal HeadSeparatorImageStyle HeadSeparatorImageStyle.qml
79 internal HeadDividerStyle HeadDividerStyle.qml

Subscribers

People subscribed via source and target branches