Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enumerating default UWP ThemeResources

Tags:

.net

uwp

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?

like image 445
Grokys Avatar asked Aug 31 '15 22:08

Grokys


1 Answers

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 enter image description here

Brushes Properties > Brush > Brush resources enter image description here

Hope this helps!

like image 66
Justin XL Avatar answered Nov 15 '22 01:11

Justin XL