Want to have custom but not colorful icons
danielsatanik opened this issue · 1 comments
danielsatanik commented
Hi,
I managed to change all the icons in the sidebar to the old black-white icons in the CoreTypes folder.
But unfortunately the icons in the Go menu are still colorful and I don't know the values for some of the icons in the sidebar like the harddrive.
e.g. The miMacBook… is still a colorful icon and the icons inside the go menu are all colorful as well even though I changed the icons inside the icon and icon10 files.
w0lfschild commented
Here's the code for the menubar coloring, hopefully that's helpful.
if ([[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.finder"]) {
NSMenu *go = [[[NSApp mainMenu] itemAtIndex:4] submenu];
for (NSMenuItem *i in [go itemArray]) {
NSImage *image = nil;
NSString *action = NSStringFromSelector([i action]);
if ([action isEqualToString:@"cmdGoToAllMyFiles:"]) image = [[NSImage alloc] initWithContentsOfFile:@"/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AllMyFiles.icns"];
if ([action isEqualToString:@"cmdGoToDocuments:"]) image = [[NSImage alloc] initWithContentsOfFile:@"/Applications/iBooks.app/Contents/Resources/iBooksAppIcon.icns"];
if ([action isEqualToString:@"cmdGoToDesktop:"]) image = [[NSImage alloc] initWithContentsOfFile:@"/System/Library/PreferencePanes/Displays.prefPane/Contents/Resources/Displays.icns"];
if ([action isEqualToString:@"cmdGoToDownloads:"]) image = [[NSImage alloc] initWithContentsOfFile:@"/System/Library/CoreServices/Installer.app/Contents/Resources/Installer.icns"];
if ([action isEqualToString:@"cmdGoHome:"]) image = [[NSImage alloc] initWithContentsOfFile:@"/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/HomeFolderIcon.icns"];
if ([action isEqualToString:@"cmdGoToUserLibrary:"]) image = [[NSImage alloc] initWithContentsOfFile:@"/System/Library/CoreServices/Siri.app/Contents/Resources/AppIcon.icns"];
if ([action isEqualToString:@"cmdGoToComputer:"]) image = [[NSImage alloc] initWithContentsOfFile:@"/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/com.apple.macpro.icns"];
if ([action isEqualToString:@"cmdGoToMeetingRoom:"]) image = [[NSImage alloc] initWithContentsOfFile:@"/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AirDrop.icns"];
if ([action isEqualToString:@"cmdGoToNetwork:"]) image = [[NSImage alloc] initWithContentsOfFile:@"/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericNetworkIcon.icns"];
if ([action isEqualToString:@"cmdGoToICloud:"]) image = [[NSImage alloc] initWithContentsOfFile:@"/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/iDiskGenericIcon.icns"];
if ([action isEqualToString:@"cmdGoToApplications:"]) image = [[NSImage alloc] initWithContentsOfFile:@"/Applications/App Store.app/Contents/Resources/AppIcon.icns"];
if ([action isEqualToString:@"cmdGoToUtilities:"]) image = [[NSImage alloc] initWithContentsOfFile:@"/Applications/Utilities/ColorSync Utility.app/Contents/Resources/ColorSyncUtility.icns"];
if (image) {
[image setSize:NSMakeSize(16, 16)];
[i setImage:image];
}
}
}