Repository navigation
feat(app): give the interface one type scale, and larger text - #616
Merged
Merged
Conversation
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
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
CAPTIONBODYHEADINGDISPLAYTitles only and Show archived now share one row under the search box.
How
view::styleholds the four steps; every text size inshell/viewnames one of them.
text.
BODY + 1) for thelarger ★ ↗ ✎ ⊟, and a twin's hint cap from 120 to 143 px (
BODY * 11), soit shows as many characters as before.
CAPTION.Checks
every_text_size_in_the_view_comes_from_the_type_scalereads the sizegiven to every
.size(,.text_size(andfitted(call inshell/viewand its subfolders, wrapped calls included, and allows only the four steps
and the two named marks (
STATUS_DOT_SIZE,CHECKBOX_SIZE). It failed onthe literals before they were replaced, and on
BODY - 1.0and a12injected by hand.
a_size_is_read_whole_however_rustfmt_wrapped_the_callpins the argumentreader.
one below.
literals: a
')'inside a size call's arguments would misread it.seq 1 200in a shell, the promptrow stays whole, so the pane-size estimate in
geometry.rsneeds no change.cargo test --workspace, clippy, fmt,just check-arch, markdownlint.