Enumerating default UWP ThemeResources

雨燕双飞 提交于 2019-12-08 19:53:29

问题


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?


回答1:


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!



来源:https://stackoverflow.com/questions/32320976/enumerating-default-uwp-themeresources

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!