Merge lp:~ibelieve/ubuntu-ui-toolkit/themeImprovements into lp:ubuntu-ui-toolkit

Proposed by Michael Spencer
Status: Rejected
Rejected by: Tim Peeters
Proposed branch: lp:~ibelieve/ubuntu-ui-toolkit/themeImprovements
Merge into: lp:ubuntu-ui-toolkit
Diff against target: 281 lines (+75/-20)
10 files modified
modules/Ubuntu/Components/ListItems/LabelVisual.qml (+2/-2)
modules/Ubuntu/Components/Popups/ComposerSheet.qml (+3/-3)
modules/Ubuntu/Components/Popups/DefaultSheet.qml (+3/-3)
modules/Ubuntu/Components/Themes/Ambiance/CheckBoxStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/OptionSelectorStyle.qml (+2/-0)
modules/Ubuntu/Components/Themes/Ambiance/Palette.qml (+3/-1)
modules/Ubuntu/Components/Themes/Ambiance/PickerStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/SheetForegroundStyle.qml (+54/-7)
modules/Ubuntu/Components/Themes/SuruDark/Palette.qml (+3/-1)
modules/Ubuntu/Components/Themes/SuruGradient/Palette.qml (+3/-1)
To merge this branch: bzr merge lp:~ibelieve/ubuntu-ui-toolkit/themeImprovements
Reviewer Review Type Date Requested Status
Tim Peeters Needs Resubmitting
Zsombor Egri Needs Information
Review via email: mp+210508@code.launchpad.net

Commit message

Improves and fixes various visual inconsistencies

Description of the change

This fixes some visual inconsistencies and also improves the style of sheets.

It contains the following changes:

 * Fixes the text colors for list items in a Popover (no longer black and is now the color that list items are outside of a Popover using the non-Suru theme)
 * Fixes the background color of OptionSelectors and Pickers to match that of TextFields
 * Fixes the text color for TextFields and TextAreas when the text area is not focused in the SuruGradient theme
 * Fixes the unselected color of CheckBoxes to look awesome with a dark Suru background
 * A new style for Sheets based on the UbuntuShape
 * Fixes the text for Sheet buttons so they are properly capitalized

Screenshot of the Sheet design: http://i.imgur.com/33rOPE3.png

To post a comment you must log in.
975. By Michael Spencer

Fixed text field color for SuruGradient theme when text field is not focused

Revision history for this message
Zsombor Egri (zsombi) wrote :

Has these changes been confirmed by the UI team?

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

Please get confirmation from the design team and resubmit for merging into lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/staging

review: Needs Resubmitting

Unmerged revisions

975. By Michael Spencer

Fixed text field color for SuruGradient theme when text field is not focused

974. By Michael Spencer

Improved checkbox color

973. By Michael Spencer

Lots of color fixes and other visual improvements

972. By Tim Peeters

move TabBar into HeaderStyle

971. By Tim Peeters

link bug

970. By Tim Peeters

fix unit tests

969. By Tim Peeters

move selectedIndex property to the tabs model

968. By Launchpad Translations on behalf of ubuntu-sdk-team

