Merge lp:~chipaca/ubuntuone-control-panel/diego-sarmentero-delivers into lp:ubuntuone-control-panel

Proposed by John Lenton
Status: Rejected
Rejected by: dobey
Proposed branch: lp:~chipaca/ubuntuone-control-panel/diego-sarmentero-delivers
Merge into: lp:ubuntuone-control-panel
Diff against target: 1281 lines (+908/-162)
10 files modified
data/qt/connectingwidget.ui (+123/-0)
data/qt/controlpanel.ui (+495/-148)
data/qt/images.qrc (+6/-0)
data/qt/mainwindow.ui (+13/-1)
data/qt/preferences.ui (+34/-9)
ubuntuone/controlpanel/gui/__init__.py (+4/-2)
ubuntuone/controlpanel/gui/qt/connectingwidget.py (+74/-0)
ubuntuone/controlpanel/gui/qt/controlpanel.py (+4/-2)
ubuntuone/controlpanel/gui/qt/main/ubuntuone.qss (+145/-0)
ubuntuone/controlpanel/gui/qt/main/windows.py (+10/-0)
To merge this branch: bzr merge lp:~chipaca/ubuntuone-control-panel/diego-sarmentero-delivers
Reviewer Review Type Date Requested Status
dobey (community) Needs Resubmitting
Roberto Alsina (community) Approve
John Lenton (community) Approve
Review via email: mp+66803@code.launchpad.net

Commit message

Diego Sarmentero’s initial styling work

Description of the change

Diego Sarmentero’s initial styling work

To post a comment you must log in.
Revision history for this message
John Lenton (chipaca) wrote :

I approve this branch.

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

+1 cute!

review: Approve
Revision history for this message
Ubuntu One Auto Pilot (otto-pilot) wrote :
Download full text (92.8 KiB)

The attempt to merge lp:~chipaca/ubuntuone-control-panel/diego-sarmentero-delivers into lp:ubuntuone-control-panel failed. Below is the output from the failed tests.

running build
Compiled data/qt/device.ui into ubuntuone/controlpanel/gui/qt/ui/device_ui.py
Compiled data/qt/mainwindow.ui into ubuntuone/controlpanel/gui/qt/ui/mainwindow_ui.py
Compiled data/qt/filesyncstatus.ui into ubuntuone/controlpanel/gui/qt/ui/filesyncstatus_ui.py
Compiled data/qt/folders.ui into ubuntuone/controlpanel/gui/qt/ui/folders_ui.py
Compiled data/qt/devices.ui into ubuntuone/controlpanel/gui/qt/ui/devices_ui.py
Compiled data/qt/preferences.ui into ubuntuone/controlpanel/gui/qt/ui/preferences_ui.py
compiled data/qt/images.qrc into ubuntuone/controlpanel/gui/qt/ui/images_rc.py
Compiled data/qt/ubuntuonebin.ui into ubuntuone/controlpanel/gui/qt/ui/ubuntuonebin_ui.py
Compiled data/qt/connectingwidget.ui into ubuntuone/controlpanel/gui/qt/ui/connectingwidget_ui.py
Compiled data/qt/services.ui into ubuntuone/controlpanel/gui/qt/ui/services_ui.py
Compiled data/qt/controlpanel.ui into ubuntuone/controlpanel/gui/qt/ui/controlpanel_ui.py
Compiled data/qt/profile.ui into ubuntuone/controlpanel/gui/qt/ui/profile_ui.py
running build_py
creating build
creating build/lib.linux-i686-2.7
creating build/lib.linux-i686-2.7/ubuntuone
copying ubuntuone/__init__.py -> build/lib.linux-i686-2.7/ubuntuone
creating build/lib.linux-i686-2.7/ubuntuone/controlpanel
copying ubuntuone/controlpanel/replication_client.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel
copying ubuntuone/controlpanel/__init__.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel
copying ubuntuone/controlpanel/utils.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel
copying ubuntuone/controlpanel/login_client.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel
copying ubuntuone/controlpanel/dbus_service.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel
copying ubuntuone/controlpanel/backend.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel
copying ubuntuone/controlpanel/logger.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel
creating build/lib.linux-i686-2.7/ubuntuone/controlpanel/gui
copying ubuntuone/controlpanel/gui/__init__.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel/gui
creating build/lib.linux-i686-2.7/ubuntuone/controlpanel/gui/gtk
copying ubuntuone/controlpanel/gui/gtk/package_manager.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel/gui/gtk
copying ubuntuone/controlpanel/gui/gtk/widgets.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel/gui/gtk
copying ubuntuone/controlpanel/gui/gtk/__init__.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel/gui/gtk
copying ubuntuone/controlpanel/gui/gtk/gui.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel/gui/gtk
creating build/lib.linux-i686-2.7/ubuntuone/controlpanel/gui/qt
copying ubuntuone/controlpanel/gui/qt/connectingwidget.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel/gui/qt
copying ubuntuone/controlpanel/gui/qt/__init__.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel/gui/qt
copying ubuntuone/controlpanel/gui/qt/ubuntuonebin.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel/gui/qt
copying ubuntuone/co...

Revision history for this message
Ubuntu One Auto Pilot (otto-pilot) wrote :
Download full text (92.5 KiB)

The attempt to merge lp:~chipaca/ubuntuone-control-panel/diego-sarmentero-delivers into lp:ubuntuone-control-panel failed. Below is the output from the failed tests.

