[PR #15237] [MERGED] Add support to show close button for active tab only. #30523

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/15237
Author: @kovdu
Created: 4/25/2023
Status: Merged
Merged: 5/3/2023
Merged by: @microsoft-github-policy-service[bot]

Base: mainHead: 13672_close_button_active_tab_only


📝 Commits (2)

  • 950290b 13672: Add support to show close button for active tab only.
  • 4cae417 Fixed MR remarks

📊 Changes

6 files changed (+48 additions, -69 deletions)

View changed files

📝 doc/cascadia/profiles.schema.json (+2 -1)
📝 src/cascadia/TerminalApp/TabManagement.cpp (+2 -3)
📝 src/cascadia/TerminalApp/TerminalPage.cpp (+39 -62)
📝 src/cascadia/TerminalApp/TerminalPage.h (+1 -1)
📝 src/cascadia/TerminalSettingsModel/TerminalSettingsSerializationHelpers.h (+2 -1)
📝 src/cascadia/TerminalSettingsModel/Theme.idl (+2 -1)

📄 Description

This MR introduces activeOnly for the showCloseButton theme option causing the close button only to appear on the active tab.

This is more or less following the approach explained here https://github.com/orgs/microsoft/projects/686/views/2?pane=issue&itemId=19775774 which indeed just works 😄 .

You notice when switching theme the close buttons is back on all tabs again as well.

Closes #13672

I didn't check specific unit tests for this. I hope by making this MR the pipeline will show if I broke something. Or just let me know if you want me to add something specific for this.


🔄 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/15237 **Author:** [@kovdu](https://github.com/kovdu) **Created:** 4/25/2023 **Status:** ✅ Merged **Merged:** 5/3/2023 **Merged by:** [@microsoft-github-policy-service[bot]](https://github.com/apps/microsoft-github-policy-service) **Base:** `main` ← **Head:** `13672_close_button_active_tab_only` --- ### 📝 Commits (2) - [`950290b`](https://github.com/microsoft/terminal/commit/950290b044dc6ec42d284b4dc7c55acd35e97fcb) 13672: Add support to show close button for active tab only. - [`4cae417`](https://github.com/microsoft/terminal/commit/4cae4178d365afa9a50fadfeff603f57e185acd0) Fixed MR remarks ### 📊 Changes **6 files changed** (+48 additions, -69 deletions) <details> <summary>View changed files</summary> 📝 `doc/cascadia/profiles.schema.json` (+2 -1) 📝 `src/cascadia/TerminalApp/TabManagement.cpp` (+2 -3) 📝 `src/cascadia/TerminalApp/TerminalPage.cpp` (+39 -62) 📝 `src/cascadia/TerminalApp/TerminalPage.h` (+1 -1) 📝 `src/cascadia/TerminalSettingsModel/TerminalSettingsSerializationHelpers.h` (+2 -1) 📝 `src/cascadia/TerminalSettingsModel/Theme.idl` (+2 -1) </details> ### 📄 Description This MR introduces `activeOnly ` for the `showCloseButton` theme option causing the close button only to appear on the active tab. This is more or less following the approach explained here https://github.com/orgs/microsoft/projects/686/views/2?pane=issue&itemId=19775774 which indeed just works 😄 . You notice when switching theme the close buttons is back on all tabs again as well. Closes #13672 I didn't check specific unit tests for this. I hope by making this MR the pipeline will show if I broke something. Or just let me know if you want me to add something specific for this. --- <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:41:21 +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#30523