Tray icon does not adapt to Windows 11 taskbar color scheme

Description

On Windows 11, Mailspring’s tray icon does not adapt to the system taskbar color scheme. When using a dark taskbar (set in system settings) and a light app theme, the Mailspring tray icon remains dark, making it almost invisible against the taskbar.

To Reproduce…

Steps to reproduce the behavior:

  1. In Windows 11, go to Settings > Personalization > Colors
  2. Set “Choose your default Windows mode” to Dark (this affects the taskbar)
  3. Set “Choose your default app mode” to Light
  4. Launch Mailspring using the default (light) theme
  5. Observe the tray icon on the taskbar

Expected Behavior

The tray icon should adapt to the background it’s displayed on. Ideally, Mailspring should provide:

  • A light icon when shown on a dark taskbar
  • A dark icon when shown on a light taskbar
  • Or allow the user to select which icon variant to use manually

Screenshots

obraz

Setup

  • OS: Windows 11 23H2
  • Mailspring version: 1.15.1-cb02bf10

Additional Context

Many modern Windows apps dynamically adjust their tray icons or provide SVGs with light/dark variants. This would improve visibility and accessibility for users with mixed color scheme settings.