Skip to content

Instantly share code, notes, and snippets.

@seancoyne
Created October 21, 2014 15:50
Show Gist options
  • Save seancoyne/672e40ec4228a4d54738 to your computer and use it in GitHub Desktop.
Save seancoyne/672e40ec4228a4d54738 to your computer and use it in GitHub Desktop.
Fix OneDrive Yosemite Dark Mode Menu Bar Icons
#!/usr/bin/env bash
# change to proper directory
cd /Applications/OneDrive.app/Contents/Resources/
# back up the files
sudo mkdir icon-backups
sudo cp StatusIcon_*.tiff icon-backups/
# replace all versions with the "selected" icon
# alert
for idx in {1,2,3,4,5,6,7,8,9,10,11,12,13}
do
sudo cp "StatusIcon_selected.tiff" "StatusIcon_alert_anim$idx.tiff"
done
sudo cp "StatusIcon_selected.tiff" "StatusIcon_alert_signedin.tiff"
# anim
for idx in {1,2,3,4,5,6,7,8,9,10,11,12,13}
do
sudo cp "StatusIcon_selected.tiff" "StatusIcon_anim$idx.tiff"
done
# signed in
sudo cp "StatusIcon_selected.tiff" "StatusIcon_signedin.tiff"
# signed out
sudo cp "StatusIcon_alert_signedin.tiff" "StatusIcon_signedout.tiff"
@pmaddaloni
Copy link

Thanks!

@spg63
Copy link

spg63 commented Nov 20, 2014

Thanks a lot, works great.

@ByteBandit-sr
Copy link

Thanks a lot, it works fine ;-)

@ky0on
Copy link

ky0on commented Mar 12, 2015

This script disables icon animations. I fixed this problem.
https://gist.github.com/ky0on/349f0d969f8a63c47324

If you have already run seancoyne's script, you have to run the following command first:
cd /Applications/OneDrive.app/Contents/Resources && sudo mv -f icon-backups/* . && sudo rm -r icon-backups

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