Skip to content

Fix settings error text legibility in High Contrast mode#20098

Open
SushaanthSrinivasan wants to merge 1 commit intomicrosoft:mainfrom
SushaanthSrinivasan:fix/high-contrast-error-text
Open

Fix settings error text legibility in High Contrast mode#20098
SushaanthSrinivasan wants to merge 1 commit intomicrosoft:mainfrom
SushaanthSrinivasan:fix/high-contrast-error-text

Conversation

@SushaanthSrinivasan
Copy link
Copy Markdown

@SushaanthSrinivasan SushaanthSrinivasan commented Apr 9, 2026

Closes #18147

SystemErrorTextColor doesn't adapt to High Contrast themes, so the error details in the "Failed to reload settings" dialog are illegible (yellow on cream in HC White, for example).

Fix: skip the ErrorTextBrush foreground override when High Contrast is active, letting the text inherit the system HC text color from its parent element. This matches the existing HC detection pattern used in TermControl.cpp and MainPage.cpp.

Validated manually on High Contrast White and Night sky themes.

SystemErrorTextColor doesn't adapt to High Contrast themes, making
the settings error text illegible. In HC mode, let the text inherit
the system foreground from its parent element instead.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@SushaanthSrinivasan
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Copy link
Copy Markdown
Member

@carlos-zamora carlos-zamora left a comment

Choose a reason for hiding this comment

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

Thank you so much for doing this! 🙏

@carlos-zamora
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@carlos-zamora
Copy link
Copy Markdown
Member

Demo (extracted from PR body)

Before (HC White):
old

After (HC White):
new

@carlos-zamora carlos-zamora enabled auto-merge (squash) April 10, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[High Contrast] "Failed to reload settings" warning isn't legible

2 participants