From e852453dec058ab67fcf5fad2b345c987e13c892 Mon Sep 17 00:00:00 2001 From: krille-chan Date: Wed, 18 Feb 2026 16:58:51 +0100 Subject: [PATCH] chore: Adjust avatar size and chat list item design --- lib/pages/chat_list/chat_list_item.dart | 20 ++------------------ lib/pages/chat_list/unread_bubble.dart | 2 +- lib/widgets/avatar.dart | 2 +- 3 files changed, 4 insertions(+), 20 deletions(-) diff --git a/lib/pages/chat_list/chat_list_item.dart b/lib/pages/chat_list/chat_list_item.dart index eb0e5700d..10f07a80b 100644 --- a/lib/pages/chat_list/chat_list_item.dart +++ b/lib/pages/chat_list/chat_list_item.dart @@ -42,7 +42,6 @@ class ChatListItem extends StatelessWidget { final typingText = room.getLocalizedTypingText(context); final lastEvent = room.lastEvent; final ownMessage = lastEvent?.senderId == room.client.userID; - final unread = room.isUnread; final directChatMatrixId = room.directChatMatrixID; final isDirectChat = directChatMatrixId != null; final hasNotifications = room.notificationCount > 0; @@ -185,11 +184,6 @@ class ChatListItem extends StatelessWidget { maxLines: 1, overflow: TextOverflow.ellipsis, softWrap: false, - style: TextStyle( - fontWeight: unread || room.hasNewMessages - ? FontWeight.w500 - : null, - ), ), ), if (isMuted) @@ -215,10 +209,7 @@ class ChatListItem extends StatelessWidget { room.latestEventReceivedTime.localizedTimeShort( context, ), - style: TextStyle( - fontSize: 12, - color: theme.colorScheme.outline, - ), + style: TextStyle(fontSize: 11), ), ), ], @@ -276,10 +267,7 @@ class ChatListItem extends StatelessWidget { const SizedBox(width: 4), Text( L10n.of(context).thread, - style: TextStyle( - fontSize: 12, - color: theme.colorScheme.outline, - ), + style: TextStyle(fontSize: 11), ), ], ), @@ -292,7 +280,6 @@ class ChatListItem extends StatelessWidget { L10n.of( context, ).countChats(room.spaceChildren.length), - style: TextStyle(color: theme.colorScheme.outline), ) : typingText.isNotEmpty ? Text( @@ -347,9 +334,6 @@ class ChatListItem extends StatelessWidget { maxLines: room.notificationCount >= 1 ? 2 : 1, overflow: TextOverflow.ellipsis, style: TextStyle( - color: unread || room.hasNewMessages - ? theme.colorScheme.onSurface - : theme.colorScheme.outline, decoration: room.lastEvent?.redacted == true ? TextDecoration.lineThrough : null, diff --git a/lib/pages/chat_list/unread_bubble.dart b/lib/pages/chat_list/unread_bubble.dart index ba1344db1..9dfd92490 100644 --- a/lib/pages/chat_list/unread_bubble.dart +++ b/lib/pages/chat_list/unread_bubble.dart @@ -48,7 +48,7 @@ class UnreadBubble extends StatelessWidget { fontSize: 13, fontWeight: FontWeight.w500, ), - textAlign: TextAlign.center, + textAlign: .center, ) : const SizedBox.shrink(), ); diff --git a/lib/widgets/avatar.dart b/lib/widgets/avatar.dart index baf20ffb0..d78a2fcdc 100644 --- a/lib/widgets/avatar.dart +++ b/lib/widgets/avatar.dart @@ -11,7 +11,7 @@ class Avatar extends StatelessWidget { final String? name; final double size; final void Function()? onTap; - static const double defaultSize = 44; + static const double defaultSize = 48; final Client? client; final String? presenceUserId; final Color? presenceBackgroundColor;