title: Electron tray icon change depending on dark theme?
body: <p>I'm using Electron and trying to develop a tray (menubar) application. </p>
  
  <p><a href="https://i.stack.imgur.com/8J62z.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8J62z.png" alt="enter image description here"></a></p>
  
  <p>I know how to set the icon:</p>
  
  <pre><code>const {Tray} = require('electron')
  appIcon = new Tray('/path/to/my/icon')
  </code></pre>
  
  <p>How can I create an icon (or select a different one) that will change color depending on the theme (normal or dark) that the user has selected? </p>
  
  <p>In the above example, I use a dark theme, so I can create a white icon, but what happens when the user has the normal white theme? </p>