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

Open
opened 2026-01-31 08:15:03 +00:00 by claunia · 1 comment
Owner

Originally created by @carlos-zamora on GitHub (Nov 4, 2024).

Originally assigned to: @carlos-zamora on GitHub.

Image

Originally created by @carlos-zamora on GitHub (Nov 4, 2024). Originally assigned to: @carlos-zamora on GitHub. ![Image](https://github.com/user-attachments/assets/93024e28-1b51-4837-b1d2-aff44a212536)
Author
Owner

@carlos-zamora commented on GitHub (Nov 7, 2024):

Did some research:

  • The color used is ErrorTextBrush (Color=ThemeResource SystemErrorTextColor)here: 52262b05fa/src/cascadia/TerminalApp/App.xaml (L44)
  • We build that message using _BuildErrorRun in TerminalWindow: 52262b05fa/src/cascadia/TerminalApp/TerminalWindow.cpp (L111)
  • 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 commented on GitHub (Nov 7, 2024): Did some research: - The color used is `ErrorTextBrush` (Color=ThemeResource `SystemErrorTextColor`)here: https://github.com/microsoft/terminal/blob/52262b05fa0a97d2d3a0fce0990840ffc0fa53f1/src/cascadia/TerminalApp/App.xaml#L44 - We build that message using `_BuildErrorRun` in `TerminalWindow`: https://github.com/microsoft/terminal/blob/52262b05fa0a97d2d3a0fce0990840ffc0fa53f1/src/cascadia/TerminalApp/TerminalWindow.cpp#L111 - 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22492