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

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

Open
carlos-zamora opened this issue Nov 4, 2024 · 1 comment
Open
Assignees
Labels
Area-Accessibility Issues related to accessibility Help Wanted We encourage anyone to jump in on these. Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-3 A description (P3) Product-Terminal The new Windows Terminal.
Milestone

Comments

@carlos-zamora
Copy link
Member

Image

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Nov 4, 2024
@carlos-zamora carlos-zamora 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. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Nov 4, 2024
@carlos-zamora carlos-zamora added this to the Terminal v1.23 milestone Nov 4, 2024
@carlos-zamora carlos-zamora self-assigned this Nov 4, 2024
@carlos-zamora
Copy link
Member Author

Did some research:

  • The color used is ErrorTextBrush (Color=ThemeResource SystemErrorTextColor)here:
    <SolidColorBrush x:Name="ErrorTextBrush"
  • We build that message using _BuildErrorRun in TerminalWindow:
    auto key = winrt::box_value(L"ErrorTextBrush");
  • For whatever reason, SystemErrorTextColor doesn't have a high contrast value, so we just end up using yellow instead.
  • I've tried messing with the XAML and I wasn't able to get it to use a theme resource instead. Since we're getting the color via code in TerminalWindow.cpp, we basically have to evaluate which theme dictionary to use at runtime, which makes this a bit more complex.

The good news is, we really only have this kind of illegible text when the Contrast Theme has a light background (i.e. Desert). I'm assigning priority 3 and adding the help-wanted label on it.

@carlos-zamora carlos-zamora added Help Wanted We encourage anyone to jump in on these. Priority-3 A description (P3) labels Nov 7, 2024
@carlos-zamora carlos-zamora modified the milestones: Terminal v1.23, Backlog Nov 7, 2024
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 Help Wanted We encourage anyone to jump in on these. Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-3 A description (P3) Product-Terminal The new Windows Terminal.
Projects
None yet
Development

No branches or pull requests

1 participant