[PR #5789] [MERGED] Update the tab's close button color to match the tab text color #26469

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/5789
Author: @zadjii-msft
Created: 5/7/2020
Status: ✅ Merged
Merged: 6/5/2020
Merged by: @undefined

Base: master ← Head: dev/migrie/b/5780-on-2.4


📝 Commits (3)

  • 2259016 Move to Microsoft.UI.Xaml 2.4.0
  • a1e61f3 This fixes #5780, but it only works on MUX 2.4 apparently.
  • 084d163 Merge remote-tracking branch 'origin/master' into dev/migrie/b/5780-on-2.4

📊 Changes

1 file changed (+3 additions, -1 deletions)

View changed files

📝 src/cascadia/TerminalApp/Tab.cpp (+3 -1)

📄 Description

Summary of the Pull Request

When we select a color for the tab, we update the foreground color of the text so that it maintains acceptable contrast with the new tab color. However, we weren't also updating the foreground color of the close button.

This is understandable though, because apparently this wasn't fixable until MUX 2.4 arrived. I'm not a XAML expert, but I know that setting this key only works when we're using MUX 2.4, so I'm assuming something about the TabView implementation changed in that release. This PR is marked as a draft until #5778 is merged, then I'll re-target to master.

References

  • #5778 - PR to move to MUX 2.4
  • This bug was introduced with the tab color picker in #3789

PR Checklist

Validation Steps Performed

A light tab color:
image

A dark tab color:
image


🔄 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/5789 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 5/7/2020 **Status:** ✅ Merged **Merged:** 6/5/2020 **Merged by:** [@undefined](undefined) **Base:** `master` ← **Head:** `dev/migrie/b/5780-on-2.4` --- ### 📝 Commits (3) - [`2259016`](https://github.com/microsoft/terminal/commit/22590163b2102f099ed0acc4433b5057cc30f1ff) Move to Microsoft.UI.Xaml 2.4.0 - [`a1e61f3`](https://github.com/microsoft/terminal/commit/a1e61f3a0fd228eaa7bab03b418d8b768585edf1) This fixes #5780, but it _only_ works on MUX 2.4 apparently. - [`084d163`](https://github.com/microsoft/terminal/commit/084d163c341db7d31352811ffe16e339b28c856e) Merge remote-tracking branch 'origin/master' into dev/migrie/b/5780-on-2.4 ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/Tab.cpp` (+3 -1) </details> ### 📄 Description ## Summary of the Pull Request When we select a color for the tab, we update the foreground color of the text so that it maintains acceptable contrast with the new tab color. However, we weren't also updating the foreground color of the close button. This is understandable though, because apparently this wasn't fixable until MUX 2.4 arrived. I'm not a XAML expert, but I know that setting this key only works when we're using MUX 2.4, so I'm assuming something about the TabView implementation changed in that release. _This PR is marked as a draft until #5778 is merged, then I'll re-target to master._ ## References * #5778 - PR to move to MUX 2.4 * This bug was introduced with the tab color picker in #3789 ## PR Checklist * [x] Closes #5780 * [x] I work here * [ ] Tests added/passed * [n/a] Requires documentation to be updated ## Validation Steps Performed A light tab color: ![image](https://user-images.githubusercontent.com/18356694/81303943-00918700-9042-11ea-86e6-7bdfe343c4ca.png) A dark tab color: ![image](https://user-images.githubusercontent.com/18356694/81303953-04250e00-9042-11ea-8db2-be97af519fae.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:16:17 +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#26469