What size should an application icon and menu bar icon for OS X be?
I can deal with small resolution displays but what about Retina - does an icon displayed on the menu bar (e.g. 20 x 20 ) will be smaller or blurred on a new MacBook Pro with Retina display? I reckon that the Application icon will be scaled, so if I'll prepare twice larger than regular it should be OK on Retina.
I found an excellent guide for iOS development with sizes specification but I can't find similar size specifications for OS X.
The Apple Icon Image format is an icon format used in Apple Inc.'s macOS. It supports icons of 16 × 16, 32 × 32, 48 × 48, 128 × 128, 256 × 256, 512 × 512 points at 1x and 2x scale, with both 1- and 8-bit alpha channels and multiple image states (example: open and closed folders).
In Finder, select View -> Show View Options (or just press Command-J). The options are slightly different for items on your desktop (left) and folders (right). Use the Small/Large slider to select the size of your icons.
To create the best ICNS with Image2icon we suggest using 1024 pixels wide and high images.
NSStatusBar icons (i.e. Menu bar icons) are different from regular app icons. I have not been able to find an NSStatusBar official icon guideline, but I have to believe that the Toolbar Icon guideline for buttons is pretty close. It suggests:
In testing, I've found:
Code sample:
myStatusItem = [[NSStatusBar systemStatusBar]statusItemWithLength:NSSquareStatusItemLength]; NSImage *statusImage = [NSImage imageNamed:@"Status.png"]; [myStatusItem setImage:statusImage]; NSImage *altStatusImage = [NSImage imageNamed:@"StatusHighlighted"]; [myStatusItem setAlternateImage:altStatusImage]; [myStatusItem setHighlightMode:YES]; [myStatusItem setMenu:self.myStatusMenu];
To make your menu item support Retina displays, Dark Mode and different states (e.g. pressed)
NSImage(named: "Example")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With