Keep Cupertino chat summaries and contextual prompts readable
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user