Merge lp:~sylvain-pineau/checkbox/1030857 into lp:checkbox

Proposed by Sylvain Pineau
Status: Merged
Merged at revision: 1541
Proposed branch: lp:~sylvain-pineau/checkbox/1030857
Merge into: lp:checkbox
Diff against target: 117 lines (+38/-7)
2 files modified
debian/changelog (+3/-0)
qt/frontend/qtfront.ui (+35/-7)
To merge this branch: bzr merge lp:~sylvain-pineau/checkbox/1030857
Reviewer Review Type Date Requested Status
Brendan Donegan (community) Approve
Review via email: mp+117480@code.launchpad.net

Description of the change

This MR first proposes a fix to bug 1030857 where light themes don't really like the dark banner of checkbox.
Basically every elements involved in drawing the area now have a transparent background, including the png file.

In order to restore what we could call a separator behind the 3 navigation buttons i've added 2 horizontal lines to the selection test tab and the Result tab (the run test tab already has a line around the widget)

Finally, while I was tweaking the .ui frontend file, I've fixed the following ui bugs:

- Remove the font color style of the "Please enter the e-mail address" msg (was hardcoded black, no theming respect)
- Remove the indentation of "Choose tests to run on your system"
- Set the min-height of QTabBar::tab to zero to avoid to see 3px of the top tabbar (yes, you can check, we really see the beginning of the selected bar !)

To post a comment you must log in.
Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

Myself and Daniel both had a look and we think it looks good. Approved and merged!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2012-07-31 15:25:22 +0000
3+++ debian/changelog 2012-07-31 16:20:28 +0000
4@@ -30,6 +30,9 @@
5 performance test.
6 scripts/block_device_resource: Add the maximum usb specification supported
7 by both a block device and the corresponding root hub port.
8+ * qt/frontend/qtfront.ui, qt/frontend/images/checkbox-qt-head.png:
9+ Add transparency properties to the main window header to keep the main theme
10+ colors in the widget background (LP: #1030857)
11
12 [Jeff Marcom]
13 * Added timeout to job call for disk smart test.
14
15=== modified file 'qt/frontend/images/checkbox-qt-head.png'
16Binary files qt/frontend/images/checkbox-qt-head.png 2012-02-15 19:52:52 +0000 and qt/frontend/images/checkbox-qt-head.png 2012-07-31 16:20:28 +0000 differ
17=== modified file 'qt/frontend/qtfront.ui'
18--- qt/frontend/qtfront.ui 2012-07-27 10:44:14 +0000
19+++ qt/frontend/qtfront.ui 2012-07-31 16:20:28 +0000
20@@ -46,6 +46,9 @@
21 <property name="tabShape">
22 <enum>QTabWidget::Rounded</enum>
23 </property>
24+ <property name="styleSheet">
25+ <string notr="true">QTabBar::tab {min-height: 0ex;}</string>
26+ </property>
27 <property name="currentIndex">
28 <number>1</number>
29 </property>
30@@ -113,7 +116,7 @@
31 <item>
32 <widget class="QWidget" name="welcomeTopText" native="true">
33 <property name="styleSheet">
34- <string notr="true">background-color: #f0ebe2</string>
35+ <string notr="true">background: transparent;</string>
36 </property>
37 <widget class="QLabel" name="welcomeLabel">
38 <property name="geometry">
39@@ -338,7 +341,7 @@
40 </palette>
41 </property>
42 <property name="styleSheet">
43- <string notr="true">background: #494950;</string>
44+ <string notr="true">background: transparent;</string>
45 </property>
46 <widget class="QLabel" name="progressLabel">
47 <property name="geometry">
48@@ -365,8 +368,7 @@
49 <bool>false</bool>
50 </property>
51 <property name="styleSheet">
52- <string notr="true">color: &quot;white&quot;;
53-background: transparent;</string>
54+ <string notr="true">background: transparent;</string>
55 </property>
56 <property name="text">
57 <string>10 tests completed out of 30 (30%)</string>
58@@ -430,7 +432,7 @@
59 </property>
60 <property name="styleSheet">
61 <string notr="true"> QTabWidget::pane#testsTab { /* The tab widget frame */
62- border-top: 15 solid #494950;
63+ border-top: 15 solid transparent;
64 position: absolute;
65 top: -1.7em;
66 }
67@@ -677,6 +679,19 @@
68 <string>Start testing</string>
69 </property>
70 </widget>
71+ <widget class="Line" name="selectionSeparator">
72+ <property name="geometry">
73+ <rect>
74+ <x>0</x>
75+ <y>0</y>
76+ <width>640</width>
77+ <height>3</height>
78+ </rect>
79+ </property>
80+ <property name="orientation">
81+ <enum>Qt::Horizontal</enum>
82+ </property>
83+ </widget>
84 </widget>
85 <widget class="QWidget" name="testing">
86 <property name="enabled">
87@@ -1070,8 +1085,8 @@
88 &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;
89 p, li { white-space: pre-wrap; }
90 &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Ubuntu'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt;
91-&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; color:#000000;&quot;&gt;Please enter the e-mail address associated with your Launchpad account (if applicable)&lt;/span&gt;&lt;/p&gt;
92-&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; color:#000000;&quot;&gt;and click the Submit Results button to submit these test results to Ubuntu Friendly.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
93+&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;&gt;Please enter the e-mail address associated with your Launchpad account (if applicable)&lt;/span&gt;&lt;/p&gt;
94+&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;&gt;and click the Submit Results button to submit these test results to Ubuntu Friendly.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
95 </property>
96 <property name="scaledContents">
97 <bool>false</bool>
98@@ -1167,6 +1182,19 @@
99 <string>View results</string>
100 </property>
101 </widget>
102+ <widget class="Line" name="submissionSeparator">
103+ <property name="geometry">
104+ <rect>
105+ <x>0</x>
106+ <y>0</y>
107+ <width>640</width>
108+ <height>3</height>
109+ </rect>
110+ </property>
111+ <property name="orientation">
112+ <enum>Qt::Horizontal</enum>
113+ </property>
114+ </widget>
115 </widget>
116 </widget>
117 </item>

Subscribers

People subscribed via source and target branches