28.12.2020

How To Change App Icons On Mac Yosemite

  1. Change App Icons Ipod Touch
  2. How To Change App Icons On Mac Yosemite Mojave
  3. How To Change App Icons On Mac Yosemite Safari

It’s not on every Circle and Square icon in Yosemite, but it can be seen on the stroke highlights on the outside of the Circle icon, on the metallic (iPad-like) edge on the square icons (e.g., Terminal, Activity Monitor, System Preferences), on bevels, and on every metal paired with the tilted rectangle (e.g., the pen in TextEdit and the. Click the small icon that you find to the left of the URL in the address bar and drag it to the right side of the dividing line in the Dock. Release the mouse button when the icon is right where you want it. The icons in the Dock slide over and make room for your URL.

Some of you that have seen Apple’s new version of Mac OSX Yosemite have noticed the new icons, one of the many improvements Apple has made in Yosemite. There will be a beta version (you can sign up here) coming out this summer but only 1.000.000 users will be selected to participate and there is a huge chance you might not get in. But what is you want the icon pack now and don’t want to wait? (The following guide can be done on any version of Mac OSX.)

  1. Download the icon pack here (iTunes one can be downloaded from here)
  2. You can change an icon by navigating to the app
  3. Right click and press the “Get Info” button
  4. Select the icon that is located on the top left of the “Get Info window” (marked in red on the image bellow)
  5. Open your new icon from the downloaded folder in Preview and copy it (use the select tool and CMD + C)
  6. Then use CMD + V to past the icon (where in the image above is the Panda)
Yosemite

Common issues: If the new icon doesn’t show, instead shows a PNG file, make sure to follow the steps again. Changes the icons? Make sure to share an image of your desktop in a comment bellow!

Mac applications often add their icons to the notification area on the right side of the menu bar. That way they can show you some status changes by changing the icon image, and they can also save some space in your dock by removing the icon from there while still being easily accessible.

If you’re like me, you probably have quite a lot of those there:

How to change app icons on mac yosemite mac

The menu bar controls usually display their standard (preferably dark) icon on a standard background by default, and an inverted white icon on a blue background when clicked:

Creating the status item

To create such control in your app, you need to create an NSStatusItem object and add it to the NSStatusBar:

Make sure to keep a strong reference to the NSStatusItem – otherwise ARC will clean it up and it will only blink in the menu bar and disappear immediately.

Configuring the images (old way)

You also need to prepare the icon image. In older versions of OSX, the standard approach was to create two separate images, a normal and an inverted one, and assign them to the image and alternateImage properties respectively. This had the advantage that you could make the icons look however you wanted, e.g. the old Dropbox icon (which I really miss) was blue instead of black, which made it much easier to find it in the menu bar.

You also had to remember to set the highlightMode property, which tells OSX to change the background of the control to blue when selected; the default was to not change it, showing a white icon on a light background, which looked pretty bad.

Fixing the icon on Yosemite

However, in OSX Yosemite Apple introduced a “dark mode” where the menu bar has a dark background and the icons are supposed to be light (you can enable it in the first section of the “General” System Preferences panel). If you’re doing it the old way as described above, the menu icon by default will probably be almost invisible. You can see that e.g. in the Google Drive app (at least you could when I was writing this, I’m assuming they’ll fix it sooner or later):

The solution? Let OSX generate the inverted icon automatically. The trick is to use the template property of NSImage – if you set it to true, OSX will only use it to determine the shape of the icon and will fill it with the right color automatically, so it will display correctly in normal and highlighted state and in light and dark mode.

If you don’t need to support any OSX versions older than 10.10, then you don’t need highlightMode, which is marked as deprecated now and doesn’t have any effect – the control is always highlighted. Most of the other methods in NSStatusItem have also been deprecated and were moved to a new button property, so you should access them this way instead:

A properly configured menu bar icon behaves like this on Yosemite:

Note: this only works if you want your icon to be monochrome – dark gray by default and white in dark mode or when highlighted (this is how Apple recommends it should work anyway). If you want the icon to be colorful, like the old Dropbox icon, you’ll need to find a different way to do this (or you might not need to do anything at all – for example the blue graph controls in older iStat Menus display just fine in dark mode).

Adding a menu

A menu icon isn’t very useful if it doesn’t show anything when clicked. Some apps show some fancy popover panels when you click their icon (CloudApp, Dropbox), but the standard approach is to just show a plain old NSMenu with a few items. Twitter app mac os.

Change App Icons Ipod Touch

To assign a menu to the menu bar control, create an NSMenu object with some NSMenuItems and assign it to the status item’s menu property. You can create the menu in a XIB or simply in code:

Removing the dock icon

How To Change App Icons On Mac Yosemite Mojave

Once you have a menu bar icon, it might make sense to remove the icon from the dock. If it’s the kind of app that doesn’t need a dock icon at all (like CloudApp, Dropbox or my Gitifier), then you can configure this in Info.plist – create an LSUIElement property and set it to YES (the “descriptive name” in Xcode is “Application is agent”).

If you want to let the user choose a dock icon or a menu icon in the preferences, like e.g. some instant messaging apps, then obviously you need to do it differently – NSApplication has a setActivationPolicy: method that lets you change the same thing at runtime. The default value NSApplicationActivationPolicyRegular corresponds to LSUIElement set to false (dock icon enabled), and NSApplicationActivationPolicyAccessory is the same as LSUIElement set to true (no dock icon):

How To Change App Icons On Mac Yosemite Safari

You need to call this when a relevant checkbox is clicked in your preferences window, and you also need to store the value in the user defaults and call this at startup, preferably as soon as possible – otherwise if the dock icon is disabled it might still appear for a brief moment. (You might not be able to get rid of this effect completely, since after you start the app it takes a moment before any of your code starts executing at all, so if your app should never have a dock icon, it’s better to use the LSUIElement method instead.)