Keep Cupertino chat summaries and contextual prompts readable

This commit is contained in:
2026-11-07 21:07:55 +00:00
parent b9332dda0a
commit bbcfcd32a2
4 changed files with 201 additions and 4 deletions
@@ -105,7 +105,14 @@ class _ChatAgentReportCardState extends State<ChatAgentReportCard> {
(cupertino
? CupertinoTheme.of(context).textTheme.textStyle
: Theme.of(context).textTheme.bodyMedium)
?.copyWith(color: secondary),
?.copyWith(
// This summary is readable content, not disabled
// chrome; translucent secondaryLabel falls below
// normal-text contrast on a light card.
color: cupertino
? CupertinoColors.label.resolveFrom(context)
: secondary,
),
),
],
),
@@ -215,7 +222,11 @@ class ChatSystemNoticeLine extends StatelessWidget {
(cupertino
? CupertinoTheme.of(context).textTheme.textStyle
: Theme.of(context).textTheme.bodySmall)
?.copyWith(color: color);
?.copyWith(
color: cupertino
? CupertinoColors.label.resolveFrom(context)
: color,
);
return Semantics(
container: true,
label: 'System notice',