Override icon sprites in skin

SteveX
SteveX
@ultrajam
11 years ago
2,584 posts
I'd like to use different icons in my skin. Looking at the code the core checks for a mySkin/img/icon_black/ directory, but I can't see any changes to the icons after emptying the icon cache.
// Tell the core the default icon set to use (black or white)
jrCore_register_module_feature('jrCore','icon_color','mySkin','black');

I have a directory of icon pngs at mySkin/img/icon_black/ where all files are named the same as the core.

Is there something else I need to do to use those skin icons, or am I approaching this from the wrong direction (looks like there is another way of adding icon sprites using a single sprite image and css file).

Thanks


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 06/29/14 08:27:09PM
SteveX
SteveX
@ultrajam
11 years ago
2,584 posts
Doh, ignore that - it works perfectly as soon as you reload the page in the browser after visiting the url.

Nice icon system - overriding icons is as easy as it gets!


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
brian
@brian
11 years ago
10,149 posts
Right on - glad to see that is working. Note that the way it is setup is that you can just override the icons you want to change, or even add new ones that will extend what the core has.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
11 years ago
2,584 posts
Awesome icon system!

Thanks :)


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

Tags