Skip to content

Instantly share code, notes, and snippets.

@seancoyne
Created October 21, 2014 15:34
Show Gist options
  • Select an option

  • Save seancoyne/07ceb4395d867409fc22 to your computer and use it in GitHub Desktop.

Select an option

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

nz4ypt commented Jan 7, 2015

Copy link
Copy Markdown

thanks!

@jb510

jb510 commented Jan 15, 2015

Copy link
Copy Markdown

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

mattyb commented Jan 27, 2015

Copy link
Copy Markdown

👍

@chadleong

Copy link
Copy Markdown

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

@seancoyne

Copy link
Copy Markdown
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

statico commented Mar 18, 2015

Copy link
Copy Markdown

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

@pedritomelenas

Copy link
Copy Markdown

Worked for me. Thanks!

@tonyawad88

Copy link
Copy Markdown

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

@seancoyne

Copy link
Copy Markdown
Author

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

@eestein

eestein commented Apr 19, 2015

Copy link
Copy Markdown

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
Copy Markdown

Works great, thanks! v1.20

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