问题
I have downloaded the windows 10 update that includes the dark theme.
File explorer et al are in dark theme, but when I create my own c# form application, the title bar is bright white.
How can I make my own desktop apps follow the dark theme that i have set in windows?
回答1:
There is a DarkUI library available in GitHub, it is described here:
How to use a DarkUI dark user interface in WinForms C#
It provides "dark versions" of the common controls too.
For the title bar, try this: Change the color of the title bar
Maybe it is also a sufficient solution to let the user set up high contrast settings in Windows Personalization (right click the desktop to get there).
来源:https://stackoverflow.com/questions/56312190/how-do-i-make-my-form-title-bar-follow-the-windows-dark-theme