Commit Graph

24 Commits

Author SHA1 Message Date
alan f4ca239afb Compact: snap previews too, pin the composer to the 40px send button
The design switcher's live preview decides the hosts' blend like a choice
does. Compact's field matches the now fixed 40px send button and its
32px attach centres on that line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 22:54:51 +00:00
alan 048ecc651e Merge branch 'main' into worktree-agent-a1b6c249e2bec6658
# Conflicts:
#	app/lib/ui/theme/app_design_controller.dart
2026-12-03 22:18:46 +00:00
alan dae47600b7 Compact: name Classic in its description and note 2026-12-03 22:18:35 +00:00
alan 4268ce20eb Design switcher: Alt+L lists every design, previews live, Enter keeps it
The chat switcher's popup and keys over the AppDesign registry: filter,
Ctrl+N/P and arrows preview the selected design app-wide without storing
it (AppDesignController.preview), Enter keeps it, Esc or Alt+L again
returns to the design it opened with. The current design is checked.
Listed in Settings -> Keyboard shortcuts and the cheatsheet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 22:10:19 +00:00
alan 6e7118fe34 Merge branch 'main' into worktree-agent-a1b6c249e2bec6658 2026-12-03 22:00:26 +00:00
alan c584ecfa60 Merge main into the Compact design branch 2026-12-03 22:00:25 +00:00
alan 8ed3998dd5 Design: Terminal is the default when none is stored; Default is now Classic
An unset (or unknown) design id resolves to Terminal, in the controller's
initial value, AppDesign.fromId and the boot spinner. A stored choice,
including Classic's stable 'default' id, is respected. The picker calls the
original Material look Classic so no row reads 'Default'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 21:33:05 +00:00
alan 4534283f1d WIP compact 2026-12-03 20:01:13 +00:00
alan 5fc650211e Merge main (Paper design) into the design perf budget
Paper's theme joins the cached builder; AppDesignTokens and ReadingType
compare every new token by value, and Paper's tab indicator and switch
outline resolver are kept per colour so a rebuilt Paper theme equals
the last.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 19:45:24 +00:00
alan bc00d321d9 Designs: cache themes, value-equal tokens, and a per-design perf budget
A rebuilt Terminal theme never equalled the last one (AppDesignTokens,
AnsiAccents and the tab indicator compared by identity), so any host
rebuild (a detached window's title, a font notification) rebuilt every
Theme.of dependent and ran MaterialApp's 200 ms theme animation. Themes
are now cached per (design, brightness, font) and compare by value;
chat colour seeded schemes are cached too.

test/perf/design_bench_test.dart and tool/perf/design_bench.mjs check
every registered AppDesign against Default (tool/perf/README.md).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 19:43:10 +00:00
alan 7d2c3412a1 Paper design: warm paper, serif reading text and a typeset transcript
Adds the Paper design and generalises design tokens (transcript, composer,
selected-row styles, reading type, panel fill, chat colour saturation).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 18:00:07 +00:00
alan 03983cfd1f Detached chat: read the chat again once its machine connects, and follow the main window's look
A detached chat window read the chat list once, before any saved machine had
connected, and never again; its pane also did not rebuild when the runtime
adopted a row. Without the row the header showed a bare "Chat" with no folder
or model, the window was named by the session id, and the chat's colour (bar
tint, focus ring, prompt bar) was missing. The window now re-reads the list on
each connection change and rebuilds on the runtime, as the Chat destination
does. It also re-reads the stored design and font on the browser's storage
event and on coming to the front, so a Settings change in the main window
follows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 17:28:47 +00:00
alan 0599d6dc23 App: keep the Terminal text theme in its own file
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 16:47:15 +00:00
alan ca2f7eee32 App: add a selectable app design with a Terminal look
AppDesign builds each design's light and dark ThemeData with an
AppDesignTokens extension (corner radius, flat surfaces, frame colour,
ANSI accents, prompt glyph). Settings gains a Design picker stored per
device; the theme hosts rebuild live. Terminal is monospace (bundled
RobotoMono), near-black or paper, flat 1px frames with 3px corners, and
draws the chat transcript as prompt lines, tool dot/result lines and
bracketed follow-up lines. Default keeps its exact themes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 16:43:59 +00:00
alan 018d37f103 Terminal: grapheme-aware widths, drawn box/Powerline glyphs, line pictures
Emulator (vendored xterm):
- Widths follow glibc wcwidth on generated Unicode 16 tables
  (tool/gen_unicode_tables.py); combining marks, variation selectors,
  ZWJ sequences, skin tones, flags and Hangul jamo join the previous cell,
  stored as interned clusters (CellContent.clusterFlag) and drawn and
  copied whole. U+FE0F and flags take two columns, as modern terminals
  do; a wide character never starts in the last column.
