fix(workbench): main toolbar, tool window stripe and status bar metrics (#7829)

Main toolbar items get a 10px pitch and the dropdowns 10/6px insets with a 16px chevron; stripe buttons get 5px padding on both sides; the status bar is 34px with 4px widget hover insets, its breadcrumbs lifted 5px, and the islands keep a 3px inset above it. Language Services moves after the caret position in the status bar. Compact mode keeps its previous metrics.

Fixed-viewport e2e layouts (commit checks, project tree second click, main toolbar label compression next to the New Agent Task button) get room for the wider gaps and the taller status bar.

Co-authored-by: wildcatDownstairs <[email protected]>
Цей коміт міститься в:
LU XIANGRUIтаwildcatDownstairs authored and GitHub committed 2026-12-04 00:29:29 +08:00
1 джерело 4f2d85007b
коміт e666bb2e33
23 files changed
+115 -53

No files matched your search

+26 -2
Переглянути файл
@@ -345,11 +345,24 @@ html[data-os="windows"] {
/* Dialog window title bar (Settings): WebStorm's traffic lights centre 16px from the top. */
--h-dialog-titlebar: 32px;
--titlebar-tool-button: 30px;
/* MainToolbar.Icon.insets 6,5,4,5 (Islands): 5 + 5 between toolbar items, and the
buttons sit 1px below the bar's centre (top 6, bottom 4). */
--toolbar-item-gap: 10px;
--titlebar-pad-top: 2px;
/* main toolbar dropdowns: project, VCS branch, run configuration */
--h-toolbar-widget: 30px;
/* MainToolbar.Dropdown.borderInsets 5,10,5,6; AbstractToolbarCombo.iconTextGap 6 and
ToolbarComboButtonUI BEFORE_CHEVRON_GAP 2 before the 16px chevron. */
--toolbar-dropdown-pad-start: 10px;
--toolbar-dropdown-pad-end: 6px;
--toolbar-dropdown-gap: var(--space-1-5);
--toolbar-dropdown-chevron-gap: 2px;
/* tool window stripe button, icons only */
--stripe-icon-button: 30px;
--stripe-outer-padding: 4px;
/* StripeToolbar.Button.leftStripeIcon.padding 5,5,5,2: 5 to the window edge; on the island
side 2 plus the island's own border inset (Island.borderWidth 6 / 2 = 3). */
--stripe-outer-padding: 5px;
--stripe-inner-padding: 5px;
--h-header: 40px;
/* JBUI.CurrentTheme.ToolWindow.defaultHeaderHeight(): 41, no Islands override. */
--h-toolwindow-header: 41px;
@@ -357,7 +370,13 @@ html[data-os="windows"] {
--h-tab: 28px;
--h-row: 24px;
--h-list-row: 24px;
--h-statusbar: 30px;
/* WebStorm 2026.3 Islands with the navigation bar in the status bar: 34px, and the islands
end 3px above it (Island.borderWidth 6 / 2), the same inset they keep below the toolbar. */
--h-statusbar: 34px;
/* Status bar breadcrumbs sit 2.5px above the bar's middle in WebStorm 2026.3; compact mode's
StatusBar.Breadcrumbs.navBarInsets.compact 1,0,1,4 centres them. */
--statusbar-crumbs-lift: 5px;
--island-edge: 3px;
--h-navigationbar: 26px;
--h-field: 28px;
--h-button: 28px;
@@ -1599,7 +1618,12 @@ html[data-os="windows"] {
--h-row: 22px;
--h-list-row: 22px;
--h-statusbar: 24px;
--statusbar-crumbs-lift: 0px;
--island-edge: 2px;
--stripe-icon-button: 24px;
--stripe-outer-padding: 4px;
--stripe-inner-padding: 4px;
--titlebar-pad-top: 0px;
--h-field: 24px;
--h-button: 24px;
--fs-chrome: calc(var(--fs-ui) - 1px);