Merge lp:~tpeeters/ubuntu-ui-toolkit/90-IconButton into lp:ubuntu-ui-toolkit/staging
| Status: | Merged |
|---|---|
| Approved by: | Christian Dywan on 2015-05-26 |
| Approved revision: | 1522 |
| Merged at revision: | 1519 |
| Proposed branch: | lp:~tpeeters/ubuntu-ui-toolkit/90-IconButton |
| Merge into: | lp:ubuntu-ui-toolkit/staging |
| Diff against target: |
164 lines (+96/-6) 5 files modified
modules/Ubuntu/Components/Themes/Ambiance/1.3/ActionBarStyle.qml (+6/-4) modules/Ubuntu/Components/Themes/Ambiance/1.3/IconButtonStyle.qml (+80/-0) modules/Ubuntu/Components/Themes/Ambiance/1.3/PageHeadButton.qml (+1/-0) tests/unit_x11/tst_components/tst_actionbar.qml (+1/-1) tests/unit_x11/tst_components/tst_header_presets.qml (+8/-1) |
| To merge this branch: | bzr merge lp:~tpeeters/ubuntu-ui-toolkit/90-IconButton |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| PS Jenkins bot | continuous-integration | Approve on 2015-05-26 | |
| Christian Dywan | 2015-05-22 | Approve on 2015-05-26 | |
|
Review via email:
|
|||
Commit Message
Introduce IconButtonStyle.
Description of the Change
Introduce IconButtonStyle.
This is an intermediate MR. In a following MR the PageHeadStyle will use the ActionBar (and to be added SectionsBar) component, and the (internal) PageHeadButton will be removed from the Ambience Theme.
ActionBar will have a delegate property which by default will be an AbstractButton using IconButtonStyle.
See also the API discussion for Button on https:/
- 1519. By Tim Peeters on 2015-05-22
-
new default icon size in IconButtonStyle
- 1520. By Tim Peeters on 2015-05-22
-
clean
- 1521. By Tim Peeters on 2015-05-22
-
clean
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1521
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Christian Dywan (kalikiana) wrote : | # |
89 + // prevent trying to render the icon with an invalid source
90 + // when the button is invisible by setting width and height to 0
91 + width: visible ? iconButtonStyle
92 + height: visible ? iconButtonStyle
93 + source: styledItem.
Of these two instances in the code none of them is without an icon. Where will this be used? Why can't this be solved in the Icon component? Or am I just confused over what this is supposed to be doing?
- 1522. By Tim Peeters on 2015-05-26
-
no need to check visibility in Icon
| Tim Peeters (tpeeters) wrote : | # |
Right. There was a similar workaround in PageHeadButton; that's where I got this from. But after some investigation I think that workaround may be there for an issue with the header popping a page from the stack where the Image already gets destroyed before the Icon that shows it. Not an issue here.

FAILED: Continuous integration, rev:1518 jenkins. qa.ubuntu. com/job/ ubuntu- sdk-team- ubuntu- ui-toolkit- staging- ci/1786/ jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- vivid-touch/ 2924 jenkins. qa.ubuntu. com/job/ ubuntu- sdk-team- ubuntu- ui-toolkit- staging- vivid-amd64- ci/514 jenkins. qa.ubuntu. com/job/ ubuntu- sdk-team- ubuntu- ui-toolkit- staging- vivid-armhf- ci/516 jenkins. qa.ubuntu. com/job/ ubuntu- sdk-team- ubuntu- ui-toolkit- staging- vivid-armhf- ci/516/ artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ ubuntu- sdk-team- ubuntu- ui-toolkit- staging- vivid-i386- ci/513 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- runner- vivid-mako/ 2505 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 2922 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 2922/artifact/ work/output/ *zip*/output. zip s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 20710
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/ubuntu- sdk-team- ubuntu- ui-toolkit- staging- ci/1786/ rebuild
http://