Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve color contrast of reset button in SUI #17912

Merged
merged 2 commits into from
Sep 25, 2024

Conversation

carlos-zamora
Copy link
Member

Adds a theme resource for the color of the reset button in the settings UI.

Closes #17902

@microsoft-github-policy-service microsoft-github-policy-service bot added Issue-Bug It either shouldn't be doing this or needs an investigation. Area-Accessibility Issues related to accessibility Product-Terminal The new Windows Terminal. labels Sep 11, 2024
@carlos-zamora

This comment was marked as resolved.

@@ -73,6 +76,9 @@
ResourceKey="SystemColorWindowTextColorBrush" />
<StaticResource x:Key="SettingContainerMessageForeground"
ResourceKey="SystemColorWindowTextColorBrush" />

<StaticResource x:Key="SettingContainerResetButtonIconForeground"
ResourceKey="SystemAccentColorLight1" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not know if this is correct in High Contrast - is there a more "contrasty" button content resource we should use?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like WinUI doesn't provide a recommendation here. But we got approval from the a11y folks: #17902 (comment)

I also like this value because it keeps the accent color in use, so the app still looks and feels personalized to the user.

@carlos-zamora carlos-zamora marked this pull request as ready for review September 24, 2024 22:06
@carlos-zamora carlos-zamora merged commit 0bd19e9 into main Sep 25, 2024
20 checks passed
@carlos-zamora carlos-zamora deleted the dev/cazamor/sui/reset-btn-contrast branch September 25, 2024 17:07
DHowett pushed a commit that referenced this pull request Sep 26, 2024
Adds a theme resource for the color of the reset button in the settings UI.

Closes #17902

(cherry picked from commit 0bd19e9)
Service-Card-Id: PVTI_lADOAF3p4s4AmhmszgTTb0s
Service-Version: 1.21
DHowett pushed a commit that referenced this pull request Sep 26, 2024
Adds a theme resource for the color of the reset button in the settings UI.

Closes #17902

(cherry picked from commit 0bd19e9)
Service-Card-Id: PVTI_lADOAF3p4s4AmhmQzgTTb0w
Service-Version: 1.22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Accessibility Issues related to accessibility Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Terminal The new Windows Terminal.
Projects
3 participants