From fdd0431fae90472dab5453c452e41d860731f063 Mon Sep 17 00:00:00 2001 From: eymeric Date: Sat, 20 Jan 2024 15:39:28 +0100 Subject: [PATCH] fix mail background color --- .../screens/mails/widgets/details/email_content_widget.dart | 4 ++-- packages/lyon1mailclient/lib/src/model/mail.dart | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/onyx/lib/screens/mails/widgets/details/email_content_widget.dart b/apps/onyx/lib/screens/mails/widgets/details/email_content_widget.dart index 91e59512..c64f4409 100644 --- a/apps/onyx/lib/screens/mails/widgets/details/email_content_widget.dart +++ b/apps/onyx/lib/screens/mails/widgets/details/email_content_widget.dart @@ -37,11 +37,11 @@ class _MailContentWidgetState extends State { bool isDark = Theme.of(context).brightness == Brightness.dark; html = widget.mail.getThemedBody( isDarkMode: isDark, - bgColor: Theme.of(context).colorScheme.background.toHex(), + bgColor: Theme.of(context).cardTheme.color!.toHex(), textColor: Theme.of(context).textTheme.bodyMedium!.color!.toHex(), ); } - + if (((widget.mail.body.contains("