枚举默认的 UWP 主题资源 [英] Enumerating default UWP ThemeResources
问题描述
我想从 UWP 下的明暗主题资源中获取键和值的列表.有谁知道在哪里可以找到这些?
您可以找到所有 24 系统颜色
画笔 属性 > 画笔 > 画笔资源
希望这会有所帮助!
I would like to get a list of the keys and values from the light and dark theme resources under UWP. Does anyone know where these can be found?
You can find all 24 system colors here. Also there are system high-contrast colors on the same page as well as a special SystemAccentColor
At runtime, this resource (
SystemAccentColor
) gets the color that the user has specified as the accent color in the Windows personalization settings.
Almost all the system brushes are defined here. Do take note that this link is based on Windows 8.1 and it's missing a few Brushes
like PivotForegroundThemeBrush
.
How do I know? This is how I find all the system colors/brushes -
Colors - Properties > Brush > Solid color brush > Color resources
Brushes Properties > Brush > Brush resources
Hope this helps!
这篇关于枚举默认的 UWP 主题资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!