[PR #13144] Add the background back to showTabsInTitlebar: false's tab row. #29413

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

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

State: closed
Merged: Yes


We're doing it this way because ThemeResources are tricky. We
default in XAML to using the appropriate ThemeResource background
color for our TabRow. When tabs in the titlebar are disabled,
this will ensure that the tab row has the correct theme-dependent
value. When tabs in the titlebar are enabled (the default),
we'll switch the BG to Transparent, to let the Titlebar Control's
background be used as the BG for the tab row.

We can't do it the other way around (default to Transparent, only
switch to a color when disabling tabs in the titlebar), because
looking up the correct ThemeResource from and App dictionary is a
capital-H Hard problem.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/13144 **State:** closed **Merged:** Yes --- We're doing it this way because ThemeResources are tricky. We default in XAML to using the appropriate ThemeResource background color for our TabRow. When tabs in the titlebar are _disabled_, this will ensure that the tab row has the correct theme-dependent value. When tabs in the titlebar are _enabled_ (the default), we'll switch the BG to Transparent, to let the Titlebar Control's background be used as the BG for the tab row. We can't do it the other way around (default to Transparent, only switch to a color when disabling tabs in the titlebar), because looking up the correct ThemeResource from and App dictionary is a capital-H Hard problem. * [x] Closes #13143 * [x] I work here * [x] validated manually: - [x] showTabsInTitlebar: false, true - [x] useAcrylicInTabRow: false, true - [x] theme: light, dark * [x] Need to check if this is regressed the same in 1.13. I suspect it is.
claunia added the pull-request label 2026-01-31 09:34:45 +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#29413