Skip to content

Modern UI (floating-panels) forces status bar background transparent, breaking statusBar.background color customizations #327284

Closed as duplicate

Description

Does this issue occur when all extensions are disabled?: Yes (reproducible with pure settings.json, no extensions)

  • VS Code Version: 1.131.0-insider (commit 29215ba85809234979befc6b0d1fb4b0ab884383)
  • OS Version: macOS 15.7.7 (arm64)

Summary

When the workbench.experimental.modernUI experiment is active (staged rollout — experiment: { mode: "auto" }), the workbench switches to the floating-panels layout, which forces the status bar background to transparent !important. This overrides any user or extension workbench.colorCustomizations for statusBar.background, so the customization is applied but never visible.

This silently breaks status bar coloring for users and for popular extensions that rely on statusBar.background — e.g. Peacock (cc John Papa (@johnpapa)) and Lantern.

Steps to Reproduce

  1. On an Insiders build enrolled in the workbench.experimental.modernUI experiment (or set "workbench.experimental.modernUI": true).
  2. Add to settings.json:
    "workbench.colorCustomizations": {
      "statusBar.background": "#ff00ff"
    }
  3. Observe the status bar stays the theme default (transparent floating bar) instead of magenta.
  4. Set "workbench.experimental.modernUI": false → magenta appears as expected.

Root cause

The floating-panels stylesheet injects an !important rule that beats the inline background the theming layer sets on the status bar part:

.monaco-workbench.floating-panels .part.activitybar,
.monaco-workbench.floating-panels .part.statusbar,
.monaco-workbench.floating-panels .part.titlebar {
  background-color: transparent !important;
  border-color: transparent !important;
}

Inspecting the live DOM confirms the customization is applied but overridden:

  • <footer id="workbench.parts.statusbar"> → inline style background-color: rgb(255, 0, 255) (customization honored)
  • getComputedStyle(...).backgroundColor → rgba(0, 0, 0, 0) (transparent, due to the !important rule)
  • Workbench classes include floating-panels style-override

In modern UI the status bar part is only ever tinted through an internal "style override" path, using statusBar.debuggingBackground at 30% opacity:

.monaco-workbench.floating-panels .part.statusbar.has-style-override {
  background-color: color-mix(in srgb, var(--vscode-statusBar-debuggingBackground) 30%, transparent) !important;
}

There is no equivalent path for the normal statusBar.background, and extensions cannot opt a part into has-style-override.

Impact / notes

  • Not a regression of the theme-color surface itself — statusBar.background etc. are unchanged between 1.130 stable and 1.131. The behavior change is purely the injected CSS in the floating-panels layout.
  • Status bar item backgrounds (e.g. statusBarItem.errorBackground, prominentBackground) still render, so item-based coloring is unaffected; only the whole-bar statusBar.background is suppressed.
  • Because this ships via staged experiment, affected users see it "spontaneously" break with no settings change, which makes it hard to diagnose.

Question / request

Is suppressing statusBar.background intended in modern UI? If so, could there be a supported way for users/extensions to color the floating status bar (e.g. honor statusBar.background via the same color-mix treatment, or a documented opt-in), so extensions like Peacock and Lantern can adapt?

Activity

  1. added
    bug
    on Jul 24, 2026
  2. vs-code-engineering commented on Aug 7, 2026

    @vs-code-engineering
    Contributor

    Sharing media and context from merged PR #329701 for verification:

    Honor contributed title, activity, and status bar colors while preserving the floating-card hierarchy.

    Some design notes:

    • An intentional design decision we're exploring is that the title bar color is now used as the app-shell backdrop and is visible through the gaps, while individual workbench surfaces retain their respective backgrounds.
    • We're intentionally not restoring titleBar.border, statusBar.border, or activityBar.border, since those separators result in an odd-looking design that conflicts with the unified background surface we're aiming for.

    Screenshots

    2026 Light/Dark

    Image Image

    Light/Dark (Visual Studio)

    Image Image

    Quiet Light

    Image

    Monokai Dimmed

    Image

    Red

    Image

    High Contrast Light/Dark

    Image Image

    Atom One Dark

    Image

    Dracula Theme

    Image

    GitHub Light/Dark

    Image Image

    Peacock Customizations

    Image Image

    Source PR: #329701

  3. locked and limited conversation to collaborators on Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugmodernizationthemes

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions