Page 1 of 1

Navigation Bar Widget mod

Posted: Sun Nov 15, 2015 8:01 pm
by newpie
Hello, I wanted to see if anyone knew where (file location) I could upload my own svg icons to the transparent pop up selections that the widget gives inherently. Any help would be appreciated. Thanks

Re: Navigation Bar Widget mod

Posted: Mon Nov 16, 2015 7:49 pm
by bn
Hello Newpie,
where (file location) I could upload my own svg icons to the transparent pop up selections that the widget gives inherently
I am afraid you can not easily add your own icons to the popUp of the navbar widget. Currently those icons of the popUp are the icons of font awesome and are hardcoded in "com.livecode.library.iconSVG". You could hack "com.livecode.library.iconSVG" to add your own, but I think it is easier to wait until Livcode has the option to upload svg-icons on the fly.
If you want to try to hack "com.livecode.library.iconSVG" you would have to change the file: /Users/theUser/Applications/LiveCode Community 8.0 (dp 8).app/Contents/Tools/Extensions/com.livecode.extensions.livecode.iconsvg/iconsvg.lcb
You can edit that file using Atom (on any platform) or TextWrangler/BBEdit on a Mac.

Kind regards
Bernd

Re: Navigation Bar Widget mod

Posted: Mon Nov 16, 2015 11:54 pm
by newpie
Thank you bn. Hopefully it is in the plans to add personal icons for making a custom nav bar for the non-hacking folks. :)

Re: Navigation Bar Widget mod

Posted: Tue Nov 17, 2015 12:06 pm
by livecodeali
Hi newpie,

That is indeed the plan - the idea will be that you can add whole fonts to the icon picker via their svg specifications. Unfortunately we haven't had too much time to focus on it, and so it's likely to be an 8.1 feature.

Re: Navigation Bar Widget mod

Posted: Sat Nov 28, 2015 5:52 pm
by newpie
Thanks Ali and Happy Holidays.

Re: Navigation Bar Widget mod

Posted: Sat Dec 03, 2016 12:38 pm
by teacherguy
Is there a way to access the navbar icons for say a button icon?

Re: Navigation Bar Widget mod

Posted: Sun Dec 04, 2016 1:07 pm
by dave.kilroy
Hi @teacherguy - what I do (for both header and navigation bars) is to make a group and populate it with svg widget icons to my own liking, and then code in the functionality I need

Re: Navigation Bar Widget mod

Posted: Sun Dec 04, 2016 3:09 pm
by teacherguy
Thanks I was recently trying that. I read some other posts and realized that the widgets are using FontAwesome to generate the icons (at least that's what it seems like).

Are we able to use/access FontAwesome throughout our iOS apps? I guess I am asking both in terms of functionality and licensing.

Anyone?

Re: Navigation Bar Widget mod

Posted: Sun Dec 04, 2016 4:09 pm
by shaosean
http://fontawesome.io/license/
Font Awesome is fully open source and is GPL friendly. You can use it for commercial projects, open source projects, or really just about whatever you want.

Re: Navigation Bar Widget mod

Posted: Sun Dec 04, 2016 4:25 pm
by teacherguy
Fantastic. I was reading too fast previously and confused Font Awesome with FORT Awesome.

Thanks

Re: Navigation Bar Widget mod

Posted: Sun Dec 04, 2016 5:20 pm
by dave.kilroy
also - the SVG widget takes any basic mono-colour SVG, you aren't limited to FontAwesome!