ElkArte Community

Elk Development => Feature Discussion => Topic started by: Spuds on September 18, 2016, 04:38:49 pm

Title: 1.1 Icon conversion
Post by: Spuds on September 18, 2016, 04:38:49 pm
As described with 1.1 B1 , the core themes began to convert over to using SVG images to replace the various icons around the interface.  You all should remember the drama, it was Festivus with a full airing of the grievances :P

In 1.0 we have a mixed bag, some icons are from Font Awesome, others are .png files from the images directory.

So 1.1 we are moving as many of them to SVG images, currently using Font Awesome but as SVG images and not as an icon font as in 1.0.  The SVG's are defined/held in the CSS, while the sources simply call out the class name for the icon.  You can change the icon to another of your choice by editing the CSS.   They are done as pseduo ::before elements so you can change the content to most anything you want, including urls content: url(image.png) so don't freak out, you can easily update the css and have png images for your themes.

There are several advantages to SVG usage vs icon fonts.  SVG renders icons as images (since it is an image) instead of text, looking nicely at any various resolutions.  As posted previously this is a good read https://github.com/blog/2112-delivering-octicons-with-svg on some of the whys.

OK you all knew that, so why this post? Well I was looking at changing over a few more of the icons to SVG, I'm having a weak moment and needed to be punished  :D  While looking at things, I'm not really keen on some of Font Awesome icons, some, to me, are to rounded, soft, pillowy ...

So looking around for other SVG icon collections I can across IcoMoon (https://github.com/Keyamoon/IcoMoon-Free) which has a good set of icons for our needs.  I started to convert over to them and wanted to get feedback on how it looks compared to what we have now.  It has new a home, upshrink, chevron, board, etc etc icons.

I know this has the potential to become a free for all of "what about this font" set lol
Title: Re: 1.1 Icon conversion
Post by: Spuds on September 18, 2016, 04:41:33 pm
Humm ... the expand to full size tis broken, Pftttt

And it works fine on my local, double Pftttt
Title: Re: 1.1 Icon conversion
Post by: emanuele on September 18, 2016, 05:43:12 pm
Guess what? I was trying some stuff with the expand. O:-)

Now I restored the original.
Title: Re: 1.1 Icon conversion
Post by: live627 on September 18, 2016, 06:54:19 pm
dooo eeeet :D
Title: Re: 1.1 Icon conversion
Post by: scripple on September 18, 2016, 08:18:47 pm
I prefer these over the flat font awesome blandness. 
Title: Re: 1.1 Icon conversion
Post by: kucing on September 18, 2016, 09:37:13 pm
it looks great! :)
Title: Re: 1.1 Icon conversion
Post by: Jorin on September 19, 2016, 01:04:27 am
The green is terrible. Will lead to Augenkrebs as we call it.  :o  ;)

If a icon is different in detail is totally wurschtegal, as we call it. Use IcoMoon if you need to, or stay with FontAwesome. I don't think most of the admins using ElkArte will see any difference.
Title: Re: 1.1 Icon conversion
Post by: meetdilip on September 19, 2016, 01:17:13 am
If you want to make things beautiful, change the default theme please. Nothing works when it is around.
Title: Re: 1.1 Icon conversion
Post by: emanuele on September 19, 2016, 04:22:42 am
Quote from: meetdilip – If you want to make things beautiful, change the default theme please. Nothing works when it is around.
FWIW, here everything I use works as expected, if you are experiencing problems there is a board dedicated to that, no need to hijack topics opened for other things.
Title: Re: 1.1 Icon conversion
Post by: Spuds on September 20, 2016, 03:42:19 pm
PR sent in with the updates .... There should be something in this for everyone to grumble about ... Unfortunately the "airing of the grievances" for this years Festivus is over, we are now onto the "feats of strength"  

Latest light screen shot (Link-4165) , (Link-4167) board icons now have a color gradient as in 1.0 and de-greened some of the icons.
Title: Re: 1.1 Icon conversion
Post by: scripple on September 20, 2016, 04:32:23 pm
If you want it I did post an SVG version of the current board icons complete with gradients.  It's around here somewhere.
Title: Re: 1.1 Icon conversion
Post by: Spuds on September 20, 2016, 06:03:38 pm
Thanks, found it and will attempt to CSS content it for inclusion