Merge lp:~ralsina/ubuntuone-control-panel/tweaks into lp:ubuntuone-control-panel
| Status: | Merged |
|---|---|
| Approved by: | Natalia Bidart on 2012-03-20 |
| Approved revision: | 296 |
| Merged at revision: | 291 |
| Proposed branch: | lp:~ralsina/ubuntuone-control-panel/tweaks |
| Merge into: | lp:ubuntuone-control-panel |
| Diff against target: |
250 lines (+89/-24) 6 files modified
data/qt/controlpanel.ui (+9/-0) data/qt/folders.ui (+4/-1) data/qt/ubuntuone.qss (+75/-15) ubuntuone/controlpanel/gui/qt/folders.py (+1/-2) ubuntuone/controlpanel/gui/qt/gotoweb.py (+0/-2) ubuntuone/controlpanel/gui/qt/tests/test_gotoweb.py (+0/-4) |
| To merge this branch: | bzr merge lp:~ralsina/ubuntuone-control-panel/tweaks |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Natalia Bidart | 2012-03-13 | Approve on 2012-03-20 | |
| dobey (community) | Approve on 2012-03-15 | ||
| Eric Casteleijn (community) | Approve on 2012-03-15 | ||
|
Review via email:
|
|||
Commit Message
- Added several tweaks to the UI stylesheet to avoid 'movements' when focusing a button, and to remove the ugly border from the twitter and facebook buttons.
Description of the Change
Here are the changes with before/after images
* Remove borders from non-focused twitter/facebook buttons
Before: http://
After: http://
* Change in the no-orange-overlay hack from 20px to 100%
No visible change except on rare occasions where 20px made pieces of text hide
* Do the GotoWebButtons arrows using qss and not setIcon
* Make the GotoWebButtons not shift when focused
Before, the text and icon shifted when you focused the button.
Now, they don't. The padding is different, and is not consistent
between buttons so it needs tweaking, if we go this way.
Before/after: http://
* Changed background color on folder list activated item
Before, you could not see focus halos on buttons and checkboxes because of color clash:
http://
After:
http://
* Focus halo on QCheckboxes
Before: the checkbox contents shifted when focused
http://
Now: no shifting
http://
* Style fix for focused Checkbox in folder list
Before:
http://
After: Not terribly happy about it, really.
http://
* Focus halo on QSpinBox
Before: http://
After: http://
- 292. By Roberto Alsina on 2012-03-15
-
useless change
- 293. By Roberto Alsina on 2012-03-15
-
test is no longer appropiate
| Roberto Alsina (ralsina) wrote : | # |
oops, forgot to remove that test. Fixed now.
| Natalia Bidart (nataliabidart) wrote : | # |
Question:
(09:39:18 AM) nessita: ralsina: having this:
(09:39:18 AM) nessita: /* Compensate for border so text doesn't move */
(09:39:18 AM) nessita: padding-left: 8px;
(09:39:18 AM) nessita: padding-right: 23px;
(09:39:18 AM) nessita: isn't that absolutely dependent of the font size? (ie how many pixels are needed so text do not move)
Need fixing:
* This is a screenshot of trunk, for the devices tab, when tabbing into the devices list you can tell which device is focused: http://
* This is the same screenshot from this branch, and I can not tell which device is focused: http://
- 294. By Roberto Alsina on 2012-03-16
-
merged trunk
| Roberto Alsina (ralsina) wrote : | # |
restored the dotted highlight on the focused device list.
- 295. By Roberto Alsina on 2012-03-16
-
restore dotted box around devices
| Roberto Alsina (ralsina) wrote : | # |
> Question:
>
> (09:39:18 AM) nessita: ralsina: having this:
> (09:39:18 AM) nessita: /* Compensate for border so text doesn't move */
> (09:39:18 AM) nessita: padding-left: 8px;
> (09:39:18 AM) nessita: padding-right: 23px;
> (09:39:18 AM) nessita: isn't that absolutely dependent of the font size? (ie
> how many pixels are needed so text do not move)
No, it's dependent on border size, it only has to be 2px smaller on each direction than the unfocused state.
| Natalia Bidart (nataliabidart) wrote : | # |
Could you please fix:
Text conflict in ubuntuone/
1 conflicts encountered.
- 296. By Roberto Alsina on 2012-03-20
-
merged trunk, resolved conflict


======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= == nessita/ canonical/ controlpanel/ review_ tweaks/ ubuntuone/ controlpanel/ gui/qt/ tests/test_ gotoweb. py", line 47, in test_layout_ direction assertEqual( self.ui. layoutDirection (), gui.QtCore. Qt.RightToLeft) python2. 7/dist- packages/ twisted/ trial/unittest. py", line 270, in assertEqual trial.unittest. FailTest: not equal:
[FAIL]
Traceback (most recent call last):
File "/home/
self.
File "/usr/lib/
% (msg, pformat(first), pformat(second)))
twisted.
a = 0
b = 1
ubuntuone. controlpanel. gui.qt. tests.test_ gotoweb. GoToWebButtonTe stCase. test_layout_ direction ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- --
-------
Ran 861 tests in 7.354s
FAILED (skips=2, failures=1, successes=858)