microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.35k stars 678 forks source link

Text doesn't respect requested High Contrast colors #2031

Closed MikeHillberg closed 1 year ago

MikeHillberg commented 4 years ago

Describe the bug Xaml text has a feature where it ensures text is high contrast when the user has enabled high contrast mode. It does this by ignoring any Foreground color that's been specified for the text, and by adding a fixed background.

You can disable this behavior with the UIElement.HighContrastAdjustment, and that page has more information on the feature.

The problem is that (when the feature isn't disabled) it doesn't use the high contrast colors that the user has specified in Settings.

Steps to reproduce the bug

Steps to reproduce the behavior:

<Button>Click</Button>
<Button HighContrastAdjustment="None">Clack</Button>

Expected behavior

Both buttons should match the Settings configuration, but only the second one does.

Screenshots

image

Version Info

Windows 1903

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days.