Skip to content

The frame: design tokens, the stage switch, three languages, Settings - #8

Merged
teo1747 merged 8 commits into
mainfrom
app/the-frame
Nov 12, 2026
Merged

teo1747 merged 8 commits into
mainfrom
app/the-frame

Conversation

@teo1747

@teo1747 teo1747 commented Nov 12, 2026

Copy link
Copy Markdown
Member

The application now wears the frame of the design brief (sections 4d, 4f, 4g). Merge #7 first: this branch is built on it and needs docs/design/tokens.json.

What changes

  • Theme reads docs/design/tokens.json, compiled in as :/design/tokens.json. It sets the palette, the fonts, the motions and the style sheets, including the docking library's. Every view is now a rounded card on the dark ground, 6 px apart. The look lives in the tokens file only.
  • The stage bar is merged with the title bar on macOS. It holds the project, the stages (Configure, Code, Debug, Verify) as a custom segmented control drawn from the tokens, and the core's state. ⌘1 to ⌘4 (Ctrl elsewhere) switch stages, and the chosen segment slides with the move motion.
  • One layout per stage: the Workbench keeps each stage's layout, across a restart too.
  • Three languages: English, French and Simplified Chinese (app/i18n, Qt Linguist), switched live from Settings without a restart. Numbers follow the language (6,8 s in French), and a Chinese interface sets no text below 12 px.
  • Settings (⌘, / Ctrl+,) is built directly in Qt. Its first section, General, holds the language.
  • --language, --stage and --screenshot <file> make progress pictures easy. docs/development.md explains the translation workflow.

Tests: new tst_theme, tst_segmentedcontrol and tst_language, plus stage layouts in tst_workbench. 6 of 6 suites pass locally (macOS, Qt 6.12), and clang-format 18 is clean.

Not yet: Inter and JetBrains Mono aren't bundled, so the system fonts stand in. Bundling them (OFL) comes with their notices in a later change.

PR #5 was merged before its last commits were pushed, so main has only the
brief's first draft. This brings the whole brief (sections 3b to 4f: every
board, the code editor, Start, Verify, the common frame, the signature
moments, the tokens, the three languages and Settings) with section 4g from
PR #6 kept in place, and docs/design/tokens.json, which the Qt frame reads.

Signed-off-by: teo1747 <148846371+teo1747@users.noreply.github.com>
The application now wears the frame of the design brief (sections 4d, 4f, 4g).

- Theme reads docs/design/tokens.json, built in as :/design/tokens.json, and
  gives the palette, the fonts, the motions and the style sheets, the docking
  library's included: every view is a card on the dark ground, 6 px apart.
- SegmentedControl, drawn from the tokens, is the stage switch in the stage
  bar (merged with the title bar on macOS): Configure, Code, Debug, Verify,
  with Cmd+1 to Cmd+4. The chosen segment slides with the move motion.
- The Workbench keeps one layout per stage, across a restart too.
- The interface speaks English, French and Simplified Chinese (app/i18n),
  switched live from Settings without a restart; numbers follow the language.
  A Chinese interface sets no text below 12 px.
- Settings (Cmd+, on macOS, Ctrl+, elsewhere) is built directly in Qt; its
  first section, General, holds the language.
- --language, --stage and --screenshot help take progress pictures.

New tests: tst_theme, tst_segmentedcontrol, tst_language, and stage layouts in
tst_workbench.

Signed-off-by: teo1747 <148846371+teo1747@users.noreply.github.com>
Signed-off-by: teo1747 <148846371+teo1747@users.noreply.github.com>
Signed-off-by: teo1747 <148846371+teo1747@users.noreply.github.com>
Signed-off-by: teo1747 <148846371+teo1747@users.noreply.github.com>
Signed-off-by: teo1747 <148846371+teo1747@users.noreply.github.com>
Signed-off-by: teo1747 <148846371+teo1747@users.noreply.github.com>
Signed-off-by: teo1747 <148846371+teo1747@users.noreply.github.com>
@teo1747
teo1747 merged commit 9afb1fa into main Nov 12, 2026
11 checks passed
@teo1747
teo1747 deleted the app/the-frame branch November 12, 2026 21:44
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