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:
@@ -13,7 +13,7 @@ import '../../features/terminal/terminal_layout.dart';
|
||||
import '../../ui/adaptive/window_margins.dart';
|
||||
import '../../ui/scale/ui_scale.dart';
|
||||
import '../../ui/theme/app_font_controller.dart';
|
||||
import '../../ui/theme/app_theme.dart';
|
||||
import '../../ui/theme/app_design_controller.dart';
|
||||
import '../app_route.dart';
|
||||
import '../app_session.dart';
|
||||
import '../app_terminals.dart';
|
||||
@@ -202,8 +202,9 @@ class _DetachedWindowAppState extends State<DetachedWindowApp> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final fonts = AppFontController.instance;
|
||||
final designs = AppDesignController.instance;
|
||||
final app = ListenableBuilder(
|
||||
listenable: Listenable.merge([fonts, _title]),
|
||||
listenable: Listenable.merge([fonts, designs, _title]),
|
||||
builder: (context, _) => MaterialApp(
|
||||
title: _title.value.isEmpty
|
||||
? 'Pipelines'
|
||||
@@ -213,8 +214,8 @@ class _DetachedWindowAppState extends State<DetachedWindowApp> {
|
||||
builder: (context, child) => UiScaleHost(
|
||||
child: WindowMargins(child: child ?? const SizedBox.shrink()),
|
||||
),
|
||||
theme: appLightTheme(fontFamily: fonts.family),
|
||||
darkTheme: appDarkTheme(fontFamily: fonts.family),
|
||||
theme: designs.design.light(fontFamily: fonts.family),
|
||||
darkTheme: designs.design.dark(fontFamily: fonts.family),
|
||||
themeMode: ThemeMode.system,
|
||||
// The window's one page is named by its route, so the address bar
|
||||
// (and a reload) keeps the detached location instead of `/`.
|
||||
|
||||
Reference in New Issue
Block a user