[PR #13083] [MERGED] [High Contrast] Fix red SUI background #29365

Open
opened 2026-01-31 09:34:28 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/13083
Author: @carlos-zamora
Created: 5/11/2022
Status: Merged
Merged: 5/11/2022
Merged by: @undefined

Base: mainHead: dev/cazamor/bugfix-high-contrast


📝 Commits (1)

  • a6943e2 [High Contrast] Fix red SUI background

📊 Changes

2 files changed (+9 additions, -1 deletions)

View changed files

📝 src/cascadia/TerminalApp/App.xaml (+8 -0)
📝 src/cascadia/TerminalSettingsEditor/MainPage.xaml (+1 -1)

📄 Description

Fixes the SUI background being red in high contrast mode. The issue was
that SolidBackgroundFillColorTertiary purposefully has a bad High
Contrast color1 .

The fix was to be explicit in the theme resources so that
SolidBackgroundFillColorTertiary is used in light and dark mode, but
the standard high contrast one is used in high contrast mode. Since the
page is the top-level XAML element in the Editor project, I had to
introduce this in the App.xaml resources so that the page can find the
theme resource.

Closes #13065
Closes #13070


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/13083 **Author:** [@carlos-zamora](https://github.com/carlos-zamora) **Created:** 5/11/2022 **Status:** ✅ Merged **Merged:** 5/11/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/cazamor/bugfix-high-contrast` --- ### 📝 Commits (1) - [`a6943e2`](https://github.com/microsoft/terminal/commit/a6943e218e71636294f99e493d0d16e586fc93c1) [High Contrast] Fix red SUI background ### 📊 Changes **2 files changed** (+9 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/App.xaml` (+8 -0) 📝 `src/cascadia/TerminalSettingsEditor/MainPage.xaml` (+1 -1) </details> ### 📄 Description Fixes the SUI background being red in high contrast mode. The issue was that `SolidBackgroundFillColorTertiary` purposefully has a bad High Contrast color[^1]. The fix was to be explicit in the theme resources so that `SolidBackgroundFillColorTertiary` is used in light and dark mode, but the standard high contrast one is used in high contrast mode. Since the page is the top-level XAML element in the Editor project, I had to introduce this in the App.xaml resources so that the page can find the theme resource. Closes #13065 Closes #13070 [^1]: https://github.com/microsoft/microsoft-ui-xaml/blob/40df43a61c013a6763f47dd7d89ed54f35999340/dev/CommonStyles/Common_themeresources_any.xaml#L650-L651 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:34:28 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#29365