Terminal theme: flat lists, compact settings, one-line reply quote
build / build (push) Successful in 17m24s

In the terminal theme only:
- MeshCard becomes a flat row with a rule underneath: no margin, no
  corners, 8/4 padding. Channel and contact lists, settings groups and
  every other card shrink to about half their height.
- AvatarCircle is just the glyph (icon or initials, at most 20 px), the
  contact emoji avatar likewise.
- MeshNavTile and SectionHeader: smaller icons, padding and type.
- Text line height 1.2 instead of Material's 1.4-1.5.
- A reply in a channel is one dim line above the message,
  "↳ <nick> quoted text…", instead of the boxed preview; the
  "replying to" banner above the composer loses its padding.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tthandClaude Opus 5.5 committed 2026-10-22 12:28:24 +02:00
1 parent 55386df69f
commit e939932cef
5 files changed
+145 -29

No files matched your search

+28 -3
View File
@@ -105,9 +105,11 @@ ThemeData terminalTheme() {
visualDensity: VisualDensity.compact,
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
splashFactory: NoSplash.splashFactory,
textTheme: base.textTheme.apply(
fontFamily: MeshFonts.mono,
fontFamilyFallback: MeshFonts.monoFallback,
textTheme: _tightLines(
base.textTheme.apply(
fontFamily: MeshFonts.mono,
fontFamilyFallback: MeshFonts.monoFallback,
),
),
appBarTheme: base.appBarTheme.copyWith(
toolbarHeight: 48,
@@ -227,3 +229,26 @@ ThemeData terminalTheme() {
extensions: const [MeshStyle(terminal: true)],
);
}
/// Material's 1.4-1.5 line height is what makes list rows tall; a terminal
/// runs at ~1.2.
TextTheme _tightLines(TextTheme t) {
TextStyle? tight(TextStyle? s) => s?.copyWith(height: 1.2);
return t.copyWith(
displayLarge: tight(t.displayLarge),
displayMedium: tight(t.displayMedium),
displaySmall: tight(t.displaySmall),
headlineLarge: tight(t.headlineLarge),
headlineMedium: tight(t.headlineMedium),
headlineSmall: tight(t.headlineSmall),
titleLarge: tight(t.titleLarge),
titleMedium: tight(t.titleMedium),
titleSmall: tight(t.titleSmall),
bodyLarge: tight(t.bodyLarge),
bodyMedium: tight(t.bodyMedium),
bodySmall: tight(t.bodySmall),
labelLarge: tight(t.labelLarge),
labelMedium: tight(t.labelMedium),
labelSmall: tight(t.labelSmall),
);
}