Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save thepacketgeek/cc6f8f162c71e3829eaf to your computer and use it in GitHub Desktop.
Save thepacketgeek/cc6f8f162c71e3829eaf to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# change to proper directory
cd /Applications/Google\ Drive.app/Contents/Resources/
# back up the files
sudo mkdir icon-backups
sudo cp mac-animate*.png icon-backups/
sudo cp mac-error*.png icon-backups/
sudo cp mac-inactive*.png icon-backups/
sudo cp mac-normal*.png icon-backups/
sudo cp mac-paused*.png icon-backups/
# replace "regular" versions with "inverse"
# animate
for idx in {1,2,3,4,5,6,7,8}
do
sudo cp "mac-animate$idx-inverse.png" "mac-animate$idx.png" && sudo cp "mac-animate$idx-inverse@2x.png" "mac-animate$idx@2x.png"
done
# error
sudo cp "mac-error-inverse.png" "mac-error.png" && sudo cp "mac-error-inverse@2x.png" "mac-error@2x.png"
# inactive
sudo cp "mac-inactive-inverse.png" "mac-inactive.png" && sudo cp "mac-inactive-inverse@2x.png" "mac-inactive@2x.png"
# normal
sudo cp "mac-normal-inverse.png" "mac-normal.png" && sudo cp "mac-normal-inverse@2x.png" "mac-normal@2x.png"
# paused
sudo cp "mac-paused-inverse.png" "mac-paused.png" && sudo cp "mac-paused-inverse@2x.png" "mac-paused@2x.png"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment