Icon Specification

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
Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Icon Specification

Post by Mikey » Wed Feb 04, 2015 10:23 pm

I'm messing with building a widget, but I see I have to have an icon for it, and a retina icon. Can we have a spec. on what is required for icons? At least in the A1 documentation, there isn't anything mentioned.

benjibeaumont
Livecode Staff Member
Livecode Staff Member
Posts: 53
Joined: Tue Jun 03, 2008 10:31 am

Re: Icon Specification

Post by benjibeaumont » Thu Feb 05, 2015 3:09 pm

Hi Mike,

Thanks for this. I created a couple of bug reportw here:

http://quality.runrev.com/show_bug.cgi?id=14506
http://quality.runrev.com/show_bug.cgi?id=14507

We'll update the docs in the next release. At the moment the tools palette displays icons at whatever size is provided. The space available is 20px by 10px for non retina and twice that for retina screens. So for now, try and include the following icons:

icon.png - (fit within a bounding box of 20px x 10px)
icon@extra-high.png (fit within a bounding box of 40px x 20px)

In the next build we'll ensure that icons in the tools palette resize if larger ones are provided and also ensure that built packages are checked for icons of the appropriate size.

Warm regards,

Ben
Last edited by benjibeaumont on Thu Feb 05, 2015 3:14 pm, edited 2 times in total.
Ben Beaumont | Runtime Revolution

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: Icon Specification

Post by Mikey » Thu Feb 05, 2015 3:13 pm

Ben, I think you need to fix your "icon@extra-high.png"

benjibeaumont
Livecode Staff Member
Livecode Staff Member
Posts: 53
Joined: Tue Jun 03, 2008 10:31 am

Re: Icon Specification

Post by benjibeaumont » Thu Feb 05, 2015 3:15 pm

Seems to autodetect as an email... not sure why.
Ben Beaumont | Runtime Revolution

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: Icon Specification

Post by mwieder » Wed Oct 07, 2015 7:40 pm

PLEASE change the naming convention.
This is a really stupid name for a file. For a number of reasons.

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: Icon Specification

Post by trevordevore » Wed Oct 07, 2015 7:51 pm

@mwieder - how about some constructive suggestions?
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

scrabbles
Posts: 25
Joined: Sat Dec 20, 2014 4:32 am
Location: Melbourne, Australia

Re: Icon Specification

Post by scrabbles » Wed Oct 07, 2015 8:55 pm

Just my interpretation, but @mwieder might be referring to conventions such as Apple's where it is <ImageName><@scaling>.<ext> eg Icon-60@3x.png

https://developer.apple.com/library/ios ... index.html

Or Microsoft's
<name>.<scale-100>.<ext>
https://msdn.microsoft.com/en-us/librar ... 65325.aspx

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: Icon Specification

Post by mwieder » Thu Oct 08, 2015 2:37 am

Yeah, I was indeed referring to the "icon@extra-high.png" thing. Admittedly I haven't been aware of the iPhone/iPad guidelines thing, but I don't see how that has a bearing on widget icon naming.

LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 1212
Joined: Thu Apr 11, 2013 11:27 am

Re: Icon Specification

Post by LCMark » Thu Oct 08, 2015 7:35 am

@mwieder: The image object uses the @<res> convention to allow you to have multiple resolutions of images (i.e. to be used on standard or retina type displays) - thus the naming extends to icons which the IDE uses.

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: Icon Specification

Post by mwieder » Thu Oct 08, 2015 6:15 pm

Mark- thanks... yeah, I understand the 'why' of it, I just shudder at the naming convention. Punctuation other than underscores in filenames just doesn't seem like a good idea. And 'extra-high' doesn't tell me a thing about the png resolution.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9857
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Icon Specification

Post by FourthWorld » Thu Oct 08, 2015 7:48 pm

mwieder wrote:Mark- thanks... yeah, I understand the 'why' of it, I just shudder at the naming convention. Punctuation other than underscores in filenames just doesn't seem like a good idea. And 'extra-high' doesn't tell me a thing about the png resolution.
It might be helpful if the documentation that describes that naming spec includes links to the relevant iOS and Android dev pages where the details are discussed, so we can know the parameters such images should conform to.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: Icon Specification

Post by mwieder » Thu Oct 08, 2015 8:14 pm

Documentation? Did I miss something?

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9857
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Icon Specification

Post by FourthWorld » Thu Oct 08, 2015 10:11 pm

mwieder wrote:Documentation? Did I miss something?
Maybe I did, as I was assuming this is documented somewhere. Isn't it?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: Icon Specification

Post by mwieder » Thu Oct 08, 2015 10:50 pm

OK... I found that there is a LCB guide available. Not easy to find or use. And can't be searched.
Got there from Dictionary | Guide | Extending LiveCode
There's no real documentation on the icon specs, just a reference to them in 'Package requirements' about a third of the way down the page. Or click on 'Packaging Extensions' under 'Extending LiveCode'.

Post Reply

Return to “LiveCode Builder”