From 73c08c3fdd6df0763b1d5886f0a024414d869f1c Mon Sep 17 00:00:00 2001 From: krille-chan Date: Sun, 24 Mar 2024 11:18:23 +0100 Subject: [PATCH] chore: Mark muted unread rooms with bold text --- lib/pages/chat_list/chat_list_item.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/pages/chat_list/chat_list_item.dart b/lib/pages/chat_list/chat_list_item.dart index 48c3cfaa7..baa8220a4 100644 --- a/lib/pages/chat_list/chat_list_item.dart +++ b/lib/pages/chat_list/chat_list_item.dart @@ -111,7 +111,7 @@ class ChatListItem extends StatelessWidget { maxLines: 1, overflow: TextOverflow.ellipsis, softWrap: false, - style: unread + style: unread || room.hasNewMessages ? const TextStyle(fontWeight: FontWeight.bold) : null, ), @@ -222,7 +222,9 @@ class ChatListItem extends StatelessWidget { maxLines: 1, overflow: TextOverflow.ellipsis, style: TextStyle( - fontWeight: unread ? FontWeight.w600 : null, + fontWeight: unread || room.hasNewMessages + ? FontWeight.bold + : null, color: Theme.of(context) .colorScheme .onSurfaceVariant,