Skip to content

unfocusedBackground being used in the active tab color #19343

Closed

Description

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

Activity

  1. added
    Issue-BugIt either shouldn't be doing this or needs an investigation.
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Sep 12, 2025
  2. DHowett commented on Oct 1, 2025

    @DHowett
    Member

    Carlos Zamora (@carlos-zamora) spoke up and said it was probably his fault.

  3. carlos-zamora commented on Oct 1, 2025

    @carlos-zamora

    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.

  4. added
    Area-ThemingAnything related to the theming of elements of the window
    and removed
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Oct 1, 2025
  5. added a commit that references this issue on Oct 9, 2025
    b62cad6
  6. thnee commented on Oct 14, 2025

    @thnee

    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.

  7. DHowett commented on Oct 14, 2025

    @DHowett
    Member

    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.

  8. added 2 commits that reference this issue on Nov 24, 2025
    2aeeef7
    77ee52b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area-ThemingAnything related to the theming of elements of the windowIssue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsProduct-TerminalThe new Windows Terminal.

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions