[PR #14708] [MERGED] Update the titlebar visibility when we gain/lose focus too #30216

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/14708
Author: @zadjii-msft
Created: 1/19/2023
Status: Merged
Merged: 1/20/2023
Merged by: @undefined

Base: mainHead: dev/migrie/b/14563-no-time


📝 Commits (3)

  • 785976d there's no time
  • 316b400 Update src/cascadia/WindowsTerminal/AppHost.cpp
  • e12abea Merge branch 'main' into dev/migrie/b/14563-no-time

📊 Changes

1 file changed (+19 additions, -2 deletions)

View changed files

📝 src/cascadia/WindowsTerminal/AppHost.cpp (+19 -2)

📄 Description

We forgot to updateTheme again when we change the titlebar color. That would result in us setting the titlebar visibility only when the settings were reloaded, but if the unfocused BG was opaque, and the focused was transparent, we'd use the current unfocused color to set the titlebar visibility.

Also, this fixes a bug with tabRow.BG: terminalBackground

from teams for brevity

tabRow.BG = terminalBackground might not work, and here's why

the termcontrol's BG brush might be (r,g,b, 255), with an Opacity of 0

so my "use mica when the brush's A is <1.0" doesn't work

closes #14563


🔄 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/14708 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 1/19/2023 **Status:** ✅ Merged **Merged:** 1/20/2023 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/migrie/b/14563-no-time` --- ### 📝 Commits (3) - [`785976d`](https://github.com/microsoft/terminal/commit/785976d57d6282f9b1d87d06a79fa1caf3ccd3e3) there's no time - [`316b400`](https://github.com/microsoft/terminal/commit/316b400f0228b531418eb9c099061fc790fdc6b5) Update src/cascadia/WindowsTerminal/AppHost.cpp - [`e12abea`](https://github.com/microsoft/terminal/commit/e12abea99717d2f9b7e49cd72179773271ed0459) Merge branch 'main' into dev/migrie/b/14563-no-time ### 📊 Changes **1 file changed** (+19 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/WindowsTerminal/AppHost.cpp` (+19 -2) </details> ### 📄 Description We forgot to updateTheme again when we change the titlebar color. That would result in us setting the titlebar visibility only when the settings were reloaded, but if the unfocused BG was opaque, and the focused was transparent, we'd use the current _unfocused_ color to set the titlebar visibility. Also, this fixes a bug with `tabRow.BG: terminalBackground` from teams for brevity > tabRow.BG = terminalBackground might not work, and here's why > > the termcontrol's BG brush might be (r,g,b, 255), with an Opacity of 0 > > so my "use mica when the brush's A is <1.0" doesn't work > closes #14563 --- <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:39: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#30216