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

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/13144
Author: @zadjii-msft
Created: 5/23/2022
Status: Merged
Merged: 5/23/2022
Merged by: @undefined

Base: mainHead: dev/migrie/b/13143-transparent-tab-strip


📝 Commits (1)

  • ff9b861 Add the background back to showTabsInTitlebar: false's tab row.

📊 Changes

2 files changed (+21 additions, -0 deletions)

View changed files

📝 src/cascadia/TerminalApp/TabRowControl.xaml (+3 -0)
📝 src/cascadia/TerminalApp/TerminalPage.cpp (+18 -0)

📄 Description

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.


🔄 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/13144 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 5/23/2022 **Status:** ✅ Merged **Merged:** 5/23/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/migrie/b/13143-transparent-tab-strip` --- ### 📝 Commits (1) - [`ff9b861`](https://github.com/microsoft/terminal/commit/ff9b861027cb98a28cd7ed1c231e3b0ecf7ab97c) Add the background back to `showTabsInTitlebar: false`'s tab row. ### 📊 Changes **2 files changed** (+21 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/TabRowControl.xaml` (+3 -0) 📝 `src/cascadia/TerminalApp/TerminalPage.cpp` (+18 -0) </details> ### 📄 Description 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. --- <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:43 +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#29408