Terminal theme: pure black, square, monospace, IRC-style chat lines
build / build (push) Successful in 16m14s

A fourth theme choice "Term" next to System/Light/Dark:
- black surfaces, green accent, JetBrains Mono, no rounded corners,
  compact density and paddings, no ink splash (lib/theme/terminal_theme.dart,
  built on MeshTheme's dark theme with the shapes overridden);
- channel and direct chats render each message as one IRC line across the
  whole width: "14:02 <nick> text [2 hops] ✓", no avatar, no bubble, own
  messages on the left too. Route, region, repeat and delivery status
  follow the text inline; the tracing path stays on its own line.

The upstream bubble code is untouched: both chat screens branch to a
separate builder when MeshStyle.of(context).terminal, so the nightly
upstream merge does not collide with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tthandClaude Opus 5.5 committed 2026-10-22 11:49:39 +02:00
1 parent b519922d51
commit 55386df69f
9 files changed
+762 -6

No files matched your search

+10 -3
View File
@@ -6,6 +6,7 @@ import '../helpers/gif_helper.dart';
import '../l10n/l10n.dart';
import '../services/app_settings_service.dart';
import '../theme/mesh_theme.dart';
import '../theme/terminal_theme.dart';
import 'byte_count_input.dart';
import 'gif_message.dart';
import 'gif_picker.dart';
@@ -151,7 +152,9 @@ class ChatComposer extends StatelessWidget {
children: [
...header,
Padding(
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 6),
padding: MeshStyle.of(context).terminal
? const EdgeInsets.symmetric(horizontal: 2, vertical: 2)
: const EdgeInsets.symmetric(horizontal: 8, vertical: 6),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
@@ -196,7 +199,9 @@ class ChatComposer extends StatelessWidget {
? scheme.onPrimary
: scheme.onSurfaceVariant,
minimumSize: const Size(40, 40),
shape: const CircleBorder(),
shape: MeshStyle.of(context).terminal
? const RoundedRectangleBorder()
: const CircleBorder(),
),
onPressed: hasText
? () {
@@ -262,7 +267,9 @@ class ChatComposer extends StatelessWidget {
Widget _buildTextField(BuildContext context, ColorScheme scheme) {
OutlineInputBorder border(Color color, [double width = 1]) =>
OutlineInputBorder(
borderRadius: BorderRadius.circular(MeshRadii.md),
borderRadius: MeshStyle.of(context).terminal
? BorderRadius.zero
: BorderRadius.circular(MeshRadii.md),
borderSide: BorderSide(color: color, width: width),
);
return ByteCountedTextField(