如何使我的窗体标题栏遵循Windows深色主题? [英] How do I make my Form title bar follow the windows dark theme?
问题描述
我已经下载了包含深色主题的Windows 10更新.
I have downloaded the windows 10 update that includes the dark theme.
文件浏览器等都是深色主题,但是当我创建自己的c#表单应用程序时,标题栏为亮白色.
File explorer et al are in dark theme, but when I create my own c# form application, the title bar is bright white.
如何使自己的桌面应用程序遵循我在Windows中设置的深色主题?
How can I make my own desktop apps follow the dark theme that i have set in windows?
推荐答案
在GitHub中有一个 DarkUI库,描述如下:
There is a DarkUI library available in GitHub, it is described here:
It provides "dark versions" of the common controls too.
对于标题栏,请尝试以下操作:更改标题栏的颜色
For the title bar, try this: Change the color of the title bar
也许它也是让用户在Windows个性化设置中设置高对比度设置的足够解决方案(右键单击桌面以到达那里).
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).
这篇关于如何使我的窗体标题栏遵循Windows深色主题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!