Skip to main content

What padding and content widths do the inner popups carry?

2026-12-02

TL;DR — 24 px is the number: the settings content pane takes 24 px side gutters with 24 px above and 16 px below (its page root carries 16 px today, the tightest value any surveyed source ships), groups separate at 24 px over 8 px row clusters, and the control column grows to 320 px; the wizard takes 24 px padding with its column clamped to 600 px (libadwaita's AdwClamp default); the small dialog keeps its 440 px width but takes Fluent's ContentDialogPadding — 24,18,24,24 — with 8 px inside text clusters and 24 px above the button row. Every number is a code constant beside its view: the style engine's settings nodes resolve background and color only and carry no padding slot. The one lever this record does not pull is the surface shape — the "covers the terminal whole" popup is what feels oversized, and the Kit's own floating-card dialog (inset 16 px from the viewport, a tenth of the height down, width-capped) is the precedent-backed alternative, but changing it reverses the in-surface-popups ruling and is the owner's.

Findings​

  1. The platforms converge on ≥16 px for dialog padding and 12–24 px for settings-page margins. GNOME's current HIG prescribes no pixels for dialogs or preference windows — the numbers live in libadwaita's stylesheet: an AdwPreferencesPage wraps its content in margin: 24px 12px (24 px vertical, 12 px horizontal) with border-spacing: 24px between preference groups and 6px inside one, single-line rows at a 34 px minimum height (GNOME/libadwaita, src/stylesheet/widgets/_preferences.scss, read 2026-12-02); its floating sheets sit inset 30px from the window sides (_dialogs.scss, the dialog.bottom-sheet block), and an AdwClamp — the standard content-width cap on preference pages — defaults to a 600 px maximum with a 400 px tightening threshold (adw-clamp.c, the maximum-size property default, read 2026-12-02). elementary, the closest small-desktop convention, requires "a 12px (minimum) space between any widgets and the window's border" ("Creating Layouts", docs.elementary.io/hig/widgets/creating-layouts, read 2026-12-02). macOS's current layout page prescribes no pixel margins (safe areas only); the classic Aqua guidance its era shipped was 20 px window side/bottom margins, 12 px around separators, 8 px between controls, 24 px alert side margins ("Layout Guidelines", the archived Apple HIG chapter, and "A Simple Preferences Window", 20-pixel margin examples — dated 2005-era text, read 2026-12-02). Windows Fluent 2 runs a 4 epx grid with 8 epx between controls, 12 epx between content areas, 16 epx "between surface and edge text" ("Content layout and spacing", learn.microsoft.com — ms.date 2026-10-13, fetched 2026-12-02), and its dialog template ships ContentDialogPadding 24,18,24,24 with ContentDialogMinWidth / MaxWidth = 320 / 548 and an 8 px button gap (microsoft/microsoft-ui-xaml token values, quoted via the Uno-platform mirror of ContentDialog.xaml and the Common token tables, read 2026-12-02).

  2. COSMIC's own dialog is 24 px-padded at the standard density. libcosmic's Dialog widget destructures the theme spacing and builds the surface as container(...).padding(space_m) .width(dialog.width.unwrap_or(Length::Fixed(570.0))), with space_l between content and buttons, space_s between controls, and space_xxs inside the button row (pop-os/libcosmic, src/widget/dialog.rs, read 2026-12-02). The spacing values are the theme's cosmic_theme::Spacing defaults: space_xxs = 8, space_s = 16, space_m = 24, space_l = 32 at Density::Standard, with a Compact arm at 4/8/16/24 (cosmic-theme/src/model/spacing.rs at libcosmic 66263a76, the impl Default and From<Density>, read 2026-12-02 — the standalone pop-os/cosmic-theme repo no longer carries the file). So a dialog on COSMIC as shipped is 24 px inside and 570 px wide at the standard density, 16 px inside at Compact; user theme files pick one of the three densities.

  3. The two settings surfaces in the GPUI orbit ship 24–32 px gutters. VS Code's settings editor caps its content at max-width: 1400px; margin: auto, pads the header and every setting row padding-left: 24px; padding-right: 24px, and gives each item padding: 12px 14px 18px (26 px bottom for bool/list items); its controls are a 320 px select and a 420 px text input, 200 px minimum for numbers (microsoft/vscode, src/vs/workbench/contrib/preferences/browser/media/settingsEditor2.css, read 2026-12-02). Zed's settings window fixes SIDEBAR_WIDTH = 226 px beside CONTENT_MIN_WIDTH = 400 px (window floor 626 px) and wraps every setting row in .px_8() — 32 px of side padding at the GPUI rem scale — with pt_4() (16 px) and pb_4()/pb_10() (16/40 px) vertical (zed-industries/zed, crates/settings_ui/src/settings_ui.rs, read 2026-12-02 from main). Zed's Modal component is tighter — header px(12)/pt(8)/pb(4) px, container gap 8 px — because it is a small floating surface, not a settings page (crates/ui/src/components/modal.rs, values via DynamicSpacing::Base12/Base08/Base04, whose scale is 0/1/2/3/4/6/8/12/16/20/24/32/40/48 px ±4 by density, crates/ui/src/styles/spacing.rs, read 2026-12-02).

  4. The toolkit DropTerm carries already agrees. gpui-component 0.9.1's dialog surface defaults to Edges::all(px(16.)) padding, sits inset margin = spacing_tokens().lg (= 16 px) from the viewport edges, offsets a tenth of the viewport height down, and caps its width at the viewport minus that margin (carried/gpui-component/src/dialog/dialog.rs:667, :694, the paddings default and the width.min(...) clamp, read 2026-12-02); its composite settings page header is .p_4().gap_3() (16/12 px) (src/setting/page.rs:245-246), and its SpacingTokens scale is 2/4/8/12/16/24/32 px (gpui-base 0.9.1, src/theme_tokens.rs:149-155). GPUI's own spacing utilities are the Tailwind rem ladder — the number times 4 px at the default rem size (p_4 = 16 px, px_6 = 24 px, h_10 = 40 px), from the style_helpers table (gpui-pre-macros 0.3.12, src/styles.rs:935-1065, read 2026-12-02).

  5. The old GNOME numbers are superseded, and the dated sources say so. The 2010-era HIG 2.x prescribed "a general padding of 12 pixels ... between the contents of a dialog window and the window borders" in 6 px increments (GNOME wiki archive, Design/HIG/Planning/Layout); current libadwaita ships 24 px vertical margins on preference pages and 24 px dialog padding inheritors — the 12 px that survives is the horizontal margin only (finding 1). elementary keeps 12 px as a floor, not a target.

What DropTerm has today​

At 17c47e4d (2026-12-01). The three popups are siblings of the terminal's column inside the drop-down surface (app_shell.rs::popup_layer/wizard_layer/about_layer), each drawn absolute().inset_0() over the terminal whole — the settings root at settings.rs:3395-3396, the wizard's at onboarding.rs:1084-1085. The surface is the drop-down's: 100% of the screen's width (core/config.rs:28) and 50% of its height for fresh installs (:21, the in-surface-popups ruling landed). Inside:

  • Settings (dropterm/src/settings.rs): a 40 px header with 16 px side padding (h_10().px_4(), :3551-3556); a 240 px nav column with pt_2()/pb_4() (:3615-3627); a content pane with no padding of its own (v_flex().flex_1().h_full().min_w_0().min_h_0() .overflow_y_scroll(), :3332-3341); and the page root wrapping every page at gap_4().p_4() — 16 px is the only air the content has (:1595-1602; the earlier "no outer padding" reading predates this wrapper). The row control column is CONTROL_COLUMN_PX = 208 px (:2108), the scheme menu 320 px (pickers.rs:204). The style-engine nodes settings and settings-page resolve background and color only (core/style_engine.rs:292-293, :922, :935) — no padding slot exists.
  • Wizard (dropterm/src/onboarding.rs): the body column is gap_2().p_4() — 16 px padding, 8 px clusters (:1095-1100); text at 13/15/16 px; no width cap on the column.
  • Dialog slot (dropterm/src/dialog_slot.rs): a panel at .mt(px(48.)).w(px(440.)).p(px(16.)).gap(px(10.)) with a uniform 10 px gap between title, body, and buttons (:522-538).

Recommendation​

Three number sets, each the widest value the narrowest source allows. All land as code constants beside their views (the CONTROL_COLUMN_PX precedent); if the style engine ever grows a padding slot, the settings-page node is where it attaches — but that is a slot-type change (SE4's shape), and nothing here needs it.

  • (a) Settings popup. Content pane: 24 px side gutters, 24 px top, 16 px bottom (px(24.)/px(16.), or px_6().pt_6().pb_4() on the rem ladder). Grade: 24 is VS Code's row-and-header gutter, Fluent's surface-edge gutter is 16, libadwaita's preference margins are 24 vertical/12 horizontal, COSMIC's space_m is 24 — the pane's 16 px today is the floor of the whole survey and reads as the sprawl the owner names. Page rhythm: 24 px between groups (libadwaita's group border-spacing: 24px), keeping the 8 px clusters inside a row (Fluent's 8 px control spacing, COSMIC space_xxs, Zed Base08). Nav column: 240 px stays (Zed ships 226 px; VS Code's table of contents sits in the same band; the 640 px dropdown threshold in core/popup.rs:24 is keyed to it). Control column: 320 px maximum (VS Code's select is 320 px and DropTerm's scheme menu already is); the current 208 px is narrower than any surveyed control column and the 640 px-threshold arithmetic moves with it if changed. Optional: a 1400 px centered content cap (VS Code's) — unreachable inside a terminal column, so cosmetic.
  • (b) Wizard. Body padding 24 px (p_6()); column clamped to 600 px, centered. Grade: 24 is COSMIC's own dialog padding at the standard density and Fluent's dialog number; 600 px is libadwaita's AdwClamp default — the standard single-column cap. Keep gap_2().
  • (c) Small in-surface dialog. Keep w 440 (inside Fluent's 320–548 band, under COSMIC's 570). Padding 24 px sides, 18 px top, 24 px bottom — Fluent's ContentDialogPadding 24,18,24,24 verbatim, deliberately bottom-heavy. Title/body clusters gap 8 px; 24 px between body and button row (Fluent's ContentDialogCommandSpaceMargin 0,24,0,0). Today's uniform 10 px and 16 px padding are close but bottom-light.

Rejected along the way:

  • 12 px everywhere (old GNOME dialog border): survives only as libadwaita's horizontal preference margin and elementary's floor; every settings-genre surface in the survey ships more. Rejected.
  • 32 px gutters (Zed's): tuned to a full desktop settings window (226 px sidebar, 400 px content minimum). On a popup over a terminal at half-screen height it eats rows. Rejected for the pane; noted as the upper bound.
  • 16 px everywhere (the status quo, and the Kit dialog's own default, and COSMIC's Compact density): the compact reading of every scale — but the complaint is sprawl, and Compact is a density choice the OS makes, not a default to bake. Rejected as the target; 16 px stays as the popup's own floor value.
  • A floating card instead of the full-cover sheet (the Kit Dialog's shape: 16 px viewport margin, a tenth of the height down, width-capped; GNOME's floating sheets take 30 px side margins): the precedent-backed answer to "too big," and the only lever that changes how large the popups are rather than how their content sits. Out of scope here — it reverses the in-surface-popups record's R1 ("the popup covers the terminal whole"), an owner ruling. Recorded as the adjacent question, not a recommendation.
  • Padding in the style engine now: the settings nodes carry no padding slot and no plugin asks for one; adding a slot type for a static set of numbers is machinery ahead of its use. Rejected for this pass.

Unverified​

  • Obsidian's settings-modal paddings — the 2026-11-23 record's layout reference — were never measured: closed source, no primary CSS read. The recommendation rests on VS Code, Zed, libadwaita, Fluent, and COSMIC instead.
  • Warp's and iTerm2's preference-window paddings are unmeasured (Warp's renderer is not open in its repo; iTerm2 is stock AppKit whose numbers are the classic Aqua set). The terminal-peers leg of the survey is VS Code and Zed only.
  • Which COSMIC density a given user runs is per-theme config (cosmic-config stores spacing in the theme files); the 24 px pick assumes Standard. DropTerm reads no COSMIC theme spacing, so the number is fixed either way.
  • macOS numbers come from the archived Aqua-era HIG chapter; the current layout page prescribes no margins. If DropTerm's macOS surface is tuned, the current HIG's safe-area stance is what Apple ships today.

Sources​

  • GNOME/libadwaita, main, src/stylesheet/widgets/_preferences.scss (the margin: 24px 12px, group border-spacing) and _dialogs.scss (floating-sheet 30 px side margins); src/adw-clamp.c (maximum-size default 600, tightening 400) — read 2026-12-02.
  • GNOME wiki archive, Design/HIG/Planning/Layout — the 2010-era 12 px dialog border and 6 px ladder, quoted as superseded — read 2026-12-02.
  • elementary HIG, "Creating Layouts" — the 12 px minimum window margins — read 2026-12-02.
  • Apple, "Layout Guidelines" (archived HIG chapter) and developer.apple.com/design/human-interface-guidelines/layout (current; no pixel margins) — read 2026-12-02.
  • Microsoft Learn, "Content layout and spacing" (ms.date 2026-10-13) — the 8/12/16 epx spacing table — and the microsoft-ui-xaml token values (ContentDialogPadding 24,18,24,24, ContentDialogMinWidth/MaxWidth 320/548, button gap 8), read via the Uno ContentDialog.xaml mirror and the Fluent 2 token tables — fetched 2026-12-02.
  • pop-os/libcosmic, master, src/widget/dialog.rs (padding space_m, width 570) and cosmic-theme/src/model/spacing.rs at 66263a76 (the Spacing defaults and the Density arms) — read 2026-12-02.
  • microsoft/vscode, main, src/vs/workbench/contrib/preferences/browser/media/settingsEditor2.css — the 1400 px cap, 24 px gutters, item paddings, control widths — read 2026-12-02.
  • zed-industries/zed, main (and the local checkout at e5be9608dd, 2026-11-17), crates/settings_ui/src/settings_ui.rs (SIDEBAR_WIDTH 226, CONTENT_MIN_WIDTH 400, row px_8/pt_4/pb_4), crates/ui/src/components/modal.rs and crates/ui/src/styles/spacing.rs (the DynamicSpacing scale) — read 2026-12-02.
  • The carried gpui-component 0.9.1 (carried/gpui-component/): src/dialog/dialog.rs (Edges::all(px(16.)), spacing_tokens().lg margin, the width clamp), src/setting/page.rs (p_4().gap_3()); gpui-base 0.9.1 src/theme_tokens.rs (SpacingTokens 2/4/8/12/16/24/32); gpui-pre-macros 0.3.12 src/styles.rs (the rem spacing table) — read 2026-12-02.
  • DropTerm at 17c47e4d (2026-12-01): dropterm/src/settings.rs (:1595-1602 page root, :2108 control column, :3332-3341 pane, :3551-3556 header, :3615-3627 nav column), dropterm/src/dialog_slot.rs:522-538, dropterm/src/onboarding.rs: 1080-1100, dropterm/src/core/style_engine.rs:292-293/:922, dropterm/src/core/popup.rs:24, dropterm/src/core/config.rs:21, :28 — read back 2026-12-02.