Lack of interest Support SimpleSVG

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

Dadparvar

Well-known member
A good thing about XF2 is that FontAwesome in included in core.

But it would be cool if you add SimpleSVG to the core instead of FA.

SimpleSVG is a service provided by @Arty and simply with 1 line of code, it adds support for thousands of cool icons, including FA.

A full list of icons: https://simplesvg.com/icon-sets/

It's an awesome service, and in addition to thousands of icons, it has other features and optimized enough to be included in the core.

(having this included in core, add-on developers and style designers will start using it in their products and we will have pretty nice results)
 
Upvote 3
This suggestion has been closed. Votes are no longer accepted.
Unfortunately that would require almost complete rewrite of XF2 default style.

XF2 relies on pseudo elements to add icons, which is done via stylesheet. Those pseudo elements are specifically designed to be used with font, so they inherit font color and size from parent element.

SimpleSVG is most efficient when used as placeholder in HTML code, like <span class="simple-svg" data-icon="fa-home" />. It has functionality to generate SVG images that can be used as background in stylesheet, so in theory it can be done, however this method should be avoided for 2 reasons:
1. Each image is loaded separately, so that might generate lots of HTTP requests
2. SVG cannot use currentColor when used as remote image, so it cannot inherit font color, which is something XF2 pseudo elements rely on.

As must as I'd love it, its simply not possible without rewriting lots of stuff.
 
Back
Top Bottom