From 1c97a9798d02c4834764185e98fbed686223b28d Mon Sep 17 00:00:00 2001 From: Krille Date: Wed, 5 Feb 2025 08:34:52 +0100 Subject: [PATCH] chore: Follow up colors --- lib/pages/chat_list/chat_list_item.dart | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/pages/chat_list/chat_list_item.dart b/lib/pages/chat_list/chat_list_item.dart index 9034b299d..c39b2e6d0 100644 --- a/lib/pages/chat_list/chat_list_item.dart +++ b/lib/pages/chat_list/chat_list_item.dart @@ -353,9 +353,6 @@ class ChatListItem extends StatelessWidget { room.notificationCount >= 1 ? 2 : 1, overflow: TextOverflow.ellipsis, style: TextStyle( - fontWeight: unread || room.hasNewMessages - ? FontWeight.w500 - : null, color: unread || room.hasNewMessages ? theme.colorScheme.onSurface : theme.colorScheme.outline, @@ -393,8 +390,9 @@ class ChatListItem extends StatelessWidget { ? Text( room.notificationCount.toString(), style: TextStyle( - color: room.highlightCount > 0 - ? Colors.white + color: room.highlightCount > 0 || + room.membership == Membership.invite + ? theme.colorScheme.onError : hasNotifications ? theme.colorScheme.onPrimary : theme.colorScheme.onPrimaryContainer,