The new Dark Mode in OS X Yosemite causes problems for menu bar icons added by SystemTray.add(). My application's icon is black on a transparent background, which doesn't work well with Dark Mode.
I found this thread: http://stackoverflow.com/questions/24623559/nsstatusitem-change-image-for-dark-tint which recommends using a template image on NSStatusItem or NSStatusBarButton or adding a "Template" suffix to the image file name. Is this possible from a Java application? Alternatively, is it possible for a Java application to discover that Dark Mode is enabled so that it can substitute a different icon? Any suggestions for a solution would be much appreciated. Simon