tab.unfocusedBackground is applied even with the tab focused #23859

Closed
opened 2026-01-31 08:54:31 +00:00 by claunia · 2 comments
Owner

Originally created by @AdrianoCahete on GitHub (Dec 5, 2025).

Windows Terminal version

1.24.2812.0 (preview)

Windows build number

10.0.26200.0

Other Software

No response

Steps to reproduce

Create a new theme like this:

{
      "name": "Dark+",
      "tab": {
        "background": "#71fc14",
        "iconStyle": "default",
        "showCloseButton": "never",
        "unfocusedBackground": "#1616165b"
      },
      "tabRow": {
        "background": "#313131b0",
        "unfocusedBackground": "#9797972f"
      },
      "window": {
        "applicationTheme": "dark",
        "experimental.rainbowFrame": false,
        "frame": null,
        "unfocusedFrame": null,
        "useMica": false
      }
    }
  ],

The colors visually:

Image

Expected Behavior

That tabRow.background (active) use the color the way is defined, like this:

Image

Actual Behavior

Actual behavior is that the tab.background receives the tab.unfocusedBackground color too.

The color is just fully used if unfocusedBackground has an alpha of 0% as: "unfocusedBackground": "#16161600"
Any changes in the alpha of unfocusedBackground, applies to focused tab color:

Focused full green / unfocused with alpha as 00 (0%):

"tab": {
        "background": "#71fc14",
        "unfocusedBackground": "#16161600"
      },
Image

Focused is the same (green) / unfocused with alpha as FF (100%)

"tab": {
        "background": "#71fc14",
        "unfocusedBackground": "#161616FF"
      },
Image

Focused is the same (green) / unfocused with alpha as FF (50%)

"tab": {
        "background": "#71fc14",
        "unfocusedBackground": "#16161680"
      },
Image
Originally created by @AdrianoCahete on GitHub (Dec 5, 2025). ### Windows Terminal version 1.24.2812.0 (preview) ### Windows build number 10.0.26200.0 ### Other Software _No response_ ### Steps to reproduce Create a new theme like this: ``` { "name": "Dark+", "tab": { "background": "#71fc14", "iconStyle": "default", "showCloseButton": "never", "unfocusedBackground": "#1616165b" }, "tabRow": { "background": "#313131b0", "unfocusedBackground": "#9797972f" }, "window": { "applicationTheme": "dark", "experimental.rainbowFrame": false, "frame": null, "unfocusedFrame": null, "useMica": false } } ], ``` The colors visually: <img width="315" height="192" alt="Image" src="https://github.com/user-attachments/assets/0b9b716e-2425-477f-a3eb-f6c749351f65" /> ### Expected Behavior That ` tabRow.background` (active) use the color the way is defined, like this: <img width="784" height="34" alt="Image" src="https://github.com/user-attachments/assets/ef828d36-db1d-4a7a-b393-ee1261feb15b" /> ### Actual Behavior Actual behavior is that the ` tab.background` receives the `tab.unfocusedBackground` color too. The color is just fully used if `unfocusedBackground` has an alpha of 0% as: `"unfocusedBackground": "#16161600"` Any changes in the alpha of `unfocusedBackground`, applies to focused tab color: ## Focused full green / unfocused with alpha as `00` (0%): ``` "tab": { "background": "#71fc14", "unfocusedBackground": "#16161600" }, ``` <img width="262" height="55" alt="Image" src="https://github.com/user-attachments/assets/6c2773b2-1531-4bcb-a49c-8265afc046bc" /> ## Focused is the same (green) / unfocused with alpha as `FF` (100%) ``` "tab": { "background": "#71fc14", "unfocusedBackground": "#161616FF" }, ``` <img width="256" height="52" alt="Image" src="https://github.com/user-attachments/assets/ff0c209d-6db7-4907-8547-084d1a869add" /> ## Focused is the same (green) / unfocused with alpha as `FF` (50%) ``` "tab": { "background": "#71fc14", "unfocusedBackground": "#16161680" }, ``` <img width="253" height="51" alt="Image" src="https://github.com/user-attachments/assets/572ccc30-660a-49c8-9569-fe2f1e9a3764" />
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 08:54:31 +00:00
Author
Owner

@DHowett commented on GitHub (Dec 10, 2025):

This looks like a /duplicate of #19343, which was fixed in #19424 and will be coming out in a servicing release soon.

@DHowett commented on GitHub (Dec 10, 2025): This looks like a /duplicate of #19343, which was fixed in #19424 and will be coming out in a servicing release soon.
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Dec 10, 2025):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@microsoft-github-policy-service[bot] commented on GitHub (Dec 10, 2025): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! <!-- Policy app identification https://img.shields.io/static/v1?label=PullRequestIssueManagement. -->
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23859