Windows 7 系统控件默认颜色列表

发布于 2024-10-03 23:59:46 字数 127 浏览 1 评论 0原文

我正在尝试将我的应用程序的自定义控件颜色与 Windows 7 中使用的颜色相匹配。但是,我似乎无法找到 Windows 7 使用的所有颜色的完整列表。是否有包含这些颜色的内置类,或者我是否可以必须为我想要设置样式的每个控件使用颜色选择器。

I'm trying to match my application's custom controls colors to the ones used in Windows 7. However, I cannot seem to find a complete list of all colors used by Windows 7. Is there a built in class containing these colors, or do I have to use a color picker for every control I want to style.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

落花浅忆 2024-10-10 23:59:46

如果有人有兴趣一目了然地了解不同主题的系统颜色,我在此处创建了一个参考。

使用这些函数和类并动态设置应用程序的颜色:GetSysColor 函数 (Win32)、System.Windows.SystemColors 类 (Windows Presentation Foundation)、System.Drawing.SystemColors 类 (Windows 窗体)。

If anyone's interested in seeing the system colours for different themes at a glance, I've created a reference here.

Use these functions and classes and set your application's colours dynamically: GetSysColor function (Win32), System.Windows.SystemColors class (Windows Presentation Foundation), System.Drawing.SystemColors class (Windows Forms).

雨巷深深 2024-10-10 23:59:46

SystemColors 类有帮助吗?

Does the SystemColors class help?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文