Skip to content

Instantly share code, notes, and snippets.

@seancoyne
Created October 21, 2014 15:34
Show Gist options
  • Star 38 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save seancoyne/07ceb4395d867409fc22 to your computer and use it in GitHub Desktop.
Save seancoyne/07ceb4395d867409fc22 to your computer and use it in GitHub Desktop.
Fix Google Drive Yosemite Dark Mode Menu Bar Icons
#!/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"
@nz4ypt
Copy link

nz4ypt commented Jan 7, 2015

thanks!

@jb510
Copy link

jb510 commented Jan 15, 2015

Sad is seems the big 1.19 update still hasn't fixed the lack of dark menu bar support.

This hack still works to correct it though, thanks!

@mattyb
Copy link

mattyb commented Jan 27, 2015

👍

@chadleong
Copy link

not working anymore.. seems like google added hash checking. what an idiot google

@seancoyne
Copy link
Author

@Arbitel I just tried it on the recently updated version (Version 1.20.8672.3137, I noticed my icon was back to black) and it worked perfectly. did you close the Google Drive app first before running the script?

@statico
Copy link

statico commented Mar 18, 2015

Confirmed that this worked on version 1.20.8672.3137 Mac OS 10.10.1. Thanks!

@pedritomelenas
Copy link

Worked for me. Thanks!

@tonyawad88
Copy link

I ran your script but it's still transparent...

@seancoyne
Copy link
Author

@tonyawad88 you have to restart Google Drive for it to pick up the change

@eestein
Copy link

eestein commented Apr 19, 2015

The structure is the same to change the Google Play Music icons?
I have the same problem with that app (why am I not surprised...)

Thanks.

@BrechtDeMan
Copy link

Works great, thanks! v1.20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment