2 ms·
The developers of EarTrumpet figured it out, see https://github.com/File-New-Project/EarTrumpet https://github.com/File-New-Project/EarTrumpet . Their solution
by captainmuon 8y ago
The developers of EarTrumpet figured it out, see https://github.com/File-New-Project/EarTrumpet https://github.com/File-New-Project/EarTrumpet . Their solution is based on WPF and quite complex, however there are APIs to get the current mode, and all the modern UI colors.
I myself implemented the modern black menu style for a tray icon, so that the menu looks like the native tray icons. It's "just" a matter of owner drawing everything. Unfortunately, there is no secret "make my app dark" api in WinForms / WPF.