Hi Guillaume,

Good start.

I think you also list all the Use Cases that we wish to support to make them 
explicit and to be sure we’re not missing any.

Some comments:

1) I think it’s nice to be able to use different icon set if I want, like:

- image:icon:accept (default xwiki icon set)
- image:icon:silk:accept (silk icon set)
- image:icon:whatever:somename (whatever icon set)

Note that this point 1) is not in opposition to your proposal, it’s orthogonal 
(and it should be put only in XWiki Syntax 2.2).

2) What happens to the current icons from the silk icon set that are not in the 
XWiki Icon Set? 

So if I was using, say, image:icon:film_edit, I guess it’s going to break when 
I upgrade since “film_edit” wouldn’t be part of the XWiki Icon Set.

3) You haven’t specified how we would perform the binding precisely (one 
xproperty per binding might be too much IMO), we might want another more 
compact format (in plain text for example)

4) How do you bind an icon set to a skin? How do you say that Flamingo is going 
to use the “iconset1” icon set by default and Colibri is using “iconset2” by 
default?

5) How do I specify the size of the icon I wish to use when using the wiki 
syntax: For example if I want to use 16px or 32px how do I specify it in 
“image:icon:accept”? For example when writing the Applications Panel, if the 
panel has a “large” width I’m going to use the 16px and if it has “small” width 
I want to use the 32px.

6) Should the user be able to install a new icon set through an extension (ie 
installed through the EM) as a use case? I think so.

7) What happens if there’s no IconTheme xobject in the wiki?

8) Do you propose to let the user choose the IconTheme he wishes to use or 
should an icon theme be forced by the skin?

Thanks
-Vincent

On 16 Jul 2014 at 15:27:24, Guillaume Louis-Marie Delhumeau 
([email protected](mailto:[email protected])) wrote:

> 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:  
>  
> Theme2:
> accept:  
>  
> 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
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to