Icon width is inconsistent when height is specified
Bug #1421293 reported by
Albert Astals Cid
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Confirmed
|
Low
|
Zoltan Balogh | ||
ubuntu-ui-toolkit (Ubuntu) |
Confirmed
|
Low
|
Zsombor Egri |
Bug Description
The width of an Icon {} depends if the Icon is an SVG coming from image://theme/ or a JPG.
For the SVG the width grows as the units.gu grow, but for the JPEG it does not and one has to manually add code to maitain the aspect ratio.
See the attached code and files.
Related branches
lp://staging/~ubuntu-sdk-team/ubuntu-ui-toolkit/trunk-fix-icon-svg-image-loading
Rejected
for merging
into
lp://staging/ubuntu-ui-toolkit/staging
- Michał Sawicz: Disapprove
- ubuntu-sdk-build-bot: Approve (continuous-integration)
-
Diff: 280 lines (+77/-66)3 files modifiedsrc/Ubuntu/Components/plugin/unitythemeiconprovider.cpp (+61/-51)
src/Ubuntu/Components/plugin/unitythemeiconprovider.h (+1/-1)
tests/unit_x11/tst_iconprovider/tst_iconprovider.cpp (+15/-14)
- Tim Peeters: Approve
- PS Jenkins bot: Needs Fixing (continuous-integration)
-
Diff: 316 lines (+96/-66)4 files modifiedsrc/Ubuntu/Components/plugin/unitythemeiconprovider.cpp (+61/-51)
src/Ubuntu/Components/plugin/unitythemeiconprovider.h (+1/-1)
tests/unit_x11/tst_components/tst_icon.qml (+19/-0)
tests/unit_x11/tst_iconprovider/tst_iconprovider.cpp (+15/-14)
lp://staging/~lukas-kde/ubuntu-ui-toolkit/staging-fix-icon-svg-image-loading
- ubuntu-sdk-build-bot: Approve (continuous-integration)
- Tim Peeters: Approve
-
Diff: 318 lines (+96/-66)4 files modifiedsrc/Ubuntu/Components/plugin/unitythemeiconprovider.cpp (+61/-51)
src/Ubuntu/Components/plugin/unitythemeiconprovider.h (+1/-1)
tests/unit_x11/tst_components/tst_icon.qml (+19/-0)
tests/unit_x11/tst_iconprovider/tst_iconprovider.cpp (+15/-14)
Changed in ubuntu-ui-toolkit (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Triaged |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | Triaged → Fix Committed |
status: | Fix Committed → Fix Released |
description: | updated |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | Fix Released → Triaged |
Changed in canonical-devices-system-image: | |
status: | New → Fix Committed |
importance: | Undecided → Low |
milestone: | none → 12 |
Changed in canonical-devices-system-image: | |
assignee: | nobody → Zoltan Balogh (bzoltan) |
milestone: | 12 → backlog |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Zsombor Egri (zsombi) |
To post a comment you must log in.
Albert, haven't you provided recently a fix for this?