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
-
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
AdwPreferencesPagewraps its content inmargin: 24px 12px(24 px vertical, 12 px horizontal) withborder-spacing: 24pxbetween preference groups and6pxinside 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 inset30pxfrom the window sides (_dialogs.scss, thedialog.bottom-sheetblock), and anAdwClamp— the standard content-width cap on preference pages — defaults to a 600 px maximum with a 400 px tightening threshold (adw-clamp.c, themaximum-sizeproperty 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 shipsContentDialogPadding 24,18,24,24withContentDialogMinWidth / MaxWidth = 320 / 548and an 8 px button gap (microsoft/microsoft-ui-xamltoken values, quoted via the Uno-platform mirror ofContentDialog.xamland the Common token tables, read 2026-12-02). -
COSMIC's own dialog is 24 px-padded at the standard density. libcosmic's
Dialogwidget destructures the theme spacing and builds the surface ascontainer(...).padding(space_m) .width(dialog.width.unwrap_or(Length::Fixed(570.0))), withspace_lbetween content and buttons,space_sbetween controls, andspace_xxsinside the button row (pop-os/libcosmic,src/widget/dialog.rs, read 2026-12-02). The spacing values are the theme'scosmic_theme::Spacingdefaults:space_xxs = 8,space_s = 16,space_m = 24,space_l = 32atDensity::Standard, with a Compact arm at 4/8/16/24 (cosmic-theme/src/model/spacing.rsat libcosmic66263a76, theimpl DefaultandFrom<Density>, read 2026-12-02 — the standalonepop-os/cosmic-themerepo 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. -
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 rowpadding-left: 24px; padding-right: 24px, and gives each itempadding: 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 fixesSIDEBAR_WIDTH = 226px besideCONTENT_MIN_WIDTH = 400px (window floor 626 px) and wraps every setting row in.px_8()— 32 px of side padding at the GPUI rem scale — withpt_4()(16 px) andpb_4()/pb_10()(16/40 px) vertical (zed-industries/zed,crates/settings_ui/src/settings_ui.rs, read 2026-12-02 frommain). Zed'sModalcomponent is tighter — headerpx(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 viaDynamicSpacing::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). -
The toolkit DropTerm carries already agrees. gpui-component 0.9.1's dialog surface defaults to
Edges::all(px(16.))padding, sits insetmargin = 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, thepaddingsdefault and thewidth.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 itsSpacingTokensscale is 2/4/8/12/16/24/32 px (gpui-base0.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 thestyle_helperstable (gpui-pre-macros0.3.12,src/styles.rs:935-1065, read 2026-12-02). -
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 withpt_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 atgap_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 isCONTROL_COLUMN_PX = 208px (:2108), the scheme menu 320 px (pickers.rs:204). The style-engine nodessettingsandsettings-pageresolve background and color only (core/style_engine.rs:292-293,:922,:935) — no padding slot exists. - Wizard (
dropterm/src/onboarding.rs): the body column isgap_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.), orpx_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'sspace_mis 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 groupborder-spacing: 24px), keeping the 8 px clusters inside a row (Fluent's 8 px control spacing, COSMICspace_xxs, ZedBase08). 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 incore/popup.rs:24is 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'sAdwClampdefault — the standard single-column cap. Keepgap_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'sContentDialogPadding 24,18,24,24verbatim, deliberately bottom-heavy. Title/body clusters gap 8 px; 24 px between body and button row (Fluent'sContentDialogCommandSpaceMargin 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
settingsnodes 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-configstores 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(themargin: 24px 12px, groupborder-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.date2026-10-13) — the 8/12/16 epx spacing table — and themicrosoft-ui-xamltoken values (ContentDialogPadding 24,18,24,24,ContentDialogMinWidth/MaxWidth 320/548, button gap 8), read via the UnoContentDialog.xamlmirror and the Fluent 2 token tables — fetched 2026-12-02. pop-os/libcosmic,master,src/widget/dialog.rs(paddingspace_m, width 570) andcosmic-theme/src/model/spacing.rsat66263a76(theSpacingdefaults and theDensityarms) — 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 ate5be9608dd, 2026-11-17),crates/settings_ui/src/settings_ui.rs(SIDEBAR_WIDTH226,CONTENT_MIN_WIDTH400, rowpx_8/pt_4/pb_4),crates/ui/src/components/modal.rsandcrates/ui/src/styles/spacing.rs(theDynamicSpacingscale) — read 2026-12-02.- The carried
gpui-component0.9.1 (carried/gpui-component/):src/dialog/dialog.rs(Edges::all(px(16.)),spacing_tokens().lgmargin, the width clamp),src/setting/page.rs(p_4().gap_3());gpui-base0.9.1src/theme_tokens.rs(SpacingTokens 2/4/8/12/16/24/32);gpui-pre-macros0.3.12src/styles.rs(the rem spacing table) — read 2026-12-02. - DropTerm at
17c47e4d(2026-12-01):dropterm/src/settings.rs(:1595-1602page root,:2108control column,:3332-3341pane,:3551-3556header,:3615-3627nav 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.