How do I make my Form title bar follow the windows dark theme?

泪湿孤枕 提交于 2021-01-21 09:47:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!