Page 1 of 1

Icon Picker

Posted: Wed Apr 24, 2019 3:51 pm
by pink
I've playing around inside the code for the Icon Picker... what I am trying to do is use it with my own icon libraries. Before I get in too deep, has anyone tried this, and is there something easy I can do?

Re: Icon Picker

Posted: Thu Apr 25, 2019 12:38 am
by bwmilby
See my SvgIconTool stack:
https://milby.us/lc/SvgIconTool.zip

That version has all of the icons included. The one on LiveCode share is bare.

You can set the current icon family. Once set, whenever you use the icon picker, it will use the current family and display those icons.

Here's a link to the thread where the tool was initially discussed:
viewtopic.php?f=10&t=30411&p=162655&hil ... ol#p162655

(I still need to update the stack so that as a plugin it stores the SVG data in an external file)

Re: Icon Picker

Posted: Thu Apr 25, 2019 4:44 pm
by pink
Note: if used as a plugin, I wouldn't want the icons stored in a seperate file. All my SVGs are contained in an LCB library.

Is there a built in way to page down if there are more icons in the library then are displayed?

I like how the icon Picker scrolls and how it resizes with a few settings. I think being able to use with non-builtin icons would be nice/

Re: Icon Picker

Posted: Thu Apr 25, 2019 4:55 pm
by bwmilby
The plugin is just a tool to manage families. For an app you would export the family as a LSON file and then import the family into the iconsvg library when the app starts.

Left/right arrows move between pages of icons. Up/down moves between families. (If it does not work right away, select browse mode.) This does allow non built in icons to be used with the stock icon picker. Just set the current icon family (the play button on the library tab).