Skip to content

Instantly share code, notes, and snippets.

@phackwer
Created January 9, 2015 06:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phackwer/d95f46d75d7c6e5657c0 to your computer and use it in GitHub Desktop.
Save phackwer/d95f46d75d7c6e5657c0 to your computer and use it in GitHub Desktop.
Alterando ícones do Mac
Faça download
http://decompositionbeauty.deviantart.com/art/Black-Leopard-Icon-Set-UPDATE-69590061
// Go to /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources folder
// where system icons are located.
$ cd /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/
// Backup the icns file for generic folder icon.
$ sudo cp GenericFolderIcon.icns GenericFolderIcon.org.icns
// Move the icns file to your home folder and go there.
$ sudo mv GenericFolderIcon.icns ~/
$ cd ~/
// Change file owner (from root to user).
$ sudo chown [user name] GenericFolderIcon.icns
// Open GenericFolderIcon.icns in Finder, then Preview is launched.
// Choose "Tools" => "Adjust Colors..." (shift+⌘+C), and adjust image's color as you want.
// In the following image, Saturation is decreased.
// Note that GenericFolderIcon.icns contains 10 images, and you should edit all of them.
// Save the file (⌘+S).
// Locate the icns file to /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources folder.
$ cd /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/
$ sudo mv ~/GenericFolderIcon.icns ./
// Change file owner and group, and remove Extended Attributes.
$ sudo chown root GenericFolderIcon.icns
$ sudo chgrp wheel GenericFolderIcon.icns
$ sudo xattr -d com.apple.quarantine GenericFolderIcon.icns
// Clear the icon cache.
sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm {} \;
sudo find /private/var/folders/ -name com.apple.iconservices -exec rm -rf {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment