unfocusedBackground being used in the active tab color #23607

Closed
opened 2026-01-31 08:47:05 +00:00 by claunia · 4 comments
Owner

Originally created by @fabianoatunorg on GitHub (Sep 12, 2025).

Originally assigned to: @carlos-zamora on GitHub.

Windows Terminal version

1.23.12371.0

Windows build number

10.0.26100.6584

Other Software

No response

Steps to reproduce

Define the theme below:

"themes": 
[
    {
        "name": "Snazzy",
        "tab": 
        {
            "background": "#00FF00",
            "iconStyle": "default",
            "showCloseButton": "hover",
            "unfocusedBackground": "#F00"
        },
        "tabRow": 
        {
            "background": "#20212B",
            "unfocusedBackground": "#20212B"
        },
        "window": 
        {
            "applicationTheme": "dark",
            "experimental.rainbowFrame": false,
            "frame": "#20212B",
            "unfocusedFrame": "#20212B",
            "useMica": false
        }
    }
]

Expected Behavior

Version 1.22.12111.0 uses the color defined in tab.background as the color of the active tab.

Image

Actual Behavior

Version 1.23.12371.0 uses the color defined in tab.unfocusedBackground as the color of the active tab.

Image

The same is happening in 1.24.2372.0.

Image
Originally created by @fabianoatunorg on GitHub (Sep 12, 2025). Originally assigned to: @carlos-zamora on GitHub. ### Windows Terminal version 1.23.12371.0 ### Windows build number 10.0.26100.6584 ### Other Software _No response_ ### Steps to reproduce Define the theme below: ```json "themes": [ { "name": "Snazzy", "tab": { "background": "#00FF00", "iconStyle": "default", "showCloseButton": "hover", "unfocusedBackground": "#F00" }, "tabRow": { "background": "#20212B", "unfocusedBackground": "#20212B" }, "window": { "applicationTheme": "dark", "experimental.rainbowFrame": false, "frame": "#20212B", "unfocusedFrame": "#20212B", "useMica": false } } ] ``` ### Expected Behavior Version 1.22.12111.0 uses the color defined in `tab.background` as the color of the active tab. <img width="2400" height="1488" alt="Image" src="https://github.com/user-attachments/assets/47864fc0-65dd-42bf-95ad-68919abdd6d2" /> ### Actual Behavior Version 1.23.12371.0 uses the color defined in `tab.unfocusedBackground` as the color of the active tab. <img width="2400" height="1488" alt="Image" src="https://github.com/user-attachments/assets/2c5fab1b-955d-4085-b318-627315f75503" /> The same is happening in 1.24.2372.0. <img width="2400" height="1668" alt="Image" src="https://github.com/user-attachments/assets/b31925ac-e242-4dcf-9fb8-a964fd3b44d7" />
claunia added the Issue-BugNeeds-Tag-FixProduct-TerminalArea-Theming labels 2026-01-31 08:47:05 +00:00
Author
Owner

@DHowett commented on GitHub (Oct 1, 2025):

@carlos-zamora spoke up and said it was probably his fault.

@DHowett commented on GitHub (Oct 1, 2025): @carlos-zamora spoke up and said it was probably his fault.
Author
Owner

@carlos-zamora commented on GitHub (Oct 1, 2025):

Yeah, I suspect this is related to #18109 and #18306. I'm familiar with that part of the code so I can take a look.

@carlos-zamora commented on GitHub (Oct 1, 2025): Yeah, I suspect this is related to #18109 and #18306. I'm familiar with that part of the code so I can take a look.
Author
Owner

@thnee commented on GitHub (Oct 14, 2025):

Seems to me like this problem is not fixed, all the colors are completely wrong.

I am on the latest version 1.23.12811.0.

This is my test theme:

        {
            "name": "Testing",
            "tab": 
            {
                "background": "#FF0000FF",
                "iconStyle": "default",
                "showCloseButton": "never",
                "unfocusedBackground": "#0000FFFF"
            }
        }

This is the current result, and this is not expected:

Tab is selected
Blue background with red border.
Tab is selected and mouse is hovering it
Blue background with red border.
Tab is selected and mouse is hovering it and mouse is clicking it
Blue background with red border.
Tab is not selected
Blue background.
Tab is not selected and mouse is hovering it
Background is a mix of red and blue resulting in some shade of brown.
Tab is not selected and mouse is hovering it and mouse is clicking it
Red background.

IIRC this is how it was working before, and this is expected:

Tab is selected
Red background.
Tab is selected and mouse is hovering it
Red background.
Tab is selected and mouse is hovering it and mouse is clicking it
Red background.
Tab is not selected
Blue background.
Tab is not selected and mouse is hovering it
Red background.
Tab is not selected and mouse is hovering it and mouse is clicking it
Red background.

@thnee commented on GitHub (Oct 14, 2025): Seems to me like this problem is not fixed, all the colors are completely wrong. I am on the latest version 1.23.12811.0. This is my test theme: ``` { "name": "Testing", "tab": { "background": "#FF0000FF", "iconStyle": "default", "showCloseButton": "never", "unfocusedBackground": "#0000FFFF" } } ``` This is the current result, and this is not expected: **Tab is selected** Blue background with red border. **Tab is selected and mouse is hovering it** Blue background with red border. **Tab is selected and mouse is hovering it and mouse is clicking it** Blue background with red border. **Tab is not selected** Blue background. **Tab is not selected and mouse is hovering it** Background is a mix of red and blue resulting in some shade of brown. **Tab is not selected and mouse is hovering it and mouse is clicking it** Red background. IIRC this is how it was working before, and this is expected: **Tab is selected** Red background. **Tab is selected and mouse is hovering it** Red background. **Tab is selected and mouse is hovering it and mouse is clicking it** Red background. **Tab is not selected** Blue background. **Tab is not selected and mouse is hovering it** Red background. **Tab is not selected and mouse is hovering it and mouse is clicking it** Red background.
Author
Owner

@DHowett commented on GitHub (Oct 14, 2025):

Thanks for confirming. The pull request which fixed this bug was merged five days ago, but the release build known as 1.23.12811 was produced six days ago. Unfortunately, it does follow that you would not have the fix.

@DHowett commented on GitHub (Oct 14, 2025): Thanks for confirming. The pull request which fixed this bug was merged five days ago, but the release build known as 1.23.12811 was produced six days ago. Unfortunately, it _does_ follow that you would not have the fix.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23607