How to get complete list of theme colors

BitSmithy 1,956 Reputation points
2024-06-04T13:40:08.9033333+00:00

Hello,

I want to style my app in Light and Dark themes.

I need a list off all system theme resources with its settings. For example: SystemControlBackgroundAltHighBrush and its color

How to get such list?

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

Accepted answer
  1. Junjie Zhu - MSFT 16,391 Reputation points Microsoft Vendor
    2024-06-05T03:50:37.3933333+00:00

    Hi @BitSmithy ,

    Welcome to Microsoft Q&A!

    You can find all system theme resources with its settings in generic.xaml which is available in the (Program Files)\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\UAP\10.0.xxxxx.0\Generic.

    For example: SystemControlBackgroundAltHighBrush and its color

     <ResourceDictionary x:Key="Light">
    ...
    ...
    <SolidColorBrush x:Key="SystemControlBackgroundAltHighBrush" Color="{StaticResource SystemAltHighColor}" />
    
    <Color x:Key="SystemAltHighColor">#FFFFFFFF</Color>
    

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful