The MS App Assure team reported to me an issue where my app's notification area/system tray icon is nearly invisible on white high contrast themes (or near-white like Windows 11's "Desert" theme).
I already have a dark icon I use when the (normal, non high-contrast) Windows light theme is on so I would like to use it in these scenarios as well.
The only issue is, while I can detect if high contrast mode is on with SystemParametersInfo
, I haven't found anything to detect if it's a white or a black high contrast theme. How would I proceed to detect that?
I know MSIX packages support having different icons for white and black high contrast themes, so how do they detect it?