Can't use uris for Icon source
Bug #1284233 reported by
Michał Sawicz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Fix Released
|
Undecided
|
Michał Sawicz | ||
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Vivid |
New
|
Undecided
|
Unassigned |
Bug Description
The Icon component doesn't have a "source" property, it only supports a "name", which means that there's no way to pass a image://theme/ uri (which backends send instead of plain names to uniquely identify the source of the icon).
Related branches
lp://staging/~saviq/ubuntu-ui-toolkit/add-icon-source-property
- PS Jenkins bot: Approve (continuous-integration)
- Tim Peeters: Approve
- Zsombor Egri: Needs Fixing
-
Diff: 426 lines (+122/-116)6 files modifiedcomponents.api (+3/-0)
modules/Ubuntu/Components/Icon.qdoc (+87/-0)
modules/Ubuntu/Components/Icon10.qml (+8/-53)
modules/Ubuntu/Components/Icon11.qml (+21/-0)
modules/Ubuntu/Components/qmldir (+3/-2)
tests/unit_x11/tst_components/tst_icon.qml (+0/-61)
Changed in ubuntu-ui-toolkit: | |
status: | Incomplete → In Progress |
assignee: | nobody → Michał Sawicz (saviq) |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | New → Fix Released |
To post a comment you must log in.
The name property seems to do what you want, it converts "name" into an image://theme/name to take the image from the theme. If you want to set the source, you can use Image directly.
Also, most components have both an iconSource and iconName property, so you can choose which one you need