Merge lp:~nataliabidart/ubuntuone-control-panel/ui-style-fixes into lp:ubuntuone-control-panel

Proposed by Natalia Bidart
Status: Merged
Approved by: Roberto Alsina
Approved revision: 207
Merged at revision: 199
Proposed branch: lp:~nataliabidart/ubuntuone-control-panel/ui-style-fixes
Merge into: lp:ubuntuone-control-panel
Diff against target: 276 lines (+63/-54)
6 files modified
bin/ubuntuone-control-panel-gtk (+3/-3)
bin/ubuntuone-control-panel-qt (+3/-3)
data/qt/controlpanel.ui (+41/-38)
data/qt/images.qrc (+2/-0)
data/qt/mainwindow.ui (+1/-1)
data/qt/ubuntuone.qss (+13/-9)
To merge this branch: bzr merge lp:~nataliabidart/ubuntuone-control-panel/ui-style-fixes
Reviewer Review Type Date Requested Status
Roberto Alsina (community) Approve
Diego Sarmentero (community) Approve
Review via email: mp+71928@code.launchpad.net

Commit message

- Consistenly name the application "Ubuntu One" (no more "Control Panel" suffix) (LP: #827465).
- Application font size should be 13px (LP: #824568).
- Font size for tabs is now 13px (since every widget has that size set as default) (LP: #824549).
- AbstractItemView should only have top and bottom borders (LP: #822665)
- Removed button fixed height, button styles will be fixed later.
- Fixed bottom area as per indications in bug report (LP: #824559).
- Fonts are no longer black but #333333 (LP: #824546).
- Swapped background color for AbstractItemView rows (LP: #822679).

To post a comment you must log in.
Revision history for this message
Diego Sarmentero (diegosarmentero) wrote :

+1

review: Approve
Revision history for this message
Roberto Alsina (ralsina) wrote :

In line 70 of the diff:

Instead of setting a fixed height of 30px, you should set the vertical sizePolicy to minimum, and the desired paddings.

While that may not result in a 30px tall frame, it will produce one with symmetrical padding, which is impossible to guarantee with fixed heights unless you fix the height of everything.

Fixing the height of everything is probably not practical because there are elements containing texts so the heights are dictated by the font sizes.

While we are using fixed point sizes (13px in most cases), that doesn't mean the texts themselves are 13px tall, because of descents.

Also, the use of fixed font sizes in px is probably an accessibility problem (it will not respect accessibility themes, like the ones with large fonts), and maybe should be discussed with design later on.

review: Needs Fixing
Revision history for this message
Natalia Bidart (nataliabidart) wrote :

> In line 70 of the diff:
>
> Instead of setting a fixed height of 30px, you should set the vertical
> sizePolicy to minimum, and the desired paddings.

Thanks for pointing this out. I agree with this, but the design spec states clearly that the height should be 30px: you can check this out in bug #824559 and in the spec file win_client_bottom_area.pdf inside the share Lisette made (under client/RTC/specs).

I also think that we should not have the font fixed to a given size... but not sure how to handle this with the design team.

Revision history for this message
Roberto Alsina (ralsina) wrote :

Mailing Lisette and you about this.

Revision history for this message
Roberto Alsina (ralsina) wrote :

Approving since it's according to spec, we'll review these when/if we change the spec.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/ubuntuone-control-panel-gtk'
2--- bin/ubuntuone-control-panel-gtk 2011-05-24 14:20:18 +0000
3+++ bin/ubuntuone-control-panel-gtk 2011-08-17 18:07:23 +0000
4@@ -39,12 +39,12 @@
5 result = OptionParser(usage=usage)
6 result.add_option("", "--switch-to", dest="switch_to", type="string",
7 metavar="PANEL_NAME", default="",
8- help="Start the Ubuntu One Control Panel (GTK) in the "
9+ help="Start Ubuntu One in the "
10 "PANEL_NAME tab. Possible values are: "
11 "dashboard, volumes, devices, applications")
12 result.add_option("-a", "--alert", dest="alert", action="store_true",
13- default=False, help="Start the Ubuntu One Control Panel "
14- "(GTK) alerting the user to its presence.")
15+ default=False, help="Start Ubuntu One "
16+ "alerting the user to its presence.")
17 return result
18
19
20
21=== modified file 'bin/ubuntuone-control-panel-qt'
22--- bin/ubuntuone-control-panel-qt 2011-06-16 19:49:43 +0000
23+++ bin/ubuntuone-control-panel-qt 2011-08-17 18:07:23 +0000
24@@ -39,12 +39,12 @@
25 result = OptionParser(usage=usage)
26 result.add_option("", "--switch-to", dest="switch_to", type="string",
27 metavar="PANEL_NAME", default="",
28- help="Start the Ubuntu One Control Panel (QT) in the "
29+ help="Start Ubuntu One in the "
30 "PANEL_NAME tab. Possible values are: "
31 "dashboard, volumes, devices, applications")
32 result.add_option("-a", "--alert", dest="alert", action="store_true",
33- default=False, help="Start the Ubuntu One Control Panel "
34- "(QT) alerting the user to its presence.")
35+ default=False, help="Start Ubuntu One "
36+ "alerting the user to its presence.")
37 return result
38
39
40
41=== modified file 'data/facebook.png'
42Binary files data/facebook.png 2011-01-25 16:35:59 +0000 and data/facebook.png 2011-08-17 18:07:23 +0000 differ
43=== modified file 'data/qt/controlpanel.ui'
44--- data/qt/controlpanel.ui 2011-08-05 18:07:09 +0000
45+++ data/qt/controlpanel.ui 2011-08-17 18:07:23 +0000
46@@ -6,8 +6,8 @@
47 <rect>
48 <x>0</x>
49 <y>0</y>
50- <width>387</width>
51- <height>203</height>
52+ <width>367</width>
53+ <height>142</height>
54 </rect>
55 </property>
56 <property name="sizePolicy">
57@@ -233,22 +233,25 @@
58 </item>
59 <item>
60 <widget class="QFrame" name="frame_footer">
61+ <property name="sizePolicy">
62+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
63+ <horstretch>0</horstretch>
64+ <verstretch>0</verstretch>
65+ </sizepolicy>
66+ </property>
67+ <property name="maximumSize">
68+ <size>
69+ <width>16777215</width>
70+ <height>30</height>
71+ </size>
72+ </property>
73 <layout class="QHBoxLayout" name="horizontalLayout">
74 <property name="spacing">
75 <number>5</number>
76 </property>
77- <property name="leftMargin">
78- <number>3</number>
79- </property>
80- <property name="topMargin">
81+ <property name="margin">
82 <number>0</number>
83 </property>
84- <property name="rightMargin">
85- <number>3</number>
86- </property>
87- <property name="bottomMargin">
88- <number>3</number>
89- </property>
90 <item>
91 <widget class="GoToWebButton" name="help_button">
92 <property name="text">
93@@ -282,49 +285,49 @@
94 </widget>
95 </item>
96 <item>
97- <widget class="QToolButton" name="twitter_button">
98+ <widget class="QPushButton" name="twitter_button">
99+ <property name="sizePolicy">
100+ <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
101+ <horstretch>0</horstretch>
102+ <verstretch>0</verstretch>
103+ </sizepolicy>
104+ </property>
105+ <property name="maximumSize">
106+ <size>
107+ <width>16</width>
108+ <height>16</height>
109+ </size>
110+ </property>
111 <property name="cursor">
112 <cursorShape>PointingHandCursor</cursorShape>
113 </property>
114- <property name="styleSheet">
115- <string notr="true">border: 0;</string>
116- </property>
117- <property name="text">
118- <string/>
119- </property>
120 <property name="icon">
121 <iconset resource="images.qrc">
122 <normaloff>:/twitter.png</normaloff>:/twitter.png</iconset>
123 </property>
124- <property name="iconSize">
125- <size>
126- <width>22</width>
127- <height>22</height>
128- </size>
129- </property>
130 </widget>
131 </item>
132 <item>
133- <widget class="QToolButton" name="facebook_button">
134+ <widget class="QPushButton" name="facebook_button">
135+ <property name="sizePolicy">
136+ <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
137+ <horstretch>0</horstretch>
138+ <verstretch>0</verstretch>
139+ </sizepolicy>
140+ </property>
141+ <property name="maximumSize">
142+ <size>
143+ <width>16</width>
144+ <height>16</height>
145+ </size>
146+ </property>
147 <property name="cursor">
148 <cursorShape>PointingHandCursor</cursorShape>
149 </property>
150- <property name="styleSheet">
151- <string notr="true">border: 0;</string>
152- </property>
153- <property name="text">
154- <string/>
155- </property>
156 <property name="icon">
157 <iconset resource="images.qrc">
158 <normaloff>:/facebook.png</normaloff>:/facebook.png</iconset>
159 </property>
160- <property name="iconSize">
161- <size>
162- <width>22</width>
163- <height>22</height>
164- </size>
165- </property>
166 </widget>
167 </item>
168 </layout>
169
170=== modified file 'data/qt/images.qrc'
171--- data/qt/images.qrc 2011-07-14 17:57:17 +0000
172+++ data/qt/images.qrc 2011-08-17 18:07:23 +0000
173@@ -10,6 +10,8 @@
174 <file>../computer.png</file>
175 <file>../phone.png</file>
176 <file>../twitter.png</file>
177+ <file>../twitter.png</file>
178+ <file>../facebook.png</file>
179 <file>../facebook.png</file>
180 <file>../external_icon_white.png</file>
181 <file>../Ubuntu-R.ttf</file>
182
183=== modified file 'data/qt/mainwindow.ui'
184--- data/qt/mainwindow.ui 2011-07-21 20:06:19 +0000
185+++ data/qt/mainwindow.ui 2011-08-17 18:07:23 +0000
186@@ -23,7 +23,7 @@
187 </size>
188 </property>
189 <property name="windowTitle">
190- <string>Ubuntu One Control Panel</string>
191+ <string>Ubuntu One</string>
192 </property>
193 <property name="windowIcon">
194 <iconset resource="images.qrc">
195
196=== modified file 'data/qt/ubuntuone.qss'
197--- data/qt/ubuntuone.qss 2011-08-05 21:20:21 +0000
198+++ data/qt/ubuntuone.qss 2011-08-17 18:07:23 +0000
199@@ -4,6 +4,8 @@
200
201 QWidget {
202 font-family: "Ubuntu";
203+ font-size: 13px;
204+ color: #333333;
205 }
206
207 QFrame {
208@@ -51,7 +53,6 @@
209 color: white;
210 border-color: #939389;
211 border-width: 1px;
212- height: 14px;
213 }
214
215 QPushButton:hover[enabled="true"] {
216@@ -63,7 +64,6 @@
217 color: white;
218 border-color: #939389;
219 border-width: 1px;
220- height: 12px;
221 }
222
223 QPushButton:pressed[enabled="true"] {
224@@ -75,7 +75,6 @@
225 color: white;
226 border-color: #939389;
227 border-width: 1px;
228- height: 12px;
229 }
230
231 QPushButton[enabled="false"] {
232@@ -87,14 +86,12 @@
233 color: #595959;
234 border-color: #939389;
235 border-width: 1px;
236- height: 12px;
237 }
238
239 QPushButton#help_button {
240 background: transparent;
241 border: none;
242 color: white;
243- height: 20px;
244 text-decoration: underline;
245 padding: 0px;
246 }
247@@ -109,6 +106,11 @@
248 padding: 5px;
249 }
250
251+QPushButton#twitter_button,
252+QPushButton#facebook_button {
253+ border: none;
254+}
255+
256 GoToWebButton#share_publish_button {
257 background: transparent;
258 border: none;
259@@ -235,8 +237,10 @@
260
261 QAbstractItemView {
262 border-style: solid;
263- border-color: #333333;
264- border-width: 1px;
265- alternate-background-color: #efedec;
266- background: #f7f6f5;
267+ border-color: #898989;
268+ border-top-width: 1px;
269+ border-bottom-width: 1px;
270+ alternate-background-color: #f7f6f5;
271+ background: #efedec;
272 }
273+
274
275=== modified file 'data/twitter.png'
276Binary files data/twitter.png 2011-01-25 16:35:59 +0000 and data/twitter.png 2011-08-17 18:07:23 +0000 differ

Subscribers

People subscribed via source and target branches