From 85c1258a9bef06ac3706c89fbc0ff27ddb2c6104 Mon Sep 17 00:00:00 2001 From: krille-chan Date: Tue, 4 Feb 2025 21:30:20 +0100 Subject: [PATCH] chore: Follow up colors --- lib/pages/chat_list/chat_list_item.dart | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/pages/chat_list/chat_list_item.dart b/lib/pages/chat_list/chat_list_item.dart index 90b85b457..d6a55c05c 100644 --- a/lib/pages/chat_list/chat_list_item.dart +++ b/lib/pages/chat_list/chat_list_item.dart @@ -93,9 +93,6 @@ class ChatListItem extends StatelessWidget { ? false : room.getState(EventTypes.RoomMember, lastEvent.senderId) == null; final space = this.space; - final subtitleColor = theme.brightness == Brightness.light - ? theme.colorScheme.outline - : theme.colorScheme.onSurfaceVariant; return Dismissible( key: ValueKey(room.id), @@ -255,7 +252,7 @@ class ChatListItem extends StatelessWidget { lastEvent.originServerTs.localizedTimeShort(context), style: TextStyle( fontSize: 12, - color: subtitleColor, + color: theme.colorScheme.outline, ), ), ), @@ -296,9 +293,8 @@ class ChatListItem extends StatelessWidget { (room.summary.mJoinedMemberCount ?? 1) .toString(), ), - style: TextStyle( - color: subtitleColor, - ), + style: + TextStyle(color: theme.colorScheme.outline), ) : typingText.isNotEmpty ? Text( @@ -354,7 +350,7 @@ class ChatListItem extends StatelessWidget { : null, color: unread || room.hasNewMessages ? theme.colorScheme.onSurface - : subtitleColor, + : theme.colorScheme.outline, decoration: room.lastEvent?.redacted == true ? TextDecoration.lineThrough