running build
Compiled data/qt/device.ui into ubuntuone/controlpanel/gui/qt/ui/device_ui.py
Compiled data/qt/mainwindow.ui into ubuntuone/controlpanel/gui/qt/ui/mainwindow_ui.py
Compiled data/qt/filesyncstatus.ui into ubuntuone/controlpanel/gui/qt/ui/filesyncstatus_ui.py
Compiled data/qt/folders.ui into ubuntuone/controlpanel/gui/qt/ui/folders_ui.py
Compiled data/qt/devices.ui into ubuntuone/controlpanel/gui/qt/ui/devices_ui.py
Compiled data/qt/preferences.ui into ubuntuone/controlpanel/gui/qt/ui/preferences_ui.py
compiled data/qt/images.qrc into ubuntuone/controlpanel/gui/qt/ui/images_rc.py
Compiled data/qt/ubuntuonebin.ui into ubuntuone/controlpanel/gui/qt/ui/ubuntuonebin_ui.py
Compiled data/qt/connectingwidget.ui into ubuntuone/controlpanel/gui/qt/ui/connectingwidget_ui.py
Compiled data/qt/services.ui into ubuntuone/controlpanel/gui/qt/ui/services_ui.py
Compiled data/qt/controlpanel.ui into ubuntuone/controlpanel/gui/qt/ui/controlpanel_ui.py
Compiled data/qt/profile.ui into ubuntuone/controlpanel/gui/qt/ui/profile_ui.py
running build_py
creating build
creating build/lib.linux-i686-2.7
creating build/lib.linux-i686-2.7/ubuntuone
copying ubuntuone/__init__.py -> build/lib.linux-i686-2.7/ubuntuone
creating build/lib.linux-i686-2.7/ubuntuone/controlpanel
copying ubuntuone/controlpanel/replication_client.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel
copying ubuntuone/controlpanel/__init__.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel
copying ubuntuone/controlpanel/utils.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel
copying ubuntuone/controlpanel/login_client.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel
copying ubuntuone/controlpanel/dbus_service.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel
copying ubuntuone/controlpanel/backend.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel
copying ubuntuone/controlpanel/logger.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel
creating build/lib.linux-i686-2.7/ubuntuone/controlpanel/gui
copying ubuntuone/controlpanel/gui/__init__.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel/gui
creating build/lib.linux-i686-2.7/ubuntuone/controlpanel/gui/gtk
copying ubuntuone/controlpanel/gui/gtk/package_manager.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel/gui/gtk
copying ubuntuone/controlpanel/gui/gtk/widgets.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel/gui/gtk
copying ubuntuone/controlpanel/gui/gtk/__init__.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel/gui/gtk
copying ubuntuone/controlpanel/gui/gtk/gui.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel/gui/gtk
creating build/lib.linux-i686-2.7/ubuntuone/controlpanel/gui/qt
copying ubuntuone/controlpanel/gui/qt/connectingwidget.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel/gui/qt
copying ubuntuone/controlpanel/gui/qt/__init__.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel/gui/qt
copying ubuntuone/controlpanel/gui/qt/ubuntuonebin.py -> build/lib.linux-i686-2.7/ubuntuone/controlpanel/gui/qt
copying ubuntuone/co...

177. By John Lenton

couple of cleanups to diego’s work

Revision history for this message
dobey (dobey) wrote :
review: Needs Resubmitting

Unmerged revisions

177. By John Lenton

couple of cleanups to diego’s work

176. By John Lenton

