Skip to content

Title bar becomes hard to read when the window is inactive #303472

@zhujin917

Description

@zhujin917

In recent updates, the foreground color of title bar becomes too light to read when the window is inactive.
Image

And the older versions looked like this, just a little bit lighter than active status.
Image

I tried setting following properties in the settings.json, but it didn't help.

{
    "workbench.colorCustomizations": {
        "titleBar.inactiveForeground": "#fff"
    }
}

Then I found there is opacity: .3; of elements in title bar when the window is inactive.
Image

I don't know why Microsoft set this. In older versions, the foreground color is set directly with the style property.
Image

I strongly suggest not to set opacity of elements in title bar, for two reasons.

  1. The value of titleBar.inactiveForeground won't be reflected as the actual visual result.
  2. When the window is inactive, the foreground color of caption buttons will be #9d9d9d, which is different from other elements' foreground color #454545.
Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions