Navigation Bar Widget mod
Navigation Bar Widget mod
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
-
- VIP Livecode Opensource Backer
- Posts: 4027
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: Navigation Bar Widget mod
Hello Newpie,
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 .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
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.where (file location) I could upload my own svg icons to the transparent pop up selections that the widget gives inherently
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 .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
Thank you bn. Hopefully it is in the plans to add personal icons for making a custom nav bar for the non-hacking folks.
-
- Livecode Staff Member
- Posts: 192
- Joined: Thu Apr 18, 2013 2:48 pm
Re: Navigation Bar Widget mod
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.
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
Thanks Ali and Happy Holidays.
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: Navigation Bar Widget mod
Is there a way to access the navbar icons for say a button icon?
-
- VIP Livecode Opensource Backer
- Posts: 858
- Joined: Wed Jun 24, 2009 1:17 pm
- Location: Plymouth, UK
- Contact:
Re: Navigation Bar Widget mod
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..."
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: Navigation Bar Widget mod
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?
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
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.
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: Navigation Bar Widget mod
Fantastic. I was reading too fast previously and confused Font Awesome with FORT Awesome.
Thanks
Thanks
-
- VIP Livecode Opensource Backer
- Posts: 858
- Joined: Wed Jun 24, 2009 1:17 pm
- Location: Plymouth, UK
- Contact:
Re: Navigation Bar Widget mod
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..."