Skip to content

Modern UI: Update tab action background handling and enhance color customization - #330669

Merged
Lee Murray (mrleemurray) merged 6 commits into
mainfrom
mrleemurray/existing-white-lion
Aug 13, 2026
Merged

Lee Murray (mrleemurray) merged 6 commits into
mainfrom
mrleemurray/existing-white-lion

Conversation

@mrleemurray

@mrleemurray Lee Murray (mrleemurray) commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

This pull request enhances the Modern UI tab theming and styling in the editor, focusing on improved color customization, clearer separation of active/inactive/unfocused tab states, and better maintainability for shared tab styles. It also ensures that legacy color customizations are registered and tested, and updates documentation to reflect these changes.

image

Modern UI Tab Theming and Styling Improvements:

  • Added a comprehensive set of new CSS custom properties (variables) for editor tab states (active, inactive, unfocused, hover, borders, actions, etc.) to tabs.css and registered them in vscode-known-variables.json, enabling more granular and maintainable theming of editor tabs. [1] [2]
  • Updated tab fill, border, and action overlay styles to use the new variables, ensuring correct visual distinction between active, inactive, and unfocused tab states, including sticky/pinned tab borders and horizontal dividers. [1] [2] [3] [4]

Color Customization Integration:

  • Imported modernTabColorCustomizations.js in the editor contribution to ensure legacy color customizations are applied and aligned with the standard VS Code editor window.
  • Updated documentation (LAYOUT.md) to clarify the inclusion of both the shared tab stylesheet and the new color customization module for consistent appearance and fallback support.

Testing and Validation:

  • Added a test to verify that legacy Modern UI tab color customizations are correctly registered and generate the expected CSS, improving reliability and future-proofing. [1] [2] [3]

Resolves #330431

Copilot AI balanced review requested due to automatic review settings August 13, 2026 15:59
@mrleemurray
Lee Murray (mrleemurray) enabled auto-merge (squash) August 13, 2026 15:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds legacy tab color customization support to Modern UI tabs, including Agents window tabs.

Changes:

  • Maps legacy tab colors to Modern UI CSS variables.
  • Refines focused/unfocused tab and action styling.
  • Adds theme integration tests and documentation.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
build/lib/stylelint/vscode-known-variables.json Registers new CSS variables.
src/vs/sessions/LAYOUT.md Documents shared theming behavior.
src/vs/sessions/contrib/editor/browser/editor.contribution.ts Loads tab color customization support.
src/vs/sessions/contrib/editor/test/browser/editor.contribution.test.ts Tests Sessions registration.
src/vs/workbench/contrib/styleOverrides/browser/media/tabs.css Applies legacy-aware tab styling.
src/vs/workbench/contrib/styleOverrides/browser/styleOverrides.contribution.ts Registers the theming participant.
src/vs/workbench/contrib/styleOverrides/test/browser/styleOverrides.contribution.test.ts Tests legacy and modern customization precedence.
src/vs/workbench/services/themes/browser/modernTabColorCustomizations.ts Resolves legacy colors into Modern UI variables.
src/vs/workbench/services/themes/common/colorThemeData.ts Exposes explicit color customizations.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 5645c7b0 Current: 35c89fa4

Changed (2)

editor/editorTabBar/editorTabBar/ModernUIOn/TabActionLocationLeft/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/TabActionLocationLeft/Light
Before After
before after

90 insignificant change(s) omitted (≤20 px, Δ≤2). See CI logs for details.

@mrleemurray
Lee Murray (mrleemurray) merged commit 6ecc5b7 into main Aug 13, 2026
27 checks passed
@mrleemurray
Lee Murray (mrleemurray) deleted the mrleemurray/existing-white-lion branch August 13, 2026 16:41
@vs-code-engineering vs-code-engineering Bot added this to the 1.134.0 milestone Aug 13, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Sep 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Important color customizations are still ignored in modern UI mode

3 participants