Skip to content

feat(app): give the interface one type scale, and larger text - #616

Merged
bastien-gallay merged 4 commits into
mainfrom
feat-f3-type-scale
Nov 22, 2026
Merged

bastien-gallay merged 4 commits into
mainfrom
feat-f3-type-scale

Conversation

@bastien-gallay

@bastien-gallay bastien-gallay commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

What

The interface used seven text sizes, several only a point apart, and its
sidebar rows (11) and tab titles (12) were among its smallest text. It now
takes four steps, and what is read grows.

Step Size Role (main uses) Before
CAPTION 11 search snippet, shortcut hint, tooltip, note, Dismiss 10, 11, 12
BODY 13 sidebar rows, tabs, buttons, prompts, fields 11, 12, 13
HEADING 15 project names, panel titles, launch and settings icons 13, 14, 16
DISPLAY 40 welcome title 40

Titles only and Show archived now share one row under the search box.

How

  • view::style holds the four steps; every text size in shell/view
    names one of them.
  • The status dot keeps its 9 px under a named constant: it is a mark, not
    text.
  • The sidebar's glyph slot widens from 12 to 14 px (BODY + 1) for the
    larger ★ ↗ ✎ ⊟, and a twin's hint cap from 120 to 143 px (BODY * 11), so
    it shows as many characters as before.
  • The tab menu's heading stays a step below its entries, at CAPTION.

Checks

  • every_text_size_in_the_view_comes_from_the_type_scale reads the size
    given to every .size(, .text_size( and fitted( call in shell/view
    and its subfolders, wrapped calls included, and allows only the four steps
    and the two named marks (STATUS_DOT_SIZE, CHECKBOX_SIZE). It failed on
    the literals before they were replaced, and on BODY - 1.0 and a 12
    injected by hand.
  • a_size_is_read_whole_however_rustfmt_wrapped_the_call pins the argument
    reader.
  • A const assertion beside the scale keeps each step at least 1.15 times the
    one below.
  • The scan's argument reader counts brackets and does not skip string
    literals: a ')' inside a size call's arguments would misread it.
  • Checked on an isolated instance: after seq 1 200 in a shell, the prompt
    row stays whole, so the pane-size estimate in geometry.rs needs no change.
  • cargo test --workspace, clippy, fmt, just check-arch, markdownlint.

The view used eight text sizes, written as literals: 9, 10, 11, 12, 13,
14, 16 and 40. Sizes one pixel apart read as noise rather than
hierarchy, and the sidebar's rows, at 11, were the smallest text read.

The view now takes four named sizes: CAPTION 11 for secondary lines,
BODY 13 for what is read, HEADING 15 for project names, panel titles
and the chrome's icon buttons, DISPLAY 40 for the welcome title. Sidebar
rows grow from 11 to 13 and tab titles from 12 to 13. The row's glyph
slot widens from 12 to 14 pixels to hold the larger glyphs. The status
dot, a mark rather than text, keeps its size under a name.

A test fails on any literal size left in the view, and another on two
steps of the scale closer than 15%.
The type-scale test read only `.size(`, so the four `.text_size(`
literals on checkbox and pick-list labels slipped through. It now reads
both, and those labels take CAPTION and BODY.
The scan forbade digits but let any other expression through, and read
one line at a time, so a call rustfmt wrapped escaped it. It now reads
each size argument whole and allows only the scale and the named marks.

The checkbox box takes its own CHECKBOX_SIZE rather than borrowing
HEADING, the glyph slot follows BODY, the step spacing is a const
assertion beside the scale, and the tab menu's shortcut hint reuses
card_secondary_line.
The scan stopped at a file's first #[cfg(test)], which in doc_editor.rs
is a test-only use near the top, so its sizes went unread. It now stops
at the test module, walks subfolders, and allows fitted's pass-through
size in fitted.rs only.

The tab menu's heading goes back to CAPTION, a step below its entries.
The twin hint's cap follows BODY, so it shows as many characters as at
the old size. The book's sidebar diagram is widened to its new row.
@bastien-gallay
bastien-gallay merged commit 7c9c251 into main Nov 22, 2026
12 checks passed
@bastien-gallay
bastien-gallay deleted the feat-f3-type-scale branch November 22, 2026 21:11
bastien-gallay added a commit that referenced this pull request Nov 22, 2026
## What

Two reference pages for anyone changing how the interface looks, written
for
the interface critique and until now kept only in a local worktree:

- `docs/design/PRODUCT.md`: who termherd's interface serves, its
personality,
  its anti-references and design principles, and where it stands against
  comparable tools.
- `docs/design/DESIGN.md`: the values the view hardcodes on top of the
iced
  theme (status and session hues, the type scale, spacing, shape, layout
  constants), and the reason for each.

`AGENTS.md` points to both from *Where to look*.

## Brought up to date with main

- Typography describes the four-step scale from #616 and the two named
marks
  outside it.
- The terminal section says the grid follows the chrome theme when no
scheme
  is set.
- The list of drift found while extracting is gone: two items are fixed
and
  the other two are notes in their sections.
- Per-value usage counts are dropped; they would go stale with any
change.

The hues, session colours and layout constants it cites were checked
against
`view/style.rs` and `geometry.rs`.

## Checks

- `markdownlint-cli2`: 0 issues.
- No user-visible change, so no `CHANGELOG.md` entry.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant