[PR #10242] [CLOSED] Make top titlebar padding consistent with WinUI and other apps #27955

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10242
Author: @ghost
Created: 5/27/2021
Status: Closed

Base: mainHead: terminal-top-padding-fix


📝 Commits (2)

  • 084fe7f Increased button height in maximized mode
  • af730e0 Update padding to look equal

📊 Changes

2 files changed (+4 additions, -4 deletions)

View changed files

📝 src/cascadia/TerminalApp/App.xaml (+2 -2)
📝 src/cascadia/TerminalApp/MinMaxCloseControl.xaml (+2 -2)

📄 Description

The current titlebar padding of 4px on the top was decided in #3513, and it was chosen because it persisted even in maximized mode. That was over a year and a half ago, and in the meantime with #5881 the issue was fixed.

WinUI and other tabbed apps like Chrome and Edge have the left padding equal to the one on top, because it looks more balanced.

This fix increases the height of the caption buttons in windowed mode by 4px, which in turn makes the effective top padding be 8px. (that's how it worked before as well)

top-padding


🔄 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/10242 **Author:** [@ghost](https://github.com/ghost) **Created:** 5/27/2021 **Status:** ❌ Closed **Base:** `main` ← **Head:** `terminal-top-padding-fix` --- ### 📝 Commits (2) - [`084fe7f`](https://github.com/microsoft/terminal/commit/084fe7fc24306c2983bac78e0a827d7c6f5c8c68) Increased button height in maximized mode - [`af730e0`](https://github.com/microsoft/terminal/commit/af730e0b845cb14cd4e4d91a24308b56458d4342) Update padding to look equal ### 📊 Changes **2 files changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/App.xaml` (+2 -2) 📝 `src/cascadia/TerminalApp/MinMaxCloseControl.xaml` (+2 -2) </details> ### 📄 Description The current titlebar padding of 4px on the top was decided in #3513, and it was chosen because it persisted even in maximized mode. That was over a year and a half ago, and in the meantime with #5881 the issue was fixed. WinUI and other tabbed apps like Chrome and Edge have the left padding equal to the one on top, because it looks more balanced. This fix increases the height of the caption buttons in windowed mode by 4px, which in turn makes the effective top padding be 8px. (that's how it worked before as well) ![top-padding](https://user-images.githubusercontent.com/84711285/119894136-e5dbca00-bf44-11eb-9776-d78f61ec17e3.png) --- <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:25:23 +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#27955