feat(ui): add borderless chrome mode#481
Open
eduwass wants to merge 1 commit into
Open
Conversation
Replace drawn borders and separators with filled background bands derived from the active theme. Add a theme surface elevation ladder (code, contextBand, sidebar, sectionHeader, overlay, note, selection) so file headers, the unchanged-lines band, popups, and comment boxes stay visually distinct without lines. Route chrome through chromeSurfaceBg/overlaySurfaceStyle helpers and a ChromeSeparator primitive; the divider reveals an accent rule only while resizing. Toggle via the View menu, the borderless config key, or --borderless. A surfaces test asserts adjacent ladder levels stay distinct across every bundled theme.
Contributor
|
PR author is not in the allowed authors list. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds an opt-in "borderless" chrome mode that replaces drawn borders and
separators with filled background bands derived from the active theme. The diff
still reads as distinct regions — file headers, the unchanged-lines band,
sidebar, popups, and comment boxes — but through layered surfaces instead of
lines, for a cleaner, modern look.
Bordered chrome remains the default; nothing changes unless you opt in.
How to toggle
--borderless/--no-borderlessCLI flagsborderlessconfig keyShift+Bkeybinding (listed in the?help)Demo
2026.06.23.17.11.19.mp4
How it works
Each theme gains a derived surface elevation ladder (
ChromeSurfaces)mapped from its existing semantic palette (editor / panel / titlebar tokens), so
authored themes look native and adjacent levels stay visually distinct. A small
set of primitives centralizes the border-vs-band decision so the choice never
scatters across components:
chromeSurfaceBg(theme, level)— resolve a surface background by ladder leveloverlaySurfaceStyle(theme)— bordered box vs filled band for popups/dialogsrailGlyph(theme)/ChromeSeparator— diff rails and separatorsTouched chrome: menu bar, status bar, file-section headers, sidebar, diff rails,
menus/dialogs/popups, agent comment cards, and the pane divider (which still
reveals a rule while dragging to resize).
Tests
on every bundled theme
Shift+Bstays out of the page-up alias)