Skip to content

Conversation

@carlos-zamora
Copy link
Member

Summary of the Pull Request

Turns out that the "TabViewItemHeaderBackground" resource should be set to the selected color instead of the deselected color.

In 1.22, (pre-#18109) we actually didn't set this resource. But we do actually need it for high contrast mode! (verified)

Validation Steps Performed

✅ High contrast mode looks right
✅ "Snazzy" theme from bug report looks right

PR Checklist

Closes #19343


// TabViewItem.Background
currentDictionary.Insert(winrt::box_value(L"TabViewItemHeaderBackground"), deselectedTabBrush);
currentDictionary.Insert(winrt::box_value(L"TabViewItemHeaderBackground"), selectedTabBrush);
Copy link
Member

Choose a reason for hiding this comment

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

wait, this doesn't cause Terminal to look wrong on the default themes? The resource makes it sound like it MUST be the deselected one... what happened?

Copy link
Member Author

Choose a reason for hiding this comment

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

Just downloaded the build unpackaged and tested it with no theme set (with and without high contrast mode). Still looks correct.

I'm with you, the resource sounds like it should be the deselected one though haha. But when I tested it with the "Snazzy" theme from the bug report (unfocused = Red, selected = Green), I noticed that there was actually a green outline on the selected tab:
image

I bet the colors are layered or something like that.

@carlos-zamora carlos-zamora enabled auto-merge (squash) October 9, 2025 17:29
@carlos-zamora carlos-zamora merged commit b62cad6 into main Oct 9, 2025
19 checks passed
@carlos-zamora carlos-zamora deleted the dev/cazamor/bugfix/tab-color branch October 9, 2025 17:31
@DHowett DHowett moved this from To Cherry Pick to Cherry Picked in 1.23 Servicing Pipeline Nov 24, 2025
DHowett pushed a commit that referenced this pull request Nov 24, 2025
Turns out that the `"TabViewItemHeaderBackground"` resource should be
set to the _selected_ color instead of the _deselected_ color.

In 1.22, (pre-#18109) we actually didn't set this resource. But we do
actually need it for high contrast mode! (verified)

✅ High contrast mode looks right
✅ "Snazzy" theme from bug report looks right

 Closes #19343

(cherry picked from commit b62cad6)
Service-Card-Id: PVTI_lADOAF3p4s4AxadtzgfrGvM
Service-Version: 1.23
@DHowett DHowett moved this from To Cherry Pick to Cherry Picked in 1.24 Servicing Pipeline Nov 24, 2025
DHowett pushed a commit that referenced this pull request Nov 24, 2025
## Summary of the Pull Request
Turns out that the `"TabViewItemHeaderBackground"` resource should be
set to the _selected_ color instead of the _deselected_ color.

In 1.22, (pre-#18109) we actually didn't set this resource. But we do
actually need it for high contrast mode! (verified)

## Validation Steps Performed
✅ High contrast mode looks right
✅ "Snazzy" theme from bug report looks right

## PR Checklist
 Closes #19343

(cherry picked from commit b62cad6)
Service-Card-Id: PVTI_lADOAF3p4s4BBcTlzgfrGvI
Service-Version: 1.24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Cherry Picked
Status: Cherry Picked

Development

Successfully merging this pull request may close these issues.

unfocusedBackground being used in the active tab color

3 participants