如何使我的窗体标题栏遵循Windows深色主题? [英] How do I make my Form title bar follow the windows dark theme?

查看:53
本文介绍了如何使我的窗体标题栏遵循Windows深色主题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载了包含深色主题的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