Skip to content

Fix tab row acrylic material in unfocused windows#19647

Merged
carlos-zamora merged 4 commits intomicrosoft:mainfrom
AbhishekGiri04:fix-tab-acrylic-unfocused
Feb 27, 2026
Merged

Fix tab row acrylic material in unfocused windows#19647
carlos-zamora merged 4 commits intomicrosoft:mainfrom
AbhishekGiri04:fix-tab-acrylic-unfocused

Conversation

@AbhishekGiri04
Copy link
Contributor

Summary

Fixes tab row losing acrylic material when window is unfocused, even when "Allow acrylic material in unfocused windows" is enabled.

References

Fixes #19544

Changes

Modified _updateThemeColors() in TerminalPage.cpp to check both window focus state and EnableUnfocusedAcrylic setting.

Testing

  • Verified acrylic persists when window loses focus (with setting enabled)
  • Verified acrylic removed when setting disabled (expected behavior)

This commit fixes the issue where the tab row loses its acrylic material
when the window loses focus, even when 'Allow acrylic material in unfocused
windows' setting is enabled.

The fix modifies the _updateThemeColors() function in TerminalPage.cpp to
check both the UseAcrylicInTabRow setting AND the window focus state along
with the EnableUnfocusedAcrylic setting. Now the tab row will maintain its
acrylic effect when:
1. UseAcrylicInTabRow is enabled, AND
2. Either the window is focused OR EnableUnfocusedAcrylic is enabled

This ensures that the 'Allow acrylic material in unfocused windows' setting
is properly respected for the tab row, not just the terminal background.

Fixes microsoft#19544
Copy link
Member

@carlos-zamora carlos-zamora left a comment

Choose a reason for hiding this comment

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

✅ Verified it works

Change is pretty straightforward. Thanks for doing it 😊

@carlos-zamora
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@carlos-zamora carlos-zamora enabled auto-merge (squash) January 12, 2026 21:21
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Jan 12, 2026
@DHowett
Copy link
Member

DHowett commented Jan 12, 2026

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@carlos-zamora carlos-zamora removed the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Jan 14, 2026
@carlos-zamora
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@DHowett DHowett left a comment

Choose a reason for hiding this comment

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

Oh, I'm sorry - I missed that this needed a final review.

@carlos-zamora carlos-zamora merged commit 28c98c5 into microsoft:main Feb 27, 2026
16 checks passed
@DHowett DHowett moved this from To Cherry Pick to Cherry Picked in 1.24 Servicing Pipeline Feb 27, 2026
DHowett pushed a commit that referenced this pull request Feb 27, 2026
## Summary
Fixes tab row losing acrylic material when window is unfocused, even
when "Allow acrylic material in unfocused windows" is enabled.

## References
Fixes #19544

## Changes
Modified `_updateThemeColors()` in `TerminalPage.cpp` to check both
window focus state and `EnableUnfocusedAcrylic` setting.

## Testing
- Verified acrylic persists when window loses focus (with setting
enabled)
- Verified acrylic removed when setting disabled (expected behavior)

---------

Co-authored-by: Carlos Zamora <carlos.zamora@microsoft.com>
(cherry picked from commit 28c98c5)
Service-Card-Id: PVTI_lADOAF3p4s4BBcTlzgjj55A
Service-Version: 1.24
@DHowett DHowett moved this from Cherry Picked to Shipped in 1.24 Servicing Pipeline Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

Tab row loses acrylic material when window is unfocused

4 participants