Add ability to specify colours and pixmaps by name in skin templates

Issue #279 open
prl created an issue

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)

  1. IanSav

    Does the pixmap implementation include the ability to use skin relative paths? E.g can you use a path like "~/icons/testicon.png"?

  2. IanSav
    • removed issue_status

    The issue was updated with the following change(s):

    • The status has been updated, from New to Confirmed.
  3. prl 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.

  4. Log in to comment