Skip to content

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

@AdrianoCahete

Description

@AdrianoCahete

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    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

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions