chore: Make banner light red

This commit is contained in:
Christian Kußowski 2026-03-13 12:30:41 +01:00
parent aa605ae0c1
commit 3b204373e9
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -408,10 +408,13 @@ class ChatListController extends State<ChatList>
if (DateTime.now().difference(lastSeenSupportBanner) >= if (DateTime.now().difference(lastSeenSupportBanner) >=
Duration(days: 6 * 7)) { Duration(days: 6 * 7)) {
final theme = Theme.of(context);
final messenger = ScaffoldMessenger.of(context); final messenger = ScaffoldMessenger.of(context);
messenger.showMaterialBanner( messenger.showMaterialBanner(
MaterialBanner( MaterialBanner(
backgroundColor: theme.colorScheme.errorContainer,
leading: CloseButton( leading: CloseButton(
color: theme.colorScheme.onErrorContainer,
onPressed: () async { onPressed: () async {
final okCancelResult = await showOkCancelAlertDialog( final okCancelResult = await showOkCancelAlertDialog(
context: context, context: context,
@ -436,7 +439,10 @@ class ChatListController extends State<ChatList>
), ),
content: Padding( content: Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0), padding: const EdgeInsets.symmetric(vertical: 8.0),
child: Text(L10n.of(context).fluffyChatSupportBannerMessage), child: Text(
L10n.of(context).fluffyChatSupportBannerMessage,
style: TextStyle(color: theme.colorScheme.onErrorContainer),
),
), ),
actions: [ actions: [
TextButton( TextButton(
@ -446,7 +452,10 @@ class ChatListController extends State<ChatList>
'https://fluffychat.im/faq/#how_can_i_support_fluffychat', 'https://fluffychat.im/faq/#how_can_i_support_fluffychat',
); );
}, },
child: Text(L10n.of(context).support), child: Text(
L10n.of(context).support,
style: TextStyle(color: theme.colorScheme.onErrorContainer),
),
), ),
], ],
), ),