LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-grace
createdAtNov 18, 2026, 6:02 PM
updatedAtNov 18, 2026, 7:47 PM
githubUrlhttps://github.com/neomjs/neo/issues/21374
authorneo-opus-grace
commentsCount0
parentIssue21198
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 18, 2026, 7:47 PM

A dialog's minimize, maximize and close read as one modern set

Closed v14.0.0/archive-v14-0-0-chunk-4 enhancementdesignai
neo-opus-grace
neo-opus-grace commented on Nov 18, 2026, 6:02 PM

Context

Two readers without context graded the web desktop's frames in #21348 and named the same gap: the minimize, maximize and close glyphs "look mismatched beside the app icons" (#21348's body). #21198's design pass records it as gap 2, "mismatched and retro" (comment 6982004056). The glyphs are Neo.dialog.Base's defaults, so every dialog draws them, not only the desktop's windows.

The Problem

Measured on dev (c978015997) in examples/desktop/basic, neo-dark:

  • The controls are three different drawings from Font Awesome 7 Free's regular set: far fa-window-minimize is a bare bar, far fa-window-maximize a frame with a filled title bar, far fa-window-close a frame with an X. Maximized, far fa-window-restore draws two framed windows.
  • They render at 24px (font-size: 1.8em of the button's 13.3px), beside a 16px title and an app tile whose glyph is 12px.

The Architectural Reality

  • src/dialog/Base.mjs owns three glyph configs, maximizeCls, minimizeCls and restoreCls (lines 113-146). getWindowActionMap() dresses maximize as a Neo.toolbar.ActionButton toggle (iconCls ↔ pressedIconCls) and minimize as a plain action.
  • src/dialog/header/Toolbar.mjs:24-25 holds the header's own actionMap defaults: close (far fa-window-close) and maximize (far fa-window-maximize).
  • resources/css/src/dialog/Base.css:95-98, .neo-header-toolbar .neo-button-glyph {font-size: 1.8em}, sizes every header glyph, a consumer's own actions included.
  • Neo.desktop.AppWindow sets no glyph of its own; Neo.desktop.WindowManager takes minimize from getWindowActionMap().
  • Specs that pin the classes: test/playwright/unit/dialog/WindowControls.spec.mjs (lines 81-82 and 141; its replacement arm overrides with fas fa-minus, lines 148-150) and test/playwright/e2e/desktop/Basic.spec.mjs:125 (fa-window-restore).

Design authority: #21198, comment 6982004056, the owning epic's design pass on the operator's ask to challenge the desktop's design: "before the cut (lock Sun 22 Nov), real apps in the windows, built from engine families (...), plus the launcher and chrome fixes, all with a cold look against these numbers."

The Fix

  1. src/dialog/Base.mjs: minimizeCls: 'fas fa-minus', maximizeCls: 'far fa-square', restoreCls: 'far fa-clone', with their JSDoc defaults.
  2. src/dialog/header/Toolbar.mjs: close becomes fas fa-xmark and maximize far fa-square. Its JSDoc example, which shows fas fa-xmark as a custom close, takes another glyph.
  3. resources/css/src/dialog/Base.css: the header glyph size comes down from 1.8em to the title's scale. The pull request states the value and measures it.
  4. Both specs pin the new classes, and the replacement arm overrides with classes that differ from the new defaults.

Acceptance Criteria

  • Minimize, maximize, restore and close are drawn as a line, a square, two offset squares and a cross; none of them is a framed window.
  • Measured in the browser, no glyph is taller than the header title's font size (16px in examples/desktop/basic).
  • WindowControls.spec.mjs and desktop/Basic.spec.mjs pin the new classes and pass; the replacement arm still proves a replacement.
  • The pull request shows a desktop window, normal and maximized, and one plain dialog (examples/dialog), before and after, in neo-dark and neo-light.
  • Readers without context grade the window frame before and after on #21348's question; the pull request records the grades and whether the controls are still named as a weak point.

Out of Scope

  • The dock's glyphs (src/dashboard/dock/**): they have their own configs and specs, and fa-window-restore is the tear-out's anchor there.
  • The header icons' colour per theme: #21371 owns the cyberpunk contrast.
  • Buttons that open a dialog or a pop-out (examples/dialog, src/code/LivePreview.mjs).

Avoided Traps

  • A desktop-only override in Neo.desktop.AppWindow: it fixes one consumer and leaves every other dialog with the mismatched set.
  • Shrinking the current glyphs: a smaller frame still disagrees with the bare bar beside it.
  • Inline SVG glyphs: every header control takes iconCls, and a consumer overrides it with a class string (actionMap and the configs above).

Related

Parent #21198. Found in #21348's cold read (it closed #21201). #21272 asked for the controls' contract, which #21348 built; this leaf changes only their drawing. #21371 (colour), #21205 (the desktop's classic themes), #21353 (real apps), #21364 (the launcher).

Live latest-open + closed sweep: latest 20 open, plus open and closed searches (window controls, minimize maximize close, dialog header glyph, window glyph) at 2026-11-18T17:00Z. #21272 is the controls' contract, not their drawing; no equivalent found. Backlog band: 83 open (red); filed under its owning epic #21198 (8 subs). A2A claim sweep: the 30 newest messages in all read states; no claim on the dialog's glyphs. MC sweep: "web desktop window glyphs minimize maximize close mismatched retro" and "dialog header toolbar minimize maximize icon": no prior decision. Own-assignment sweep: 9 open; #21205 (themes) and #21353 (apps) are adjacent, and neither draws the controls.

Owner: Grace, self-assigned. No curated labels: the leaf is owned and due before the lock (Sun 22 Nov) on #21198's design pass.

Retrieval Hint: "dialog window controls glyphs minimize maximize restore close mismatched retro framed window font awesome"