jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Topic started by: Miri on 12.10.2016 01:49:54

Title: Menu icons, fontawesome
Post by: Miri on 12.10.2016 01:49:54
Hello
I tried a lot, but I can not find a solution by itself.
How do I replace the default menu icons (of jdwonloads) with icons of fontawesome, using the usual class 'fa fa-icon'

Thank you
Title: Re: Menu icons, fontawesome
Post by: ColinM on 12.10.2016 13:29:56
Hi
This is not an easy change as you have discovered!  Fontawesome has 'text characters' but the icons are 'images'. So they are not the same thing and are referenced in a different way.

It is tempting to say why not put them in the text strings that accompany most icons. A challenge here would the language files, and of course the need to change fonts in 'mid stream' so to speak.

We could not make a wholesale change to use fontawesome as not all users would have it, and many might not like those icons!  So it would have to be a config matter.

In the short to medium term the only practical but rather tiresome way I can think of would be to make images of those icons you want to change from the fontawesome set and then substitute them in the relevant directories.

EDIT: Just thought a bit further.  If you switch to using the CSS based icons for "hot", "new" and so on then I believe it would be possible to modify the relevant css for these to use fontawesome characters.  This css could be put in jdownloads_custom.css
Whilst not a complete solution for the other icons it is a possible starting point.

Colin