Skip to content

Instantly share code, notes, and snippets.

@breiter
Created March 19, 2015 19:45
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 breiter/93e30447f55ca87a9f51 to your computer and use it in GitHub Desktop.
Save breiter/93e30447f55ca87a9f51 to your computer and use it in GitHub Desktop.
Reverse Google Drive app menu bar icons for OS X Yosemite Dark Mode
#!/bin/sh
if [ "$(id -u)" -ne 0 ]; then
SELF=`echo $0 | sed -ne 's|^.*/||p'`
echo "$SELF must be run as root." 1>&2
echo "try: sudo $SELF" 1>&2
exit 1
fi
# change to app resource directory
cd /Applications/Google\ Drive.app/Contents/Resources/
# back up the files
mkdir icon-backups
cp mac-animate*.png icon-backups/
cp mac-error*.png icon-backups/
cp mac-inactive*.png icon-backups/
cp mac-normal*.png icon-backups/
cp mac-paused*.png icon-backups/
# replace "regular" versions with "inverse"
# animate
for idx in {1,2,3,4,5,6,7,8}
do
cp "mac-animate$idx-inverse.png" "mac-animate$idx.png" && cp "mac-animate$idx-inverse@2x.png" "mac-animate$idx@2x.png"
done
# error
cp "mac-error-inverse.png" "mac-error.png" && cp "mac-error-inverse@2x.png" "mac-error@2x.png"
# inactive
cp "mac-inactive-inverse.png" "mac-inactive.png" && cp "mac-inactive-inverse@2x.png" "mac-inactive@2x.png"
# normal
cp "mac-normal-inverse.png" "mac-normal.png" && cp "mac-normal-inverse@2x.png" "mac-normal@2x.png"
# paused
cp "mac-paused-inverse.png" "mac-paused.png" && 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