The right dock already had splitters between panel groups (#88), but
nothing showed where they were and drags lost the movement before
egui's drag threshold, so they felt broken.
- A three-dot grip in every gap; resize cursor and accent line on hover,
solid while dragging. Grab area is the gap plus 3 pt each side and is
registered after the groups so it wins over overlapping strips.
- Drags are measured from the press against the heights at the press:
the edge follows the pointer exactly and clamps at minimum heights
without drift.
- Double-clicking a splitter gives both neighbouring groups their
default heights.
- Collapsed groups have no splitter; the one above resizes against the
next expanded group. Sizes persist as before (DockLayout::heights in
ui.set, workspaces and prefs.panelLayout).
- Control protocol: ui.press / ui.release (half clicks) so agents can
hold a drag across calls; ui.move / ui.click now documented.
- Tests: full-app kittest at three window sizes (grab tolerance, exact
growth, minimum, double-click reset) and dock unit/kittests for
collapsed groups and reset.
Fixes#295
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* i18n: add Simplified Chinese translation catalog (#282)
* i18n: register the Simplified Chinese catalog (#282)
Adds the zh-hans row to LANGUAGES. It's marked partial (complete_menus: false): strings added
to main since the catalog was written fall back to English until translated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---------
Co-authored-by: Brandon Thomas <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
* Localise the UI: i18n foundation and a Japanese catalog
Adds a small i18n layer and a complete Japanese catalog for the menus, the
command palette, dialogs and panels. English stays the default and the source
language; command ids, the control protocol, the CLI and MCP are unchanged.
- i18n (crates/ui-egui/src/i18n): one TSV catalog per language, registered with
one row in LANGUAGES. Lookups: tr/tl! (plain), tr_ctx (context), tr_id
(command-id keyed, English fallback), trn (plurals), fmt ({name}
placeholders). Locale tags resolve most-specific-first; macOS falls back to
the preferred-languages list.
- New preference interface.language (auto | language code), a dropdown in
Preferences > Interface. The engine stores a validated code and does not
know the language list.
- Widgets (checkbox, slider_row, dropdown, buttons, tabs, icon tooltips)
translate their labels; direct egui calls use tl!("...").
- Japanese catalog (about 2,000 entries) written from the meaning of the
English labels; no string table was extracted from any other product.
- Tests: catalog well-formedness (duplicates, placeholders, ellipses, plural
forms, command ids) and coverage of menus, tl! literals, blend modes and
generated preference labels.
Status-bar messages and errors stay English. Per-language font fallback,
right-to-left layout and locale-aware number formats are not done yet.
Rebased onto main (maintainer): conflicts resolved keeping main's newer UI
(tab strips, platform shortcut labels, menu navigation, Properties layout)
with the tl!/tr wrapping. command_label/tip_label translate their label
before appending the shortcut, shortcut hints use {key} placeholders, and
strings main added since are wrapped and translated where unambiguous.
The macOS locale lookup runs /usr/bin/defaults by absolute path and
ignores failures.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Menus widen to fit translated labels instead of wrapping them
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Workspace switcher keeps English keys so translated labels still select a workspace
The options' keys were translated too, so in Japanese the current workspace
showed as "—" and picking one never matched apply_workspace.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Regenerate docs/scorecard.md for interface.language
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---------
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Co-authored-by: Brandon Thomas <[email protected]>