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

Fix High Contrast mode in Settings UI #18130

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

carlos-zamora
Copy link
Member

"HighContrast" is not a possible requested theme. So _UpdateBackgroundForMica() would force the settings UI to be light or dark. To fix this, we just check if we're in high contrast mode and, if so, we don't bother setting the requested theme.

@carlos-zamora
Copy link
Member Author

Demo

image

NOTE: the tab is fixed over in #18109

@carlos-zamora carlos-zamora merged commit d04381e into main Oct 31, 2024
20 checks passed
@carlos-zamora carlos-zamora deleted the dev/cazamor/a11y/high-contrast-sui branch October 31, 2024 19:08
DHowett pushed a commit that referenced this pull request Nov 15, 2024
"HighContrast" is not a possible requested theme. So `_UpdateBackgroundForMica()` would force the settings UI to be light or dark. To fix this, we just check if we're in high contrast mode and, if so, we don't bother setting the requested theme.

(cherry picked from commit d04381e)
Service-Card-Id: PVTI_lADOAF3p4s4AmhmszgUZ6MY
Service-Version: 1.21
DHowett pushed a commit that referenced this pull request Nov 15, 2024
"HighContrast" is not a possible requested theme. So `_UpdateBackgroundForMica()` would force the settings UI to be light or dark. To fix this, we just check if we're in high contrast mode and, if so, we don't bother setting the requested theme.

(cherry picked from commit d04381e)
Service-Card-Id: PVTI_lADOAF3p4s4AmhmQzgUZ6Mc
Service-Version: 1.22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Cherry Picked
Status: Cherry Picked
Development

Successfully merging this pull request may close these issues.

4 participants