From ddcf7bb3d118bf893f0640cb4cf34d5e27726fda Mon Sep 17 00:00:00 2001 From: Alan Silva Date: Wed, 11 Nov 2026 11:56:48 +0000 Subject: [PATCH] Use Material theme colors in transcript links Remove the obsolete Cupertino theme dependency from link rendering and keep the shown-entry documentation accurate after the transcript cleanup. --- app/lib/features/chat/ui/transcript/chat_link_spans.dart | 5 ++--- .../chat/ui/transcript/shown/chat_shown_surface.dart | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/lib/features/chat/ui/transcript/chat_link_spans.dart b/app/lib/features/chat/ui/transcript/chat_link_spans.dart index dde54d32..0d2cac4b 100644 --- a/app/lib/features/chat/ui/transcript/chat_link_spans.dart +++ b/app/lib/features/chat/ui/transcript/chat_link_spans.dart @@ -1,4 +1,3 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; @@ -76,8 +75,8 @@ class ChatLinkSpans { ..onSecondaryTapUp = _ownsSecondaryClick ? (details) => _showLinkMenu(context, details.globalPosition, url) : null; - // The app theme's primary colour, read from the app's Cupertino theme. - final color = CupertinoTheme.of(context).primaryColor; + // The app theme's primary colour. + final color = Theme.of(context).colorScheme.primary; return _leaves( TextSpan( style: TextStyle( diff --git a/app/lib/features/chat/ui/transcript/shown/chat_shown_surface.dart b/app/lib/features/chat/ui/transcript/shown/chat_shown_surface.dart index 9bc7f12e..6398c9ba 100644 --- a/app/lib/features/chat/ui/transcript/shown/chat_shown_surface.dart +++ b/app/lib/features/chat/ui/transcript/shown/chat_shown_surface.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import '../../../../../core/api_gateway.dart'; -/// The secondary text colour of the transcript's cards. +/// The secondary text colour of a shown entry. Color chatShownSecondary(BuildContext context) => Theme.of(context).colorScheme.onSurfaceVariant;