microsoft / microsoft/vscode

Custom style for titleBar.inactiveBackground not applied when window was never active

Open
#325,418 2 comments 0 reactions 1 assignee Claimed by @benibenj View on GitHub
bug
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

Type: Bug

To be able to easier distinguish multiple open VSCode windows for different workspaces I added the following style customization to each of their workspace configs:

Left window `#00aaff`:
```json
"workbench.colorCustomizations": {
"titleBar.inactiveBackground": "#00aaff",
"titleBar.inactiveForeground": "#666"
}
```
Right window `#6c78af`:
```json
"workbench.colorCustomizations": {
"titleBar.inactiveBackground": "#6c78af",
"titleBar.inactiveForeground": "#f89c0e"
}
```
But the style is only applied when the window was active at some time, if I restart VSCode with multiple windows open, then it uses the default style instead for those windows that were never active.

I'm using Ubuntu 26.04 and this is the Overview for the open windows you get when pressing the Meta key.

After startup, right window never activated:
Image

After switching to the second window and pressing Meta key again the color `#6c78af` is correct:
Image

VS Code version: Code 1.128.0 (fc3def6774c76082adf699d366f31a557ce5573f, 2026-07-07T15:14:24-07:00)
OS version: Linux x64 7.0.0-27-generic
Modes:

System Info

|Item|Value|
|---|---|
|CPUs|AMD Ryzen 9 7950X3D 16-Core Processor (32 x 4982)|
|GPU Status|2d_canvas: enabled
GPU0: VENDOR= 0x1002 [Google Inc. (AMD)], DEVICE=0x744c [ANGLE (AMD, AMD Radeon RX 7900 GRE (radeonsi navi31 ACO), OpenGL ES 3.2 Mesa 26.0.3-1ubuntu1)], DRIVER_VENDOR=Mesa, DRIVER_VERSION=26.0.3 *ACTIVE*
Machine model name:
Machine model version:
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgpu: enabled
webgpu_on_vk_via_gl_interop: disabled_off
webnn: disabled_off|
|Load (avg)|1, 1, 1|
|Memory (System)|61.50GB (30.56GB free)|
|Process Argv|--crash-reporter-id 8d695076-1d4c-4126-bda0-b8d6cd061db2|
|Screen Reader|no|
|VM|0%|
|DESKTOP_SESSION|ubuntu|
|XDG_CURRENT_DESKTOP|ubuntu:GNOME|
|XDG_SESSION_DESKTOP|ubuntu|
|XDG_SESSION_TYPE|wayland|
Extensions (19)

Name|Identifier|Author|Version
---|---|---|---
TypeScript + Webpack Problem Matchers|amodio.tsl-problem-matcher|amodio|0.6.2
PHP Intelephense|bmewburn.vscode-intelephense-client|bmewburn|1.18.5
ESLint|dbaeumer.vscode-eslint|dbaeumer|3.0.24
GitLens — Git supercharged|eamodio.gitlens|eamodio|18.3.0
Prettier - Code formatter|esbenp.prettier-vscode|esbenp|12.4.0
Container Tools|ms-azuretools.vscode-containers|ms-azuretools|2.4.5
Python Debugger|ms-python.debugpy|ms-python|2026.6.0
Python|ms-python.python|ms-python|2026.4.0
Pylance|ms-python.vscode-pylance|ms-python|2026.2.1
Python Environments|ms-python.vscode-python-envs|ms-python|1.36.0
CMake Tools|ms-vscode.cmake-tools|ms-vscode|1.23.52
C/C++ DevTools|ms-vscode.cpp-devtools|ms-vscode|0.5.13
C/C++|ms-vscode.cpptools|ms-vscode|1.32.2
C/C++ Extension Pack|ms-vscode.cpptools-extension-pack|ms-vscode|1.5.1
Hex Editor|ms-vscode.hexeditor|ms-vscode|1.11.1
XML|redhat.vscode-xml|redhat|0.29.3
ShellCheck|timonwong.shellcheck|timonwong|0.39.5
Twig|whatwedo.twig|whatwedo|1.0.2
PHP Debug|xdebug.php-debug|xdebug|1.40.1

A/B Experiments

```
vsliv368cf:30146710
pythonvspyt551cf:31249601
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
63221493:31336333
envsactivate1:31538736
cloudbuttont:31379625
42190218_ostrepl:31403339
bj468946:31457056
ddidt:31399633
ec5jj548:31422691
cp_cls_t_966_ss:31526232
4je02754:31466945
8hhj4413:31478653
cp_cls_c_1081:31454833
conptydll_true:31498968
e9c30283:31461165
test_treatment2:31471001
46204921:31447328
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
chat:31457767
7e187181:31503455
ghj88844:31499326
h08i8180_copy:31475368
ec1eg703:31520046
ddid_c:31478207
hmra_i5g22:31518061
ie3bb177:31543534
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
db5d2638:31499441
jb_cp_cls_t_632:31543129
748c7209:31512887
32d76977:31512328
ha629193:31508444
cdk-lw-on:31524445
f9bf7985:31543584
a1ije391_t:31540920
hgf2d445:31529595
41836166:31537719
jbcp_cls_pctr_t:31531130
61138546:31518536
cp_intellij_t_nes:31548657
d7b18187:31526828
h561g132:31533256
sessions_5:31532894
ihg5j128:31534457
jh7i3328:31546038
7g2b5551:31542111
sandbox-ui-on-2:31543161
nes-nc-ctrl:31546581

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.