Conversation
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
|
If someone is using it, we do not want to cause a crash. @YuliKl as FYI |
I initially added |
Lets do a separate change to remove this key.. |
|
@beervoley I'm getting some feedback from design about these values, so we may need to change a few brush mapping before you complete the PR. |
|
Oops, didn't notice this was already merged. |
| <!-- Other --> | ||
|
|
||
| <SolidColorBrush x:Key="SystemColorWindowTextColorBrush" Color="{ThemeResource SystemColorWindowTextColor}" /> | ||
| <SolidColorBrush x:Key="SystemColorWindowColorBrush" Color="{ThemeResource SystemColorWindowColor}" /> |
There was a problem hiding this comment.
Instead of creating all these solid color brushes (save on perf) why don't we add the rest of these brushes (SystemColorWindowTextColorBrush and SystemColorWindowColorBrush are already in this location and ready to go):
<SolidColorBrush x:Key="SystemColorWindowColorBrush" Color="{ThemeResource SystemColorWindowColor}" /> <SolidColorBrush x:Key="SystemColorWindowTextColorBrush" Color="{ThemeResource SystemColorWindowTextColor}" /> <SolidColorBrush x:Key="SystemColorHighlightColorBrush" Color="{ThemeResource SystemColorHighlightColor}" /> <SolidColorBrush x:Key="SystemColorHighlightTextColorBrush" Color="{ThemeResource SystemColorHighlightTextColor}" /> <SolidColorBrush x:Key="SystemColorButtonFaceColorBrush" Color="{ThemeResource SystemColorButtonFaceColor}" /> <SolidColorBrush x:Key="SystemColorButtonTextColorBrush" Color="{ThemeResource SystemColorButtonTextColor}" /> <SolidColorBrush x:Key="SystemColorHotlightColorBrush" Color="{ThemeResource SystemColorHotlightColor}" /> <SolidColorBrush x:Key="SystemColorGrayTextColorBrush" Color="{ThemeResource SystemColorGrayTextColor}" />
and convert all the brushes you are adding to static resources ( <StaticResource x:Key="TextFillColorPrimaryBrush" ResourceKey="SystemColorButtonTextColorBrush" />) ?
Description
These PR adds missing HighContrast Resources to Common themeresources.
Motivation and Context
When switching to HighContrast theme the app would crash because the resources that Controls reference are not defined for the HighContrast theme. With this PR it will be fixed.
How Has This Been Tested?
Manually switched to HC and made sure defined resources are working.