title: Create monochromatic tray icon for OS X using QSystemTrayIcon
body: <p><a href="https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/OSXHIGuidelines/ToolbarIcons.html#//apple_ref/doc/uid/20000957-CH89-SW3" rel="noreferrer">OS X asks apps</a> to use a 19x19px monochomatic PDF as a tray icon in order to adapt a system default color based on the user's theme.</p>
  
  <blockquote>
    <p>Use a template image to represent a menu bar extra. In General system preferences, users can change the menu bar (and Dock) to a dark appearance. [...]</p>
  </blockquote>
  
  <p>Can that be done using <a href="http://doc.qt.io/qt-5/qsystemtrayicon.html" rel="noreferrer">QSystemTrayIcon</a>?</p>
  
  <p>As far as I can see the underlying QIcon class does not support PDF.</p>
  
  <hr>
  
  <p>At the moment I am using a black SVG, which is displayed in pure black, causing a very unnatural appearance.</p>
  
  <p>Default theme:</p>
  
  <p><a href="https://i.stack.imgur.com/qJRfM.png" rel="noreferrer"><img src="https://i.stack.imgur.com/qJRfM.png" alt="SVG on default theme"></a></p>
  
  <p>Dark theme:</p>
  
  <p><a href="https://i.stack.imgur.com/ooCrK.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ooCrK.png" alt="SVG on dark theme"></a></p>