[PR #18109] Fix tab contrast colors when in high contrast #31451

Closed
opened 2026-01-31 09:47:23 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/18109

State: closed
Merged: Yes


Summary of the Pull Request

Originally, the XAML resources were being applied on the TabView's ResourceDictionary directly. However, high contrast mode has a few weird scenarios as it basically reduces the color palette to just a few colors to ensure high contrast. This PR now stores the resources onto the ThemeDictionaries so that we have more control over the colors used.

References and Relevant Issues

Closes #17913
Closes #13067 (fixed by 5be0056)

Validation Steps Performed

Compared the following scenarios to WinUI 2 gallery's TabView when in High Contrast mode:
(Un)selected tab
hover over x of (un)selected tab
hover over unselected tab

**Original Pull Request:** https://github.com/microsoft/terminal/pull/18109 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request Originally, the XAML resources were being applied on the TabView's ResourceDictionary directly. However, high contrast mode has a few weird scenarios as it basically reduces the color palette to just a few colors to ensure high contrast. This PR now stores the resources onto the ThemeDictionaries so that we have more control over the colors used. ## References and Relevant Issues Closes #17913 Closes #13067 (fixed by 5be0056) ## Validation Steps Performed Compared the following scenarios to WinUI 2 gallery's TabView when in High Contrast mode: ✅ (Un)selected tab ✅ hover over x of (un)selected tab ✅ hover over unselected tab
claunia added the pull-request label 2026-01-31 09:47:23 +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#31451