Hi xwikiers! Here a new proposal about Icon Themes, that I would like to
introduce in XWiki 6.2.
Issue:
-------
In Colibri we use the "Silk" icons set. In Flamingo we want to use
monochromatic icons (font-based icon set). But we don't want to break the
retro-compatibility.
This proposal is only about improvements to the XWiki Syntax in order to
insert icons:
eg: image:icon:accept
The proposal is composed of A+B+C:
A - Create an icon set for XWiki
-------
As an API, XWiki proposes a selection of icons that developers can use. We
ensure to not break the retro-compatibility.
Actually, we do not create these icons. We bind them to existing ones (from
silk or whatever).
Example:
- accept
- cancel
- wiki
- user
- pdf
etc...
B - Create an Icon Theme
-------
Like the ColorThemes, we can create IconThemes. Concretly, for every icons
proposed in A), we create a mapping to an icon from Silk, FontAwesome, or
other icon sets.
Theme1:
accept: <img src="$xwiki.getSkinFile('silk/accept.png')"
alt="accept"/>
Theme2:
accept: <i class="fa fa-check"></i>
C - Bind the Wiki Syntax to the current icon theme
-------
When a user writes:
image:icon:accept
it actually executes the mapping contained by the active IconTheme.
Here is my +1.
WDYT?
Thanks,
Guillaume