DiegoSarmentero’s initial styling work (#2)

175. By John Lenton

DiegoSarmentero’s initial styling work (awesome).

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'data/external_icon_orange.png'
0Binary files data/external_icon_orange.png 1970-01-01 00:00:00 +0000 and data/external_icon_orange.png 2011-07-05 10:27:59 +0000 differ0Binary files data/external_icon_orange.png 1970-01-01 00:00:00 +0000 and data/external_icon_orange.png 2011-07-05 10:27:59 +0000 differ
=== added file 'data/external_icon_white.png'
1Binary files data/external_icon_white.png 1970-01-01 00:00:00 +0000 and data/external_icon_white.png 2011-07-05 10:27:59 +0000 differ1Binary files data/external_icon_white.png 1970-01-01 00:00:00 +0000 and data/external_icon_white.png 2011-07-05 10:27:59 +0000 differ
=== added file 'data/qt/connectingwidget.ui'
--- data/qt/connectingwidget.ui 1970-01-01 00:00:00 +0000
+++ data/qt/connectingwidget.ui 2011-07-05 10:27:59 +0000
@@ -0,0 +1,123 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<ui version="4.0">
3 <class>Frame</class>
4 <widget class="QFrame" name="Frame">
5 <property name="geometry">
6 <rect>
7 <x>0</x>
8 <y>0</y>
9 <width>702</width>
10 <height>230</height>
11 </rect>
12 </property>
13 <property name="windowTitle">
14 <string>Frame</string>
15 </property>
16 <property name="frameShape">
17 <enum>QFrame::StyledPanel</enum>
18 </property>
19 <property name="frameShadow">
20 <enum>QFrame::Raised</enum>
21 </property>
22 <layout class="QVBoxLayout" name="verticalLayout">
23 <item>
24 <layout class="QHBoxLayout" name="horizontalLayout_2">
25 <item>
26 <spacer name="horizontalSpacer_2">
27 <property name="orientation">
28 <enum>Qt::Horizontal</enum>
29 </property>
30 <property name="sizeHint" stdset="0">
31 <size>
32 <width>40</width>
33 <height>20</height>
34 </size>
35 </property>
36 </spacer>
37 </item>
38 <item>
39 <widget class="QFrame" name="frmBox">
40 <property name="minimumSize">
41 <size>
42 <width>0</width>
43 <height>102</height>
44 </size>
45 </property>
46 <property name="styleSheet">
47 <string notr="true">QFrame#frmBox {
48 background: #ffffff;
49 border-radius: 5px;
50 border-style: solid;
51 border-color: #939389;
52 border-width: 1px;
53 color: white;
54 min-height: 100px;
55}</string>
56 </property>
57 <property name="frameShape">
58 <enum>QFrame::StyledPanel</enum>
59 </property>
60 <property name="frameShadow">
61 <enum>QFrame::Raised</enum>
62 </property>
63 <layout class="QHBoxLayout" name="horizontalLayout">
64 <property name="topMargin">
65 <number>0</number>
66 </property>
67 <property name="bottomMargin">
68 <number>30</number>
69 </property>
70 <item>
71 <widget class="QLabel" name="label">
72 <property name="sizePolicy">
73 <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
74 <horstretch>0</horstretch>
75 <verstretch>0</verstretch>
76 </sizepolicy>
77 </property>
78 <property name="font">
79 <font>
80 <pointsize>14</pointsize>
81 </font>
82 </property>
83 <property name="text">
84 <string>Please wait while we connect to the Ubuntu One server...</string>
85 </property>
86 </widget>
87 </item>
88 </layout>
89 </widget>
90 </item>
91 <item>
92 <spacer name="horizontalSpacer">
93 <property name="orientation">
94 <enum>Qt::Horizontal</enum>
95 </property>
96 <property name="sizeHint" stdset="0">
97 <size>
98 <width>40</width>
99 <height>20</height>
100 </size>
101 </property>
102 </spacer>
103 </item>
104 </layout>
105 </item>
106 <item>
107 <spacer name="verticalSpacer">
108 <property name="orientation">
109 <enum>Qt::Vertical</enum>
110 </property>
111 <property name="sizeHint" stdset="0">
112 <size>
113 <width>20</width>
114 <height>20</height>
115 </size>
116 </property>
117 </spacer>
118 </item>
119 </layout>
120 </widget>
121 <resources/>
122 <connections/>
123</ui>
0124
=== modified file 'data/qt/controlpanel.ui'
--- data/qt/controlpanel.ui 2011-06-21 22:46:08 +0000
+++ data/qt/controlpanel.ui 2011-07-05 10:27:59 +0000
@@ -6,8 +6,8 @@
6 <rect>6 <rect>
7 <x>0</x>7 <x>0</x>
8 <y>0</y>8 <y>0</y>
9 <width>374</width>9 <width>536</width>
10 <height>172</height>10 <height>284</height>
11 </rect>11 </rect>
12 </property>12 </property>
13 <property name="sizePolicy">13 <property name="sizePolicy">
@@ -19,77 +19,365 @@
19 <property name="windowTitle">19 <property name="windowTitle">
20 <string notr="true">Form</string>20 <string notr="true">Form</string>
21 </property>21 </property>
22 <property name="styleSheet">
23 <string notr="true"/>
24 </property>
22 <layout class="QVBoxLayout" name="verticalLayout">25 <layout class="QVBoxLayout" name="verticalLayout">
23 <item>26 <property name="spacing">
24 <layout class="QHBoxLayout" name="horizontalLayout">27 <number>4</number>
25 <item>28 </property>
26 <widget class="QLabel" name="greeting_label">29 <property name="margin">
27 <property name="text">30 <number>0</number>
28 <string notr="true"/>31 </property>
29 </property>32 <item>
30 </widget>33 <widget class="QFrame" name="frmHeader">
31 </item>34 <property name="frameShape">
32 <item>35 <enum>QFrame::StyledPanel</enum>
33 <spacer name="horizontalSpacer">36 </property>
34 <property name="orientation">37 <property name="frameShadow">
35 <enum>Qt::Horizontal</enum>38 <enum>QFrame::Raised</enum>
36 </property>39 </property>
37 <property name="sizeHint" stdset="0">40 <layout class="QHBoxLayout" name="horizontalLayout_4">
38 <size>41 <property name="spacing">
39 <width>40</width>42 <number>0</number>
40 <height>20</height>43 </property>
41 </size>44 <property name="leftMargin">
42 </property>45 <number>15</number>
43 </spacer>46 </property>
44 </item>47 <property name="topMargin">
45 <item>48 <number>10</number>
46 <widget class="QLabel" name="quota_usage_label">49 </property>
47 <property name="text">50 <property name="rightMargin">
48 <string notr="true"/>51 <number>10</number>
49 </property>52 </property>
50 </widget>53 <property name="bottomMargin">
51 </item>54 <number>10</number>
52 <item>55 </property>
53 <widget class="QPushButton" name="get_more_space_button">56 <item>
54 <property name="text">57 <layout class="QHBoxLayout" name="horizontalLayout">
55 <string>Get more space!</string>58 <property name="spacing">
56 </property>59 <number>0</number>
57 </widget>60 </property>
58 </item>61 <item>
59 </layout>62 <layout class="QVBoxLayout" name="vLayoutGreeting">
60 </item>63 <property name="spacing">
61 <item>64 <number>0</number>
62 <layout class="QHBoxLayout" name="horizontalLayout_2">65 </property>
63 <item>66 <property name="sizeConstraint">
64 <spacer name="horizontalSpacer_3">67 <enum>QLayout::SetDefaultConstraint</enum>
65 <property name="orientation">68 </property>
66 <enum>Qt::Horizontal</enum>69 <item>
67 </property>70 <widget class="QLabel" name="label">
68 <property name="sizeHint" stdset="0">71 <property name="sizePolicy">
69 <size>72 <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
70 <width>40</width>73 <horstretch>0</horstretch>
71 <height>20</height>74 <verstretch>0</verstretch>
72 </size>75 </sizepolicy>
73 </property>76 </property>
74 </spacer>77 <property name="font">
75 </item>78 <font>
76 <item>79 <pointsize>10</pointsize>
77 <widget class="FileSyncStatus" name="file_sync_status" native="true"/>80 </font>
78 </item>81 </property>
79 <item>82 <property name="text">
80 <spacer name="horizontalSpacer_2">83 <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
81 <property name="orientation">84&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
82 <enum>Qt::Horizontal</enum>85p, li { white-space: pre-wrap; }
83 </property>86&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt;
84 <property name="sizeHint" stdset="0">87&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Hi&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
85 <size>88 </property>
86 <width>40</width>89 </widget>
87 <height>20</height>90 </item>
88 </size>91 <item>
89 </property>92 <widget class="QLabel" name="greeting_label">
90 </spacer>93 <property name="font">
91 </item>94 <font>
92 </layout>95 <pointsize>20</pointsize>
96 </font>
97 </property>
98 <property name="layoutDirection">
99 <enum>Qt::LeftToRight</enum>
100 </property>
101 <property name="autoFillBackground">
102 <bool>false</bool>
103 </property>
104 <property name="text">
105 <string notr="true"/>
106 </property>
107 <property name="alignment">
108 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
109 </property>
110 <property name="margin">
111 <number>-2</number>
112 </property>
113 <property name="indent">
114 <number>-1</number>
115 </property>
116 </widget>
117 </item>
118 </layout>
119 </item>
120 <item>
121 <spacer name="horizontalSpacer">
122 <property name="orientation">
123 <enum>Qt::Horizontal</enum>
124 </property>
125 <property name="sizeType">
126 <enum>QSizePolicy::Fixed</enum>
127 </property>
128 <property name="sizeHint" stdset="0">
129 <size>
130 <width>15</width>
131 <height>20</height>
132 </size>
133 </property>
134 </spacer>
135 </item>
136 <item>
137 <widget class="QFrame" name="frameStorage">
138 <property name="sizePolicy">
139 <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
140 <horstretch>0</horstretch>
141 <verstretch>0</verstretch>
142 </sizepolicy>
143 </property>
144 <property name="maximumSize">
145 <size>
146 <width>166</width>
147 <height>16777215</height>
148 </size>
149 </property>
150 <property name="frameShape">
151 <enum>QFrame::StyledPanel</enum>
152 </property>
153 <property name="frameShadow">
154 <enum>QFrame::Raised</enum>
155 </property>
156 <layout class="QHBoxLayout" name="horizontalLayout_7">
157 <property name="spacing">
158 <number>0</number>
159 </property>
160 <property name="leftMargin">
161 <number>10</number>
162 </property>
163 <property name="topMargin">
164 <number>0</number>
165 </property>
166 <property name="rightMargin">
167 <number>10</number>
168 </property>
169 <property name="bottomMargin">
170 <number>0</number>
171 </property>
172 <item>
173 <layout class="QVBoxLayout" name="vLayoutStorage">
174 <property name="sizeConstraint">
175 <enum>QLayout::SetDefaultConstraint</enum>
176 </property>
177 <item>
178 <widget class="QFrame" name="frmQuota">
179 <property name="frameShape">
180 <enum>QFrame::StyledPanel</enum>
181 </property>
182 <property name="frameShadow">
183 <enum>QFrame::Raised</enum>
184 </property>
185 <layout class="QVBoxLayout" name="verticalLayout_3">
186 <property name="spacing">
187 <number>0</number>
188 </property>
189 <property name="leftMargin">
190 <number>0</number>
191 </property>
192 <property name="topMargin">
193 <number>0</number>
194 </property>
195 <property name="rightMargin">
196 <number>0</number>
197 </property>
198 <property name="bottomMargin">
199 <number>10</number>
200 </property>
201 <item>
202 <widget class="QLabel" name="percentage_usage_label">
203 <property name="sizePolicy">
204 <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
205 <horstretch>0</horstretch>
206 <verstretch>0</verstretch>
207 </sizepolicy>
208 </property>
209 <property name="text">
210 <string notr="true">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
211&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
212p, li { white-space: pre-wrap; }
213&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;&quot;&gt;
214&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;&quot;&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
215 </property>
216 </widget>
217 </item>
218 <item>
219 <widget class="QLabel" name="quota_usage_label">
220 <property name="font">
221 <font>
222 <pointsize>8</pointsize>
223 </font>
224 </property>
225 <property name="text">
226 <string/>
227 </property>
228 </widget>
229 </item>
230 </layout>
231 <zorder>quota_usage_label</zorder>
232 <zorder>percentage_usage_label</zorder>
233 </widget>
234 </item>
235 <item>
236 <widget class="QPushButton" name="get_more_space_button">
237 <property name="enabled">
238 <bool>true</bool>
239 </property>
240 <property name="sizePolicy">
241 <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
242 <horstretch>0</horstretch>
243 <verstretch>0</verstretch>
244 </sizepolicy>
245 </property>
246 <property name="layoutDirection">
247 <enum>Qt::RightToLeft</enum>
248 </property>
249 <property name="autoFillBackground">
250 <bool>false</bool>
251 </property>
252 <property name="text">
253 <string>Get more storage!</string>
254 </property>
255 <property name="icon">
256 <iconset resource="images.qrc">
257 <normaloff>:/external_icon_white.png</normaloff>:/external_icon_white.png</iconset>
258 </property>
259 <property name="default">
260 <bool>false</bool>
261 </property>
262 </widget>
263 </item>
264 </layout>
265 </item>
266 </layout>
267 <zorder></zorder>
268 </widget>
269 </item>
270 <item>
271 <widget class="QFrame" name="frameStatus">
272 <property name="sizePolicy">
273 <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
274 <horstretch>0</horstretch>
275 <verstretch>0</verstretch>
276 </sizepolicy>
277 </property>
278 <property name="maximumSize">
279 <size>
280 <width>166</width>
281 <height>16777215</height>
282 </size>
283 </property>
284 <property name="frameShape">
285 <enum>QFrame::StyledPanel</enum>
286 </property>
287 <property name="frameShadow">
288 <enum>QFrame::Raised</enum>
289 </property>
290 <layout class="QHBoxLayout" name="horizontalLayout_8">
291 <property name="spacing">
292 <number>0</number>
293 </property>
294 <property name="leftMargin">
295 <number>10</number>
296 </property>
297 <property name="topMargin">
298 <number>0</number>
299 </property>
300 <property name="rightMargin">
301 <number>0</number>
302 </property>
303 <property name="bottomMargin">
304 <number>0</number>
305 </property>
306 <item>
307 <layout class="QVBoxLayout" name="vLayoutStatus">
308 <property name="spacing">
309 <number>10</number>
310 </property>
311 <item>
312 <layout class="QHBoxLayout" name="horizontalLayout_6">
313 <property name="sizeConstraint">
314 <enum>QLayout::SetDefaultConstraint</enum>
315 </property>
316 <item>
317 <widget class="QLabel" name="lblStatusIcon">
318 <property name="sizePolicy">
319 <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
320 <horstretch>0</horstretch>
321 <verstretch>0</verstretch>
322 </sizepolicy>
323 </property>
324 <property name="text">
325 <string/>
326 </property>
327 <property name="pixmap">
328 <pixmap resource="images.qrc">:/sync_status_syncing.png</pixmap>
329 </property>
330 <property name="alignment">
331 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
332 </property>
333 </widget>
334 </item>
335 <item>
336 <widget class="QLabel" name="lblStatus">
337 <property name="font">
338 <font>
339 <family>MS Shell Dlg 2</family>
340 <pointsize>14</pointsize>
341 </font>
342 </property>
343 <property name="text">
344 <string>Syncing...</string>
345 </property>
346 </widget>
347 </item>
348 </layout>
349 </item>
350 <item>
351 <widget class="QPushButton" name="btnSyncing">
352 <property name="enabled">
353 <bool>false</bool>
354 </property>
355 <property name="sizePolicy">
356 <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
357 <horstretch>0</horstretch>
358 <verstretch>0</verstretch>
359 </sizepolicy>
360 </property>
361 <property name="maximumSize">
362 <size>
363 <width>16777215</width>
364 <height>16777215</height>
365 </size>
366 </property>
367 <property name="text">
368 <string>Stop syncing</string>
369 </property>
370 </widget>
371 </item>
372 </layout>
373 </item>
374 </layout>
375 </widget>
376 </item>
377 </layout>
378 </item>
379 </layout>
380 </widget>
93 </item>381 </item>
94 <item>382 <item>
95 <widget class="QTabWidget" name="tab_widget">383 <widget class="QTabWidget" name="tab_widget">
@@ -133,75 +421,141 @@
133 </widget>421 </widget>
134 </item>422 </item>
135 <item>423 <item>
136 <layout class="QHBoxLayout" name="horizontalLayout_3">424 <widget class="QFrame" name="frmFooter">
137 <item>425 <property name="maximumSize">
138 <widget class="QPushButton" name="help_button">426 <size>
139 <property name="text">427 <width>16777215</width>
140 <string>Help</string>428 <height>30</height>
141 </property>429 </size>
142 </widget>430 </property>
143 </item>431 <property name="frameShape">
144 <item>432 <enum>QFrame::StyledPanel</enum>
145 <spacer name="horizontalSpacer_4">433 </property>
146 <property name="orientation">434 <property name="frameShadow">
147 <enum>Qt::Horizontal</enum>435 <enum>QFrame::Raised</enum>
148 </property>436 </property>
149 <property name="sizeHint" stdset="0">437 <layout class="QVBoxLayout" name="verticalLayout_2">
150 <size>438 <property name="spacing">
151 <width>40</width>439 <number>0</number>
152 <height>20</height>440 </property>
153 </size>441 <property name="margin">
154 </property>442 <number>0</number>
155 </spacer>443 </property>
156 </item>444 <item>
157 <item>445 <layout class="QHBoxLayout" name="hLayoutFooter">
158 <widget class="QLabel" name="follow_us_label">446 <property name="spacing">
159 <property name="text">447 <number>5</number>
160 <string>Follow us:</string>448 </property>
161 </property>449 <property name="leftMargin">
162 </widget>450 <number>0</number>
163 </item>451 </property>
164 <item>452 <property name="rightMargin">
165 <widget class="QToolButton" name="twitter_button">453 <number>0</number>
166 <property name="styleSheet">454 </property>
167 <string notr="true">border: 0;</string>455 <item>
168 </property>456 <widget class="QPushButton" name="help_button">
169 <property name="text">457 <property name="font">
170 <string/>458 <font>
171 </property>459 <pointsize>10</pointsize>
172 <property name="icon">460 <underline>true</underline>
173 <iconset resource="images.qrc">461 </font>
174 <normaloff>:/twitter.png</normaloff>:/twitter.png</iconset>462 </property>
175 </property>463 <property name="cursor">
176 <property name="iconSize">464 <cursorShape>PointingHandCursor</cursorShape>
177 <size>465 </property>
178 <width>32</width>466 <property name="layoutDirection">
179 <height>32</height>467 <enum>Qt::RightToLeft</enum>
180 </size>468 </property>
181 </property>469 <property name="text">
182 </widget>470 <string>Get help online</string>
183 </item>471 </property>
184 <item>472 <property name="icon">
185 <widget class="QToolButton" name="facebook_button">473 <iconset resource="images.qrc">
186 <property name="styleSheet">474 <normaloff>:/external_icon_white.png</normaloff>:/external_icon_white.png</iconset>
187 <string notr="true">border: 0;</string>475 </property>
188 </property>476 <property name="flat">
189 <property name="text">477 <bool>false</bool>
190 <string/>478 </property>
191 </property>479 </widget>
192 <property name="icon">480 </item>
193 <iconset resource="images.qrc">481 <item>
194 <normaloff>:/facebook.png</normaloff>:/facebook.png</iconset>482 <spacer name="horizontalSpacer_4">
195 </property>483 <property name="orientation">
196 <property name="iconSize">484 <enum>Qt::Horizontal</enum>
197 <size>485 </property>
198 <width>32</width>486 <property name="sizeHint" stdset="0">
199 <height>32</height>487 <size>
200 </size>488 <width>40</width>
201 </property>489 <height>20</height>
202 </widget>490 </size>
203 </item>491 </property>
204 </layout>492 </spacer>
493 </item>
494 <item>
495 <widget class="QLabel" name="follow_us_label">
496 <property name="font">
497 <font>
498 <pointsize>11</pointsize>
499 </font>
500 </property>
501 <property name="styleSheet">
502 <string notr="true">color: white;</string>
503 </property>
504 <property name="text">
505 <string>Talk to us</string>
506 </property>
507 </widget>
508 </item>
509 <item>
510 <widget class="QToolButton" name="twitter_button">
511 <property name="cursor">
512 <cursorShape>PointingHandCursor</cursorShape>
513 </property>
514 <property name="styleSheet">
515 <string notr="true">border: 0;</string>
516 </property>
517 <property name="text">
518 <string/>
519 </property>
520 <property name="icon">
521 <iconset resource="images.qrc">
522 <normaloff>:/twitter.png</normaloff>:/twitter.png</iconset>
523 </property>
524 <property name="iconSize">
525 <size>
526 <width>22</width>
527 <height>22</height>
528 </size>
529 </property>
530 </widget>
531 </item>
532 <item>
533 <widget class="QToolButton" name="facebook_button">
534 <property name="cursor">
535 <cursorShape>PointingHandCursor</cursorShape>
536 </property>
537 <property name="styleSheet">
538 <string notr="true">border: 0;</string>
539 </property>
540 <property name="text">
541 <string/>
542 </property>
543 <property name="icon">
544 <iconset resource="images.qrc">
545 <normaloff>:/facebook.png</normaloff>:/facebook.png</iconset>
546 </property>
547 <property name="iconSize">
548 <size>
549 <width>22</width>
550 <height>22</height>
551 </size>
552 </property>
553 </widget>
554 </item>
555 </layout>
556 </item>
557 </layout>
558 </widget>
205 </item>559 </item>
206 </layout>560 </layout>
207 </widget>561 </widget>
@@ -236,19 +590,12 @@
236 <header>ubuntuone.controlpanel.gui.qt.profile</header>590 <header>ubuntuone.controlpanel.gui.qt.profile</header>
237 <container>1</container>591 <container>1</container>
238 </customwidget>592 </customwidget>
239 <customwidget>
240 <class>FileSyncStatus</class>
241 <extends>QWidget</extends>
242 <header>ubuntuone.controlpanel.gui.qt.filesyncstatus</header>
243 <container>1</container>
244 </customwidget>
245 </customwidgets>593 </customwidgets>
246 <tabstops>594 <tabstops>
247 <tabstop>tab_widget</tabstop>595 <tabstop>tab_widget</tabstop>
248 <tabstop>help_button</tabstop>596 <tabstop>help_button</tabstop>
249 <tabstop>twitter_button</tabstop>597 <tabstop>twitter_button</tabstop>
250 <tabstop>facebook_button</tabstop>598 <tabstop>facebook_button</tabstop>
251 <tabstop>get_more_space_button</tabstop>
252 </tabstops>599 </tabstops>
253 <resources>600 <resources>
254 <include location="images.qrc"/>601 <include location="images.qrc"/>
255602
=== modified file 'data/qt/images.qrc'
--- data/qt/images.qrc 2011-06-02 19:55:45 +0000
+++ data/qt/images.qrc 2011-07-05 10:27:59 +0000
@@ -1,8 +1,14 @@
1<RCC>1<RCC>
2 <qresource prefix="/">2 <qresource prefix="/">
3 <file>../u1icon.png</file>
4 <file>../external_icon_orange.png</file>
5 <file>../sync_status_disconnected.png</file>
6 <file>../sync_status_sync_done.png</file>
7 <file>../sync_status_syncing.png</file>
3 <file>../computer.png</file>8 <file>../computer.png</file>
4 <file>../phone.png</file>9 <file>../phone.png</file>
5 <file>../twitter.png</file>10 <file>../twitter.png</file>
6 <file>../facebook.png</file>11 <file>../facebook.png</file>
12 <file>../external_icon_white.png</file>
7 </qresource>13 </qresource>
8</RCC>14</RCC>
915
=== modified file 'data/qt/mainwindow.ui'
--- data/qt/mainwindow.ui 2011-05-26 22:18:04 +0000
+++ data/qt/mainwindow.ui 2011-07-05 10:27:59 +0000
@@ -25,6 +25,10 @@
25 <property name="windowTitle">25 <property name="windowTitle">
26 <string>Ubuntu One Control Panel</string>26 <string>Ubuntu One Control Panel</string>
27 </property>27 </property>
28 <property name="windowIcon">
29 <iconset resource="images.qrc">
30 <normaloff>:/u1icon.png</normaloff>:/u1icon.png</iconset>
31 </property>
28 <widget class="QWidget" name="centralwidget">32 <widget class="QWidget" name="centralwidget">
29 <property name="sizePolicy">33 <property name="sizePolicy">
30 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">34 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
@@ -33,6 +37,12 @@
33 </sizepolicy>37 </sizepolicy>
34 </property>38 </property>
35 <layout class="QVBoxLayout" name="verticalLayout">39 <layout class="QVBoxLayout" name="verticalLayout">
40 <property name="spacing">
41 <number>0</number>
42 </property>
43 <property name="margin">
44 <number>3</number>
45 </property>
36 <item>46 <item>
37 <widget class="ControlPanel" name="control_panel" native="true"/>47 <widget class="ControlPanel" name="control_panel" native="true"/>
38 </item>48 </item>
@@ -47,6 +57,8 @@
47 <container>1</container>57 <container>1</container>
48 </customwidget>58 </customwidget>
49 </customwidgets>59 </customwidgets>
50 <resources/>60 <resources>
61 <include location="images.qrc"/>
62 </resources>
51 <connections/>63 <connections/>
52</ui>64</ui>
5365
=== modified file 'data/qt/preferences.ui'
--- data/qt/preferences.ui 2011-06-20 23:23:45 +0000
+++ data/qt/preferences.ui 2011-07-05 10:27:59 +0000
@@ -13,13 +13,22 @@
13 <property name="windowTitle">13 <property name="windowTitle">
14 <string notr="true">Form</string>14 <string notr="true">Form</string>
15 </property>15 </property>
16 <property name="styleSheet">
17 <string notr="true"/>
18 </property>
16 <layout class="QVBoxLayout" name="verticalLayout">19 <layout class="QVBoxLayout" name="verticalLayout">
20 <property name="margin">
21 <number>0</number>
22 </property>
17 <item>23 <item>
18 <widget class="QGroupBox" name="verticalGroupBox">24 <widget class="QGroupBox" name="verticalGroupBox">
19 <property name="title">25 <property name="title">
20 <string>Bandwidth settings</string>26 <string>Bandwidth settings</string>
21 </property>27 </property>
22 <layout class="QGridLayout" name="gridLayout">28 <layout class="QGridLayout" name="gridLayout">
29 <property name="verticalSpacing">
30 <number>10</number>
31 </property>
23 <item row="0" column="0">32 <item row="0" column="0">
24 <widget class="QCheckBox" name="limit_uploads_checkbox">33 <widget class="QCheckBox" name="limit_uploads_checkbox">
25 <property name="text">34 <property name="text">
@@ -81,7 +90,7 @@
81 </property>90 </property>
82 </spacer>91 </spacer>
83 </item>92 </item>
84 <item row="3" column="0" colspan="3">93 <item row="4" column="0" colspan="3">
85 <widget class="QLabel" name="label_2">94 <widget class="QLabel" name="label_2">
86 <property name="text">95 <property name="text">
87 <string>Please note that your files will not sync if you set bandwidth to 0</string>96 <string>Please note that your files will not sync if you set bandwidth to 0</string>
@@ -94,6 +103,19 @@
94 </property>103 </property>
95 </widget>104 </widget>
96 </item>105 </item>
106 <item row="3" column="0">
107 <spacer name="verticalSpacer_2">
108 <property name="orientation">
109 <enum>Qt::Vertical</enum>
110 </property>
111 <property name="sizeHint" stdset="0">
112 <size>
113 <width>40</width>
114 <height>20</height>
115 </size>
116 </property>
117 </spacer>
118 </item>
97 </layout>119 </layout>
98 </widget>120 </widget>
99 </item>121 </item>
@@ -103,6 +125,9 @@
103 <string>File Sync Settings</string>125 <string>File Sync Settings</string>
104 </property>126 </property>
105 <layout class="QVBoxLayout" name="verticalLayout_1">127 <layout class="QVBoxLayout" name="verticalLayout_1">
128 <property name="spacing">
129 <number>10</number>
130 </property>
106 <item>131 <item>
107 <widget class="QCheckBox" name="autoconnect_checkbox">132 <widget class="QCheckBox" name="autoconnect_checkbox">
108 <property name="text">133 <property name="text">
@@ -137,13 +162,6 @@
137 <item>162 <item>
138 <layout class="QHBoxLayout" name="horizontalLayout">163 <layout class="QHBoxLayout" name="horizontalLayout">
139 <item>164 <item>
140 <widget class="QPushButton" name="restore_defaults_button">
141 <property name="text">
142 <string>Restore default configuration</string>
143 </property>
144 </widget>
145 </item>
146 <item>
147 <spacer name="horizontalSpacer">165 <spacer name="horizontalSpacer">
148 <property name="orientation">166 <property name="orientation">
149 <enum>Qt::Horizontal</enum>167 <enum>Qt::Horizontal</enum>
@@ -159,7 +177,14 @@
159 <item>177 <item>
160 <widget class="QPushButton" name="apply_changes_button">178 <widget class="QPushButton" name="apply_changes_button">
161 <property name="text">179 <property name="text">
162 <string>Apply changes</string>180 <string>Apply these settings</string>
181 </property>
182 </widget>
183 </item>
184 <item>
185 <widget class="QPushButton" name="restore_defaults_button">
186 <property name="text">
187 <string>Default settings</string>
163 </property>188 </property>
164 </widget>189 </widget>
165 </item>190 </item>
166191
=== added file 'data/sync_status_disconnected.png'
167Binary files data/sync_status_disconnected.png 1970-01-01 00:00:00 +0000 and data/sync_status_disconnected.png 2011-07-05 10:27:59 +0000 differ192Binary files data/sync_status_disconnected.png 1970-01-01 00:00:00 +0000 and data/sync_status_disconnected.png 2011-07-05 10:27:59 +0000 differ
=== added file 'data/sync_status_sync_done.png'
168Binary files data/sync_status_sync_done.png 1970-01-01 00:00:00 +0000 and data/sync_status_sync_done.png 2011-07-05 10:27:59 +0000 differ193Binary files data/sync_status_sync_done.png 1970-01-01 00:00:00 +0000 and data/sync_status_sync_done.png 2011-07-05 10:27:59 +0000 differ
=== added file 'data/sync_status_syncing.png'
169Binary files data/sync_status_syncing.png 1970-01-01 00:00:00 +0000 and data/sync_status_syncing.png 2011-07-05 10:27:59 +0000 differ194Binary files data/sync_status_syncing.png 1970-01-01 00:00:00 +0000 and data/sync_status_syncing.png 2011-07-05 10:27:59 +0000 differ
=== added file 'data/u1icon.png'
170Binary files data/u1icon.png 1970-01-01 00:00:00 +0000 and data/u1icon.png 2011-07-05 10:27:59 +0000 differ195Binary files data/u1icon.png 1970-01-01 00:00:00 +0000 and data/u1icon.png 2011-07-05 10:27:59 +0000 differ
=== modified file 'ubuntuone/controlpanel/gui/__init__.py'
--- ubuntuone/controlpanel/gui/__init__.py 2011-07-04 10:57:17 +0000
+++ ubuntuone/controlpanel/gui/__init__.py 2011-07-05 10:27:59 +0000
@@ -126,7 +126,7 @@
126FILE_SYNC_STOPPED = _('File Sync is stopped.')126FILE_SYNC_STOPPED = _('File Sync is stopped.')
127FILE_SYNC_SYNCING = _('File Sync in progress...')127FILE_SYNC_SYNCING = _('File Sync in progress...')
128FREE_SPACE_TEXT = _('%(free_space)s available storage')128FREE_SPACE_TEXT = _('%(free_space)s available storage')
129GREETING = _('Hello %(user_display_name)s!')129GREETING = _('%(user_display_name)s!')
130INSTALL_PACKAGE = _('You need to install the package <i>%(package_name)s'130INSTALL_PACKAGE = _('You need to install the package <i>%(package_name)s'
131 '</i> in order to enable more sync services.')131 '</i> in order to enable more sync services.')
132INSTALL_PLUGIN = _('Install the %(plugin_name)s for the sync service: '132INSTALL_PLUGIN = _('Install the %(plugin_name)s for the sync service: '
@@ -143,7 +143,9 @@
143NO_DEVICES = _('No devices to show.')143NO_DEVICES = _('No devices to show.')
144NO_FOLDERS = _('No folders to show.')144NO_FOLDERS = _('No folders to show.')
145NO_PAIRING_RECORD = _('There is no Ubuntu One pairing record.')145NO_PAIRING_RECORD = _('There is no Ubuntu One pairing record.')
146QUOTA_LABEL = _('Using %(used)s of %(total)s (%(percentage).0f%%)')146PERCENTAGE_LABEL = _('<p><span style=" font-size:16pt;">(%(percentage).0f%%)' \
147 '</span> used</p>')
148QUOTA_LABEL = _('%(used)s of %(total)s')
147SERVICES_BUTTON_TOOLTIP = _('Manage the sync services')149SERVICES_BUTTON_TOOLTIP = _('Manage the sync services')
148SERVICES_TITLE = _('Enable the sync services for this computer.')150SERVICES_TITLE = _('Enable the sync services for this computer.')
149SETTINGS_CHANGE_ERROR = _('The settings could not be changed,\n'151SETTINGS_CHANGE_ERROR = _('The settings could not be changed,\n'
150152
=== added file 'ubuntuone/controlpanel/gui/qt/connectingwidget.py'
--- ubuntuone/controlpanel/gui/qt/connectingwidget.py 1970-01-01 00:00:00 +0000
+++ ubuntuone/controlpanel/gui/qt/connectingwidget.py 2011-07-05 10:27:59 +0000
@@ -0,0 +1,74 @@
1# -*- coding: utf-8 -*-
2
3# Authors: Diego Sarmentero <diego.sarmentero@gmail.com>
4#
5# Copyright 2011 Canonical Ltd.
6#
7# This program is free software: you can redistribute it and/or modify it
8# under the terms of the GNU General Public License version 3, as published
9# by the Free Software Foundation.
10#
11# This program is distributed in the hope that it will be useful, but
12# WITHOUT ANY WARRANTY; without even the implied warranties of
13# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
14# PURPOSE. See the GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License along
17# with this program. If not, see <http://www.gnu.org/licenses/>.
18
19"""Loading animation over a widget"""
20
21from PyQt4 import QtGui
22from PyQt4 import QtCore
23
24from ubuntuone.controlpanel.gui.qt.ui import connectingwidget_ui
25
26
27class ConnectingWidget(QtGui.QFrame):
28
29 def __init__(self, parent=None):
30 QtGui.QFrame.__init__(self, parent)
31 self.ui = connectingwidget_ui.Ui_Frame()
32 self.ui.setupUi(self)
33 self.ui.frmBox.installEventFilter(self)
34 palette = QtGui.QPalette(self.palette())
35 palette.setColor(palette.Background, QtCore.Qt.transparent)
36 self.setPalette(palette)
37
38 def paintEvent(self, event):
39 painter = QtGui.QPainter()
40 painter.begin(self)
41 painter.setRenderHint(QtGui.QPainter.Antialiasing)
42 painter.fillRect(event.rect(), QtGui.QBrush(
43 QtGui.QColor(255, 255, 255, 127)))
44 painter.setPen(QtGui.QPen(QtCore.Qt.NoPen))
45 painter.end()
46
47 def eventFilter(self, obj, event):
48 if obj == self.ui.frmBox and event.type() == QtCore.QEvent.Paint:
49 painter = QtGui.QPainter()
50 painter.begin(obj)
51 pos_x = self.ui.frmBox.width() / 3
52 x_padding = pos_x / 5
53 for i in xrange(5):
54 if (self.counter / 5) % 5 == i:
55 painter.setBrush(QtGui.QBrush(
56 QtGui.QColor(221, 72, 20, 50 + i * 50)))
57 else:
58 painter.setBrush(QtGui.QBrush(
59 QtGui.QColor(221, 72, 20, 255)))
60 painter.drawEllipse(
61 pos_x + (x_padding * i),
62 self.ui.frmBox.height() / 2 + 10,
63 15, 15)
64
65 painter.end()
66 return False
67
68 def showEvent(self, event):
69 self.timer = self.startTimer(50)
70 self.counter = 0
71
72 def timerEvent(self, event):
73 self.counter += 1
74 self.update()
075
=== modified file 'ubuntuone/controlpanel/gui/qt/controlpanel.py'
--- ubuntuone/controlpanel/gui/qt/controlpanel.py 2011-06-22 23:53:46 +0000
+++ ubuntuone/controlpanel/gui/qt/controlpanel.py 2011-07-05 10:27:59 +0000
@@ -30,6 +30,7 @@
30 humanize,30 humanize,
31 EDIT_ACCOUNT_LINK,31 EDIT_ACCOUNT_LINK,
32 GREETING,32 GREETING,
33 PERCENTAGE_LABEL,
33 QUOTA_LABEL,34 QUOTA_LABEL,
34)35)
35from ubuntuone.controlpanel.gui.qt import uri_hook36from ubuntuone.controlpanel.gui.qt import uri_hook
@@ -73,8 +74,9 @@
7374
74 used = int(info['quota_used'])75 used = int(info['quota_used'])
75 total = int(info['quota_total'])76 total = int(info['quota_total'])
76 data = {'used': humanize(used), 'total': humanize(total),77 percentage = {'percentage': (used / total) * 100}
77 'percentage': (used / total) * 100}78 data = {'used': humanize(used), 'total': humanize(total)}
79 self.ui.percentage_usage_label.setText(PERCENTAGE_LABEL % percentage)
78 self.ui.quota_usage_label.setText(QUOTA_LABEL % data)80 self.ui.quota_usage_label.setText(QUOTA_LABEL % data)
7981
80 @QtCore.pyqtSlot()82 @QtCore.pyqtSlot()
8183
=== added file 'ubuntuone/controlpanel/gui/qt/main/ubuntuone.qss'
--- ubuntuone/controlpanel/gui/qt/main/ubuntuone.qss 1970-01-01 00:00:00 +0000
+++ ubuntuone/controlpanel/gui/qt/main/ubuntuone.qss 2011-07-05 10:27:59 +0000
@@ -0,0 +1,145 @@
1QMainWindow {
2 background-color: #dd4814;
3}
4
5QFrame#frmHeader {
6 background: #ffffff;
7 border-radius: 5px;
8 border-style: solid;
9 border-color: #939389;
10 border-width: 1px;
11 color: white;
12 min-height: 100px;
13}
14
15/*Change btnSyncing horizontal policy to Fixed to apply this
16QPushButton#btnSyncing{
17 margin-left: 20px;
18 padding-left: 25px;
19 padding-right: 25px;
20}*/
21
22QPushButton[enabled="true"] {
23 background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
24 stop: 0 #fecfc2,stop: 1.0 #e44e19);
25 border-radius: 5px;
26 border-style: solid;
27 padding: 6px;
28 color: white;
29 border-color: #939389;
30 border-width: 1px;
31 height: 12px;
32}
33
34QPushButton:hover[enabled="true"] {
35 background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
36 stop: 0 #fedad1,stop: 1.0 #e47a55);
37 border-radius: 5px;
38 border-style: solid;
39 padding: 6px;
40 color: white;
41 border-color: #939389;
42 border-width: 1px;
43 height: 12px;
44}
45
46QPushButton[enabled="false"] {
47 background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
48 stop: 0 #eaeaea, stop: 1.0 #cacaca);
49 border-radius: 5px;
50 border-style: solid;
51 padding: 6px;
52 color: #595959;
53 border-color: #939389;
54 border-width: 1px;
55 height: 12px;
56}
57
58QTabBar::tab{
59 height: 15px;
60 color: #333333;
61 background-color: #e4e0dd;
62 border-top-left-radius: 5px;
63 border-top-right-radius: 5px;
64 border-style: solid;
65 padding: 10px;
66 border-top-color: #939389;
67 border-right-color: #939389;
68 border-left-color: white;
69 border-bottom-color: #939389;
70 border-width: 1px;
71}
72
73QTabBar::tab:selected{
74 background-color: white;
75 border-top-left-radius: 5px;
76 border-top-right-radius: 5px;
77 border-style: solid;
78 padding: 10px;
79 border-top-color: #939389;
80 border-right-color: #939389;
81 border-left-color: white;
82 border-bottom-color: white;
83 border-width: 1px;
84}
85
86QTabBar::tab:first:!selected{
87 border-left-color: #939389;
88 border-left-color: #939389;
89}
90
91QTabBar::tab:first:selected{
92 border-left-color: #939389;
93}
94
95QTabBar::tab:middle:!selected{
96 border-left-color: #e4e0dd;
97}
98
99QTabBar::tab:last:!selected{
100 border-left-color: #e4e0dd;
101}
102
103QTabWidget{
104 border-bottom-left-radius: 5px;
105 border-bottom-right-radius: 5px;
106 border-style: solid;
107 padding: 10px;
108}
109
110QTabWidget::pane {
111 border-bottom-left-radius: 5px;
112 border-bottom-right-radius: 5px;
113 border-top-right-radius: 5px;
114 border-style: solid;
115 border-color: #939389;
116 border-width: 1px;
117 background: white;
118 border-top: 2px solid white;
119 }
120
121QTabBar::tab:hover {
122 background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
123 stop: 0 #fafafa, stop: 0.4 #f4f4f4,
124 stop: 0.5 #e7e7e7, stop: 1.0 #fafafa);
125 }
126
127QPushButton#help_button{
128 background: transparent;
129 border: none;
130 color: white;
131 height: 20px;
132 text-decoration: underline;
133 padding: 0px;
134}
135
136QGroupBox {
137 padding-top: 30px;
138 border: 0px solid;
139 margin-top: 1ex;
140 font: bold 15px;
141}
142
143QGroupBox::title {
144 color: #333333;
145}
0146
=== modified file 'ubuntuone/controlpanel/gui/qt/main/windows.py'
--- ubuntuone/controlpanel/gui/qt/main/windows.py 2011-06-30 21:51:20 +0000
+++ ubuntuone/controlpanel/gui/qt/main/windows.py 2011-07-05 10:27:59 +0000
@@ -18,8 +18,11 @@
18"""Reactor installation for windows."""18"""Reactor installation for windows."""
1919
20import sys20import sys
21import os
2122
22from PyQt4 import Qt23from PyQt4 import Qt
24from PyQt4.QtCore import QFile
25from PyQt4.QtCore import QString
2326
2427
25def main(switch_to='', alert=False):28def main(switch_to='', alert=False):
@@ -34,6 +37,13 @@
34 # The main loop MUST be initialized before importing the reactor37 # The main loop MUST be initialized before importing the reactor
35 # pylint: disable=W061238 # pylint: disable=W0612
36 app = Qt.QApplication(sys.argv)39 app = Qt.QApplication(sys.argv)
40 #Apply Style Sheet
41 filePath = os.path.join(os.path.abspath(os.path.dirname(__file__)),
42 'ubuntuone.qss')
43 qss = open(filePath, 'r')
44 stylesheet = ''.join(qss.readlines())
45 qss.close()
46 app.setStyleSheet(stylesheet)
3747
38 # pylint: disable=W0404, F040148 # pylint: disable=W0404, F0401
39 from twisted.internet import reactor49 from twisted.internet import reactor

Subscribers

People subscribed via source and target branches