Navigation Bar Widget mod

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
newpie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 155
Joined: Sat Jun 29, 2013 11:24 pm

Navigation Bar Widget mod

Post 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
bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4219
Joined: Sun Jan 07, 2007 9:12 pm

Re: Navigation Bar Widget mod

Post 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
newpie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 155
Joined: Sat Jun 29, 2013 11:24 pm

Re: Navigation Bar Widget mod

Post 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. :)
livecodeali
Livecode Staff Member
Livecode Staff Member
Posts: 194
Joined: Thu Apr 18, 2013 2:48 pm

Re: Navigation Bar Widget mod

Post 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.
newpie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 155
Joined: Sat Jun 29, 2013 11:24 pm

Re: Navigation Bar Widget mod

Post by newpie »

Thanks Ali and Happy Holidays.
teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Navigation Bar Widget mod

Post by teacherguy »

Is there a way to access the navbar icons for say a button icon?
dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: Navigation Bar Widget mod

Post 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
"...this is not the code you are looking for..."
teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Navigation Bar Widget mod

Post 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?
shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: Navigation Bar Widget mod

Post 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.
teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Navigation Bar Widget mod

Post by teacherguy »

Fantastic. I was reading too fast previously and confused Font Awesome with FORT Awesome.

Thanks
dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: Navigation Bar Widget mod

Post by dave.kilroy »

also - the SVG widget takes any basic mono-colour SVG, you aren't limited to FontAwesome!
"...this is not the code you are looking for..."
Post Reply