- Box drawing, block elements and Powerline separators are drawn as
  geometry filling the cell; rows are whole pixels high.
- Backgrounds merge per colour; each line is a picture reused until the
  line changes (BufferLine.version); a line drawn unchanged settles into
  one laid out paragraph with a span per style. TerminalStyle and
  TerminalTheme compare by value.

App: bundled Symbols Nerd Font Mono subset (568 KiB, MIT) as the
terminal's first fallback, loaded on first use; line height 1.1;
?terminalUnicode=1 fixture showcase; bench gains a progress workload.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 01:14:48 +00:00
alan 9551eceaed Complete Material-only APIs and fixtures
Remove obsolete control-family flags and icon metadata across all callers, dead alternate themes and host helpers, obsolete test setup, and the unused icon-font dependency. Preserve native Material Back transitions. Make navigation fixtures independent of update plugins and answer auxiliary shell snapshots so the complete application suite can run deterministically.
2026-11-11 21:55:39 +00:00
alan 9adee6cc60 Remove Cupertino UI branches
Keep the public Cupertino-compatible parameters while retaining only the Material implementations and tests. The app is Material-only, so deleting unreachable Cupertino branches reduces dead code without changing the active path.
2026-11-11 02:41:26 +00:00
alan 081ae0957d Add font: own web file chooser, so a picked font is never dropped silently
file_picker's web picker treated the window regaining focus as a cancel when
the files arrived more than 500 ms later, so a real dialog could return an
empty pick and Add font did nothing. The web now uses its own file input that
completes only on change or cancel; mobile browsers get no accept filter.
Picker, check and save failures are shown in a dialog, and the row is busy
only after files were chosen.
2026-11-04 20:47:43 +00:00
alan c24e7f40b4 Settings: add your own fonts (.ttf/.otf) per device
Add font… picks one or more files, checks them with a bounded sfnt reader
(name table family, OS/2 weight), registers them with FontLoader before
storing, and chooses the new family. Added fonts list below the bundled ones
with Rename and Remove; removing the chosen one falls back to System default.
Bytes live in the app support directory natively and in IndexedDB on the web
(localStorage is too small); a shared_preferences index names them. Limits:
10 MB per file, 40 MB total. The capture kit gains a files= step.
2026-11-04 18:45:01 +00:00
alan 2853b18b9e Settings: per-device interface font choice
System default plus Inter, IBM Plex Sans, Source Sans 3 and Atkinson
Hyperlegible Next (OFL 1.1, bundled as on-demand assets and loaded with
FontLoader, so the web fetches only the previewed/chosen files). Stored in
shared_preferences, applied live to Material and Cupertino text themes;
RobotoMono styles unchanged. Licences registered with LicenseRegistry.
2026-11-04 02:01:49 +00:00
alan 41a3be8715 Keep web Material styling and preserve visible installer access URLs 2026-10-26 18:37:13 +00:00
alan 7f88f14a52 fix(app): restore standard Android back navigation 2026-10-24 01:44:50 +01:00
alan f997964761 perf(app): quick slide page transitions, close work after the page leaves, instant star/close/reopen 2026-10-24 00:47:32 +01:00
alan f6c90e96db feat(app): dark mode uses a near-black gray with lighter layers instead of pure black 2026-10-23 23:12:57 +01:00