Add ability to specify colours and pixmaps by name in skin templates
Currently there's no way to put skinnable colours or static pixmaps into <convert type="TemplatedMultiContent"> items in skins.
Static colours can only be specified as Python integers (e.g. color = 0x00999999). It would be useful to be able to specify colours as color = "grey", and static pixmaps by skinnable locations, like png = "buttons/button_green.png".
I have an implementation of this ready for submission to the repository.
Comments (3)
-
-
- removed issue_status
The issue was updated with the following change(s):
- The status has been updated, from New to Confirmed.
-
reporter IanSav wrote:
Does the pixmap implementation include the ability to use skin relative paths? E.g can you use a path like "~/icons/testicon.png"?
It has the ability to use skin-relative paths. The path in the example above is skin-relative, and works in my implementation.
The data needed to resolve '~' is not available at the point where the template is eval()ed.
- Log in to comment
Does the pixmap implementation include the ability to use skin relative paths? E.g can you use a path like "~/icons/testicon.png"?