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
@@ -37,6 +37,8 @@ import 'package:pipelines_app/core/transport/pipelines_client.dart';
import 'package:pipelines_app/features/search/ui/search_bar_controls.dart'
show searchFieldKey;
import 'package:pipelines_app/ui/input/app_search_field.dart';
import 'package:pipelines_app/ui/theme/app_design.dart';
import 'package:pipelines_app/ui/theme/app_design_controller.dart';
import 'package:pipelines_app/ui/theme/app_font.dart';
import 'package:pipelines_app/ui/theme/app_font_controller.dart';
import 'package:flutter/widgets.dart';
@@ -972,6 +974,7 @@ class _FixtureSink implements WebSocketSink {
/// kind of popup and a pushed page (tool/capture/window_probe.dart);
/// `?speech=fake` reads replies aloud with a scripted engine, one word per
/// `?speechStep=` ms (tool/probe_speech_fixture.dart);
/// `?design=terminal` chooses that app design (Settings → Design);
/// `?theme=dark` / `?theme=light` pins the platform brightness the app's
/// `ThemeMode.system` follows (omitted: the browser's color scheme).
///
@@ -1006,6 +1009,14 @@ Future<void> main() async {
? AppFontController.instance.restore()
: AppFontController.instance.select(AppFont.fromId(font)),
);
// `?design=terminal` chooses a design as Settings would; otherwise the
// stored one.
final design = params['design'];
unawaited(
design == null
? AppDesignController.instance.restore()
: AppDesignController.instance.select(AppDesign.fromId(design)),
);
_fillerRunCount = int.tryParse(params['runs'] ?? '') ?? 0;
_fillerStepCount = int.tryParse(params['steps'] ?? '') ?? 0;
if (params['running'] == '1') {