chore: Follow up colors
This commit is contained in:
parent
74f57e2a31
commit
040c2b8369
1 changed files with 14 additions and 6 deletions
|
|
@ -93,6 +93,9 @@ class ChatListItem extends StatelessWidget {
|
||||||
? false
|
? false
|
||||||
: room.getState(EventTypes.RoomMember, lastEvent.senderId) == null;
|
: room.getState(EventTypes.RoomMember, lastEvent.senderId) == null;
|
||||||
final space = this.space;
|
final space = this.space;
|
||||||
|
final subtitleColor = theme.brightness == Brightness.light
|
||||||
|
? theme.colorScheme.outline
|
||||||
|
: theme.colorScheme.onSurfaceVariant;
|
||||||
|
|
||||||
return Dismissible(
|
return Dismissible(
|
||||||
key: ValueKey(room.id),
|
key: ValueKey(room.id),
|
||||||
|
|
@ -216,7 +219,11 @@ class ChatListItem extends StatelessWidget {
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
softWrap: false,
|
softWrap: false,
|
||||||
style: const TextStyle(fontWeight: FontWeight.w500),
|
style: TextStyle(
|
||||||
|
fontWeight: unread || room.hasNewMessages
|
||||||
|
? FontWeight.w500
|
||||||
|
: null,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (isMuted)
|
if (isMuted)
|
||||||
|
|
@ -248,7 +255,7 @@ class ChatListItem extends StatelessWidget {
|
||||||
lastEvent.originServerTs.localizedTimeShort(context),
|
lastEvent.originServerTs.localizedTimeShort(context),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: theme.colorScheme.outline,
|
color: subtitleColor,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
@ -289,8 +296,9 @@ class ChatListItem extends StatelessWidget {
|
||||||
(room.summary.mJoinedMemberCount ?? 1)
|
(room.summary.mJoinedMemberCount ?? 1)
|
||||||
.toString(),
|
.toString(),
|
||||||
),
|
),
|
||||||
style:
|
style: TextStyle(
|
||||||
TextStyle(color: theme.colorScheme.outline),
|
color: subtitleColor,
|
||||||
|
),
|
||||||
)
|
)
|
||||||
: typingText.isNotEmpty
|
: typingText.isNotEmpty
|
||||||
? Text(
|
? Text(
|
||||||
|
|
@ -345,8 +353,8 @@ class ChatListItem extends StatelessWidget {
|
||||||
? FontWeight.w500
|
? FontWeight.w500
|
||||||
: null,
|
: null,
|
||||||
color: unread || room.hasNewMessages
|
color: unread || room.hasNewMessages
|
||||||
? theme.colorScheme.onSurfaceVariant
|
? theme.colorScheme.onSurface
|
||||||
: theme.colorScheme.outline,
|
: subtitleColor,
|
||||||
decoration:
|
decoration:
|
||||||
room.lastEvent?.redacted == true
|
room.lastEvent?.redacted == true
|
||||||
? TextDecoration.lineThrough
|
? TextDecoration.lineThrough
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue