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>
This commit is contained in:
2026-12-03 16:43:59 +00:00
parent 9a6363b80e
commit ca2f7eee32
45 changed files with 1961 additions and 95 deletions
+4
View File
@@ -20,11 +20,14 @@
// `?tables=1` answers carry a wrapping table, one with a long token and
// one too wide for a phone (it scrolls sideways);
// `?timestamps=1` messages carry recorded times over two calendar days.
// `?cli=1` appends a CLI-agent-shaped exchange with several tool calls
// (chat_cli_fixture.dart);
// `?followups=1` appends agent follow-ups, auto-continue/switch prompts and
// a scheduled operator message (chat_followup_fixture.dart).
import 'dart:async';
import 'package:pipelines_app/core/api_gateway.dart';
import 'chat_cli_fixture.dart';
import 'chat_followup_fixture.dart';
Map<String, String> _params = const {};
@@ -279,6 +282,7 @@ JsonMap chatScrollHistory(String sessionId, int index, String cursor) {
_timed(messages[i], i, messages.length),
if (_bgwork) ..._backgroundWork(sessionId),
if (_params['followups'] == '1') ...chatFollowupMessages(sessionId),
if (_params['cli'] == '1') ...chatCliMessages(sessionId),
],
'next_cursor': _older ? 'older' : '',
'has_more': _older,