YosemiteアイコンをMavericksのアイコンで置き換える方法は?


14

Yosemiteにアップグレードする前に、Mavericksからアプリのアイコンをバックアップしたいと思います。新しいアイコンはとてもいためです。

Mavericksの古いシステムアイコンの完全なコピーを保持する最良の方法は何ですか?

更新:

ここに画像の説明を入力してください

最後に、山科友紀の手法を使用して1つずつ実行します。


Finderアイコンは災害です。残りは大丈夫です。

回答:


9

@ohhoの答えに続いて、各アイコンの色を調整する手間を省く簡単なスクリプトを作成しました。このスクリプトは、Dropboxフォルダーアイコンも処理します。imagemagickおよびxcodeコマンドラインユーティリティをインストールする必要があります。両方を取得する最良の方法は、homebrewをインストールしてから実行することです

brew install imagemagick

スクリプトは次のとおりです。彩度を-20%減らし、色相を調整して色を緑が少なく、青を強くすることを選択しました。

#!/bin/bash

# List of system icons which need to be changed
sys_icons="ApplicationsFolderIcon.icns BurnableFolderIcon.icns \
DesktopFolderIcon.icns DeveloperFolderIcon.icns DocumentsFolderIcon.icns \
DownloadsFolder.icns GenericFolderIcon.icns GenericSharepoint.icns \
GroupFolder.icns LibraryFolderIcon.icns MovieFolderIcon.icns \
MusicFolderIcon.icns OpenFolderIcon.icns PicturesFolderIcon.icns \
PublicFolderIcon.icns ServerApplicationsFolderIcon.icns \
SitesFolderIcon.icns SystemFolderIcon.icns UsersFolderIcon.icns \
UtilitiesFolder.icns"

# Back up CoreTypes.bundle just in case and copy the icons to ~/folder_icons
cp -r /System/Library/CoreServices/CoreTypes.bundle ~/CoreTypes_BACKUP.bundle
mkdir ~/folder_icons
cd /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources
cp $sys_icons ~/folder_icons

# List of dropbox icons which need to be changed
dropbox_icons="DropboxFolderIconYosemite.icns DropboxAppFolderIconYosemite.icns \
DropboxPublicFolderIconYosemite.icns DropboxReadOnlySharedFolderIconYosemite.icns"

# Check if yosemite-ready dropbox is installed and copy the dropbox icons to ~/folder_icons
if [ -f "/Applications/Dropbox.app/Contents/Resources/DropboxFolderIconYosemite.icns" ]; then
    cd /Applications/Dropbox.app/Contents/Resources
    cp $dropbox_icons ~/folder_icons
fi

cd ~/folder_icons

# Change ownership of icns files to user
sudo chown `whoami` $sys_icons $dropbox_icons &> /dev/null

# Convert icns files to "iconset" folders containing png files
for icon in *.icns; do iconutil -c iconset "$icon"; done

# Use imagemagick to adjust saturation (-20%) and hue (+2%)
for icon in ./**/*.png; do mogrify -modulate 100,80,102 "$icon"; done

# Convert "iconset" folders back to icns files
for icon in *.iconset; do iconutil -c icns "$icon"; done

# Copy the modified system and dropbox icons back to their original bundles
sudo cp $sys_icons /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources
if [ -f "DropboxFolderIconYosemite.icns" ]; then
    cp $dropbox_icons /Applications/Dropbox.app/Contents/Resources
fi

# Set owner/group to root/wheel and delete extended attributes
cd /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources
sudo chown root $sys_icons
sudo chgrp wheel $sys_icons
sudo xattr -d com.apple.quarantine $sys_icons &> /dev/null

# Delete icon cache (restart necessary)
sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm {} \; &> /dev/null
sudo find /private/var/folders/ -name com.apple.iconservices -exec rm -rf {} \; &> /dev/null

# Remove working directory
rm -rf ~/folder_icons

これを「〜/ folder_colour_adjuster.sh」という名前で保存してから実行します

sudo sh ~/folder_colour_adjuster.sh

Macを再起動してお楽しみください:

最終結果


3
私は複数回アップ投票できればいいのに
;

6

Yosemiteシステムアイコンの色を変更する方法

// 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 {} \;

// Restart Mac.

アイコンを変更するための素敵な無料アプリLiteIconがあります。

ここに画像の説明を入力してください


5

言うことができます、これは自分で行うのはかなり難しいです。

フォルダーなどのシステムアイコンを置き換える場合は、次の場所にあります。

/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/

/ Applicationsの下のアプリのアイコンを置き換える場合は、個別に行う必要があります。通常:

/Applications/AppName.app/Contents/Resources/AppName.icns

交換後、アイコンキャッシュがリセットされるまで新しいアイコンは表示されません。Mavericksでは、LaunchServicesをリセットするとアイコンが更新されますが、Yosemiteでは、使用していた時間から「iconcache」を削除する必要があります。

https://gist.github.com/fabiofl/5873100

全体として、忍耐が必要です。

弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.