createPresetBrowserIcons Help
-
Help me to createPresetBrowserIcons via LAF
-
@DabDab More detail needed
-
ocalLaf.registerFunction("createPresetBrowserIcons", function(g, obj) { if(id=="favorite_on") { g.fillAll(Colours.red); } } );
Not wrking
I have tried 3 arguments (id,g,obj) not working
-
@DabDab All you can do with that function is set the svg icon. You can't color it or style it in any way. I'll post an example when I'm at my computer.
-
@DabDab There is a documentation for this: https://docs.hise.audio/glossary/custom_lookandfeel.html
You can only use this like that:
laf.registerFunction("createPresetBrowserIcons", function(id) { if (id == "favorite_on") return myFavoriteOnPath; if (id == "favorite_off") return myFavoriteOffPath; if (id == "searchIcon") return mySearchIconPath; });
For the color customization, change the itemColour of the Floating Tile
-
@orange OK.. Superb got it. :) Thank you so much.
-
@d-healey Thank you . :)