Launchpad automatic translations update.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'modules/Ubuntu/Components/ListItems/LabelVisual.qml'
2--- modules/Ubuntu/Components/ListItems/LabelVisual.qml 2013-08-29 18:47:30 +0000
3+++ modules/Ubuntu/Components/ListItems/LabelVisual.qml 2014-03-11 22:48:48 +0000
4@@ -32,7 +32,7 @@
5
6 fontSize: "medium"
7 elide: Text.ElideRight
8- color: selected ? UbuntuColors.orange : secondary ? overlay ? Theme.palette.normal.overlayText : Theme.palette.normal.backgroundText
9- : overlay ? Theme.palette.selected.overlayText : Theme.palette.selected.backgroundText
10+ color: selected ? UbuntuColors.orange : secondary ? overlay ? Theme.palette.selected.overlayText : Theme.palette.normal.backgroundText
11+ : overlay ? Theme.palette.normal.overlayText : Theme.palette.selected.backgroundText
12 opacity: label.enabled ? 1.0 : 0.5
13 }
14
15=== modified file 'modules/Ubuntu/Components/Popups/ComposerSheet.qml'
16--- modules/Ubuntu/Components/Popups/ComposerSheet.qml 2013-11-05 00:34:46 +0000
17+++ modules/Ubuntu/Components/Popups/ComposerSheet.qml 2014-03-11 22:48:48 +0000
18@@ -74,9 +74,10 @@
19 signal confirmClicked
20
21 __leftButton: Button {
22- text: i18n.dtr("ubuntu-sdk", "cancel")
23+ text: i18n.dtr("ubuntu-sdk", "Cancel")
24 objectName: "cancelButton"
25 /*! \internal */ // avoid warning when generating documentation
26+ color: "gray"
27 onClicked: {
28 composer.cancelClicked();
29 composer.hide();
30@@ -84,9 +85,8 @@
31 }
32
33 __rightButton: Button {
34- text: i18n.dtr("ubuntu-sdk", "confirm")
35+ text: i18n.dtr("ubuntu-sdk", "Confirm")
36 objectName: "confirmButton"
37- color: UbuntuColors.orange
38 /*! \internal */ // avoid warning when generating documentation
39 onClicked: {
40 composer.confirmClicked();
41
42=== modified file 'modules/Ubuntu/Components/Popups/DefaultSheet.qml'
43--- modules/Ubuntu/Components/Popups/DefaultSheet.qml 2013-07-01 05:54:33 +0000
44+++ modules/Ubuntu/Components/Popups/DefaultSheet.qml 2014-03-11 22:48:48 +0000
45@@ -82,8 +82,9 @@
46 signal doneClicked
47
48 __leftButton: Button {
49- text: i18n.dtr("ubuntu-sdk", "close")
50+ text: i18n.dtr("ubuntu-sdk", "Close")
51 visible: !doneButton
52+ color: "gray"
53 /*! \internal */
54 onClicked: {
55 sheet.closeClicked();
56@@ -92,8 +93,7 @@
57 }
58
59 __rightButton: Button {
60- text: i18n.dtr("ubuntu-sdk", "done")
61- color: UbuntuColors.orange
62+ text: i18n.dtr("ubuntu-sdk", "Done")
63 visible: doneButton
64 /*! \internal */
65 onClicked: {
66
67=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/CheckBoxStyle.qml'
68--- modules/Ubuntu/Components/Themes/Ambiance/CheckBoxStyle.qml 2014-02-05 19:59:43 +0000
69+++ modules/Ubuntu/Components/Themes/Ambiance/CheckBoxStyle.qml 2014-03-11 22:48:48 +0000
70@@ -65,7 +65,7 @@
71 }
72 PropertyChanges {
73 target: background
74- color: Theme.palette.normal.foreground
75+ color: Qt.rgba(0,0,0,0.2)
76 }
77 }
78 ]
79
80=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/OptionSelectorStyle.qml'
81--- modules/Ubuntu/Components/Themes/Ambiance/OptionSelectorStyle.qml 2013-08-28 10:43:46 +0000
82+++ modules/Ubuntu/Components/Themes/Ambiance/OptionSelectorStyle.qml 2014-03-11 22:48:48 +0000
83@@ -24,6 +24,7 @@
84 property url chevron: "../../artwork/chevron_down@30.png"
85 property url tick: "../../artwork/tick@30.png"
86 property bool colourComponent: true
87+ property color backgroundColor: Theme.palette.normal.field
88
89 UbuntuShape {
90 id: background
91@@ -31,5 +32,6 @@
92 width: styledItem.width
93 height: styledItem.height
94 radius: "medium"
95+ color: backgroundColor
96 }
97 }
98
99=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/Palette.qml'
100--- modules/Ubuntu/Components/Themes/Ambiance/Palette.qml 2013-07-05 12:21:32 +0000
101+++ modules/Ubuntu/Components/Themes/Ambiance/Palette.qml 2014-03-11 22:48:48 +0000
102@@ -28,7 +28,7 @@
103 overlay: "#FDFDFD"
104 overlayText: "#888888"
105 field: "#1A000000"
106- fieldText: "#888888"
107+ fieldText: baseText
108 }
109 selected: PaletteValues {
110 /* FIXME: 'background' does not come from design
111@@ -39,6 +39,8 @@
112 backgroundText: "#888888"
113 foreground: "#DD4814"
114 foregroundText: "#F3F3E7"
115+ overlay: "#FDFDFD"
116+ overlayText: "#81888888"
117 field: "#FFFFFF"
118 fieldText: "#888888"
119 }
120
121=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/PickerStyle.qml'
122--- modules/Ubuntu/Components/Themes/Ambiance/PickerStyle.qml 2013-12-12 14:10:17 +0000
123+++ modules/Ubuntu/Components/Themes/Ambiance/PickerStyle.qml 2014-03-11 22:48:48 +0000
124@@ -24,7 +24,7 @@
125 /*!
126 Specifies the background color
127 */
128- property color backgroundColor: "#0A000000"
129+ property color backgroundColor: Theme.palette.normal.field
130 /*!
131 Background color for highlight.
132 */
133
134=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/SheetForegroundStyle.qml'
135--- modules/Ubuntu/Components/Themes/Ambiance/SheetForegroundStyle.qml 2013-06-27 15:20:12 +0000
136+++ modules/Ubuntu/Components/Themes/Ambiance/SheetForegroundStyle.qml 2014-03-11 22:48:48 +0000
137@@ -16,13 +16,14 @@
138
139 import QtQuick 2.0
140 import Ubuntu.Components 0.1
141+import Ubuntu.Components.ListItems 0.1 as ListItem
142
143 Item {
144 id: visuals
145 // styling properties
146- property color backgroundColor: "lightgray"
147- property color headerColor: "darkgray"
148- property real headerHeight: units.gu(8)
149+ property color backgroundColor: Qt.rgba(0.2,0.2,0.2,0.97)
150+ property color headerColor: Qt.rgba(0,0,0,0.2)
151+ property real headerHeight: units.gu(6)
152 property real buttonContainerWidth: units.gu(14)
153
154 implicitWidth: MathUtils.clamp(styledItem.contentsWidth, styledItem.minWidth, styledItem.maxWidth)
155@@ -30,16 +31,61 @@
156
157 property alias contentItem: containerItem
158
159+ property bool maximized: styledItem.contentsWidth > styledItem.maxWidth
160+
161+ UbuntuShape {
162+ id: background
163+ color: backgroundColor
164+ visible: !maximized
165+ anchors {
166+ left: parent.left
167+ right: parent.right
168+ top: header.top
169+ bottom: containerItem.bottom
170+ }
171+ }
172+
173 Rectangle {
174+ color: backgroundColor
175+ visible: maximized
176+ anchors {
177+ left: parent.left
178+ right: parent.right
179+ top: header.top
180+ bottom: containerItem.bottom
181+ }
182+ }
183+
184+ Item {
185 id: header
186- color: visuals.headerColor
187 height: visuals.headerHeight
188+ clip: true
189+
190 anchors {
191 top: parent.top
192 left: parent.left
193 right: parent.right
194 }
195
196+ UbuntuShape {
197+ anchors {
198+ fill: parent
199+ bottomMargin: -units.gu(2)
200+ }
201+
202+ visible: !maximized
203+ color: visuals.headerColor
204+ }
205+
206+ Rectangle {
207+ anchors {
208+ fill: parent
209+ }
210+
211+ visible: maximized
212+ color: visuals.headerColor
213+ }
214+
215 Label {
216 id: headerText
217 anchors {
218@@ -51,6 +97,8 @@
219 elide: Text.ElideRight
220 horizontalAlignment: Text.AlignHCenter
221 text: styledItem.title
222+ fontSize: "large"
223+ color: "#F3F3E7"
224 }
225
226 Item {
227@@ -91,10 +139,9 @@
228 }
229 }
230
231- Rectangle {
232+ Item {
233 id: containerItem
234- color: visuals.backgroundColor
235- height: MathUtils.clamp(styledItem.contentsHeight, styledItem.minHeight - header.height, styledItem.maxHeight - header.height)
236+ height: false ? styledItem.maxHeight - header.height : MathUtils.clamp(styledItem.contentsHeight, styledItem.minHeight - header.height, styledItem.maxHeight - header.height)
237 anchors {
238 top: header.bottom
239 left: parent.left
240
241=== modified file 'modules/Ubuntu/Components/Themes/SuruDark/Palette.qml'
242--- modules/Ubuntu/Components/Themes/SuruDark/Palette.qml 2013-07-05 14:34:00 +0000
243+++ modules/Ubuntu/Components/Themes/SuruDark/Palette.qml 2014-03-11 22:48:48 +0000
244@@ -28,13 +28,15 @@
245 overlay: "#F2F2F2"
246 overlayText: "#888888"
247 field: "#19000000"
248- fieldText: "#7F7F7F7F"
249+ fieldText: baseText
250 }
251 selected: PaletteValues {
252 background: "#88D6D6D6" // FIXME: not from design
253 backgroundText: "#F3F3E7"
254 foreground: "#DD4814"
255 foregroundText: "#F3F3E7"
256+ overlay: "#FDFDFD"
257+ overlayText: "#81888888"
258 field: "#FFFFFF"
259 fieldText: "#888888"
260 }
261
262=== modified file 'modules/Ubuntu/Components/Themes/SuruGradient/Palette.qml'
263--- modules/Ubuntu/Components/Themes/SuruGradient/Palette.qml 2013-07-05 14:34:00 +0000
264+++ modules/Ubuntu/Components/Themes/SuruGradient/Palette.qml 2014-03-11 22:48:48 +0000
265@@ -28,13 +28,15 @@
266 overlay: "#F5F5F5"
267 overlayText: "#888888"
268 field: "#19000000"
269- fieldText: "#7F7F7F7F"
270+ fieldText: baseText
271 }
272 selected: PaletteValues {
273 background: "#88D6D6D6" // FIXME: not from design
274 backgroundText: "#F3F3E7"
275 foreground: "#DD4814"
276 foregroundText: "#F3F3E7"
277+ overlay: "#FDFDFD"
278+ overlayText: "#81888888"
279 field: "#FFFFFF"
280 fieldText: "#888888"
281 }

Subscribers

People subscribed via source and target branches

to status/vote changes: