Paul, not sure if you care about the icon Material uses but if you
do...

Material currently has a JSON file that maps from RadioFrance's PNG file
to an SVG that ships with Material. As of Material 2.3.0 plugins can
ship with these SVG icons, and Material will use that in prefence to its
own. This allows you to use a better, or different icon. To know if a
plugin's PNG icon has a matching SVG icon, Material looks at the
filename. If this ends in _svg.png then Material expects there to be a
matching .svg file. e.g. if you rename your icon to
-radiofrance_svg.png- and copy
https://raw.githubusercontent.com/CDrummond/lms-material/master/MaterialSkin/HTML/material/html/images/france.svg
to -radiofrance.svg- (place this in the same folder as
-radiofrance_svg.png-) then Material will use this - and I can remove my
mapping. When loading SVG files, Material will replace any "#000" string
with its desired icon colour. Make sense? This also has the advantage
that other control UIs could also use these SVG icons.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.
------------------------------------------------------------------------
cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=106900

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to