Windows 7 系统控件默认颜色列表
我正在尝试将我的应用程序的自定义控件颜色与 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果有人有兴趣一目了然地了解不同主题的系统颜色,我在此处创建了一个参考。
使用这些函数和类并动态设置应用程序的颜色: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).
SystemColors 类有帮助吗?
Does the SystemColors class help?