There are 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-6958178a-77e8-4a60-b11b-2b168ed11cea XWIKI-10758 Open

Bind icons of the wiki syntax to the icon theme

 
View issue   ยท   Add comment
 

2 comments

 
cid:jira-generated-image-avatar-81f43cb1-a4df-4860-b228-929dcc2427a9 Charpentier Lucas on 07/Mar/25 12:09
 

First solution envisaged:

  • Add a transformation to switch Images with the icon type into whatever the iconProvider component returns (which could very well be an image with reftype icon). This is not a good solution because its behaviour would be very inconsistent for every place where transformations or fonts are not available. E.g. exports and the WYSIWYG editors.

Second solution envisaged:

  • Use SVG URIs for every icon theme. This is not possible with FontAwesome 4, there's no SVG sprites provided for this version. We'd need to migrate to a more recent version of FA in XS before considering this change.
 
cid:jira-generated-image-avatar-81f43cb1-a4df-4860-b228-929dcc2427a9 Charpentier Lucas on 07/Mar/25 12:11
 
First solution envisaged:
* Add a transformation to switch Images with the icon type into whatever the iconProvider component returns (which could very well be an image with reftype icon). This is not a good solution because its behaviour would be very inconsistent for every place where transformations or fonts are not available. E.g. exports and the WYSIWYG editors.

Gist with an implementation of this transformation: https://gist.github.com/Sereza7/b4a4da7c12259530ec6d5e47de91e2a5

Second solution envisaged:
* Use SVG URIs for every icon theme. This is not possible with FontAwesome 4,  there's no SVG sprites provided for this version. We'd need to migrate to a more recent version of FA in XS before considering this change.