Icon Picker

LiveCode Builder is a language for extending LiveCode's capabilities, creating new object types as Widgets, and libraries that access lower-level APIs in OSes, applications, and DLLs.

Moderators: LCMark, LCfraser

Post Reply
pink
Posts: 272
Joined: Wed Mar 12, 2014 6:18 pm

Icon Picker

Post by pink » Wed Apr 24, 2019 3:51 pm

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?
Greg (pink) Miller

MadPink, LLC
I'm Mad, Pink and Dangerous to Know

bwmilby
Posts: 439
Joined: Wed Jun 07, 2017 5:37 am
Location: Henrico, VA
Contact:

Re: Icon Picker

Post by bwmilby » Thu Apr 25, 2019 12:38 am

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)
Brian Milby

Script Tracker https://github.com/bwmilby/scriptTracker

pink
Posts: 272
Joined: Wed Mar 12, 2014 6:18 pm

Re: Icon Picker

Post by pink » Thu Apr 25, 2019 4:44 pm

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/
Greg (pink) Miller

MadPink, LLC
I'm Mad, Pink and Dangerous to Know

bwmilby
Posts: 439
Joined: Wed Jun 07, 2017 5:37 am
Location: Henrico, VA
Contact:

Re: Icon Picker

Post by bwmilby » Thu Apr 25, 2019 4:55 pm

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).
Brian Milby

Script Tracker https://github.com/bwmilby/scriptTracker

Post Reply

Return to “LiveCode Builder”