[PR #5881] [MERGED] Get rid of the padding above the tab row when maximized #26516

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/5881
Author: @zadjii-msft
Created: 5/13/2020
Status: Merged
Merged: 5/21/2020
Merged by: @undefined

Base: masterHead: dev/migrie/f/2541-tab-row-padding


📝 Commits (3)

  • dd77b5f Naively attempt to add a VisualState to the TabView
  • ea99e19 this was a dead-end, apparently it can't find the DefaultTabViewStyle resource so we'll just do it by hand
  • 756a116 cleanup for review

📊 Changes

2 files changed (+57 additions, -5 deletions)

View changed files

📝 src/cascadia/TerminalApp/MinMaxCloseControl.cpp (+40 -2)
📝 src/cascadia/TerminalApp/MinMaxCloseControl.xaml (+17 -3)

📄 Description

Summary of the Pull Request

When we maximize the window, shrink the caption buttons (the min, max, close buttons) down to 32px tall, to be the same height as the TabRowControl. This way, the tabs will be flush with the top of the display.

PR Checklist

Detailed Description of the Pull Request / Additional comments

I tried for a couple hours this morning to do this as a VisualState. First I tried doing it as one on the TabRow, which I had very little success with. Then, I eventually realized that the TabRow wasn't even responsible for the padding there, it was being created by the fact that the caption buttons were too tall. Again, I tried to use the existing VisualStates they have defined for this, but I couldn't figure out how to do that.

I think the visual state solution would be cleaner, so if someone knows how to do that instead, please let me know.

Validation Steps Performed

  • Maximized/restored the Terminal on my display with the taskbar on the bottom
  • Maximized/restored the Terminal on my display with the taskbar on the top

🔄 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/5881 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 5/13/2020 **Status:** ✅ Merged **Merged:** 5/21/2020 **Merged by:** [@undefined](undefined) **Base:** `master` ← **Head:** `dev/migrie/f/2541-tab-row-padding` --- ### 📝 Commits (3) - [`dd77b5f`](https://github.com/microsoft/terminal/commit/dd77b5fca2510b1f139dd594c179eeb1d8c0f808) Naively attempt to add a VisualState to the TabView - [`ea99e19`](https://github.com/microsoft/terminal/commit/ea99e19db7f75b1b6db35fba6896bb16ebfe4526) this was a dead-end, apparently it can't find the DefaultTabViewStyle resource so we'll just do it by hand - [`756a116`](https://github.com/microsoft/terminal/commit/756a116c99c6d461ae55aa32b2515f0544b7faea) cleanup for review ### 📊 Changes **2 files changed** (+57 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/MinMaxCloseControl.cpp` (+40 -2) 📝 `src/cascadia/TerminalApp/MinMaxCloseControl.xaml` (+17 -3) </details> ### 📄 Description ## Summary of the Pull Request When we maximize the window, shrink the caption buttons (the min, max, close buttons) down to 32px tall, to be the same height as the `TabRowControl`. This way, the tabs will be flush with the top of the display. ## PR Checklist * [x] Closes #2541 * [x] I work here * [ ] Tests added/passed * [n/a] Requires documentation to be updated ## Detailed Description of the Pull Request / Additional comments I tried for a couple hours this morning to do this as a `VisualState`. First I tried doing it as one on the TabRow, which I had very little success with. Then, I eventually realized that the TabRow wasn't even responsible for the padding there, it was being created by the fact that the caption buttons were too tall. Again, I tried to use the existing `VisualState`s they have defined for this, but I couldn't figure out how to do that. I think the visual state solution would be _cleaner_, so if someone knows how to do that instead, please let me know. ## Validation Steps Performed * Maximized/restored the Terminal on my display with the taskbar on the bottom * Maximized/restored the Terminal on my display with the taskbar on the top --- <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:16:32 +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#26516