Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
macOS dark mode/retina support #378
Some white-label customers have chosen to use a black icon for the system tray but this causes visibility problems on Mojave (10.14) and greater when dark mode is enabled.
This patch attempts will detect a pure black icon and change it to a pure white icon to workaround this problem when "Dark" is returned from the following command:
defaults read -g AppleInterfaceStyle | grep "Dark"
In addition, it uses a screen scale factor