Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is a pretty minor thing, but with the open sourcing of WinUI, I wonder if there's enough open-sourced that people could try and figure out how to support Dark Mode themes in non-UWP applications?


You mean something like this: https://sciter.com/sciter-4-2-support-of-acrylic-theming/ ? (Note, that is not a UWP application)

As of automatic detection check my question on SO: https://stackoverflow.com/questions/51334674/how-to-detect-w...


The developers of EarTrumpet figured it out, see 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: