Merge lp:~tpeeters/ubuntu-ui-toolkit/icon-disabled into lp:ubuntu-ui-toolkit/staging
| Status: | Rejected |
|---|---|
| Rejected by: | Tim Peeters on 2016-03-23 |
| Proposed branch: | lp:~tpeeters/ubuntu-ui-toolkit/icon-disabled |
| Merge into: | lp:ubuntu-ui-toolkit/staging |
| Prerequisite: | lp:~tpeeters/ubuntu-ui-toolkit/gallery-export-fix |
| Diff against target: |
113 lines (+45/-3) 3 files modified
examples/ubuntu-ui-toolkit-gallery/Icons.qml (+30/-2) src/Ubuntu/Components/1.3/Icon.qml (+1/-0) tests/unit_x11/tst_components/tst_icon13.qml (+14/-1) |
| To merge this branch: | bzr merge lp:~tpeeters/ubuntu-ui-toolkit/icon-disabled |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Tim Peeters | Disapprove on 2016-03-23 | ||
| ubuntu-sdk-build-bot | continuous-integration | Needs Fixing on 2016-03-23 | |
| Christian Dywan | 2016-03-16 | Needs Fixing on 2016-03-16 | |
|
Review via email:
|
|||
Commit Message
Set the opacity of disabled icons to 0.3.
PASSED: Continuous integration, rev:1903
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
PASSED: Continuous integration, rev:1903
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
PASSED: Continuous integration, rev:1903
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
PASSED: Continuous integration, rev:1903
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
SUCCESS: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
Click here to trigger a rebuild:
https:/
| Christian Dywan (kalikiana) wrote : | # |
Please add a unit test. It might be as simple as checking that the opacity is not 1 when enabled is false.
| Tim Peeters (tpeeters) wrote : | # |
We stopped adding 'silly' unit tests that check that components have the exact color that we define in the component or its style because they only cause overhead when changing a color, and don't catch any real bugs. I consider a unit test to check the opacity to be similarly useless.
| Tim Peeters (tpeeters) wrote : | # |
After discussing, we decided that I will add a test to verify that the opacity is reduced for a disabled icon.
- 1904. By Tim Peeters on 2016-03-23
-
sync trunk
- 1905. By Tim Peeters on 2016-03-23
-
add unit test
FAILED: Continuous integration, rev:1905
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
FAILED: Continuous integration, rev:1905
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
FAILED: Continuous integration, rev:1905
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
FAILED: Continuous integration, rev:1905
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
FAILED: Continuous integration, rev:1905
https:/
Executed test runs:
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
Click here to trigger a rebuild:
https:/
| Tim Peeters (tpeeters) wrote : | # |
Fixed with the new palette. See the discussion on https:/
For the header, the palette takes care of it. If other components need to update their opacity, probably they need to use the new palette properly, or set the opacity in the component itself while the Icon keeps its default opacity of 1.
Unmerged revisions
- 1905. By Tim Peeters on 2016-03-23
-
add unit test
- 1904. By Tim Peeters on 2016-03-23
-
sync trunk
- 1903. By Tim Peeters on 2016-03-16
-
set icon opacity to 0.3 when disabled
- 1902. By Tim Peeters on 2016-03-16
-
sync gallery-export-fix

PASSED: Continuous integration, rev:1903 /jenkins. ubuntu. com/ubuntu- sdk/job/ ubuntu- ui-toolkit- ci-amd64- stable/ 520/ /jenkins. ubuntu. com/ubuntu- sdk/job/ generic- update- mp/1882/ console
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild: /jenkins. ubuntu. com/ubuntu- sdk/job/ ubuntu- ui-toolkit- ci-amd64- stable/ 520/rebuild
https:/