chore: Follow up colors
This commit is contained in:
parent
fba44d9946
commit
85c1258a9b
1 changed files with 4 additions and 8 deletions
|
|
@ -93,9 +93,6 @@ 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),
|
||||||
|
|
@ -255,7 +252,7 @@ class ChatListItem extends StatelessWidget {
|
||||||
lastEvent.originServerTs.localizedTimeShort(context),
|
lastEvent.originServerTs.localizedTimeShort(context),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: subtitleColor,
|
color: theme.colorScheme.outline,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
@ -296,9 +293,8 @@ class ChatListItem extends StatelessWidget {
|
||||||
(room.summary.mJoinedMemberCount ?? 1)
|
(room.summary.mJoinedMemberCount ?? 1)
|
||||||
.toString(),
|
.toString(),
|
||||||
),
|
),
|
||||||
style: TextStyle(
|
style:
|
||||||
color: subtitleColor,
|
TextStyle(color: theme.colorScheme.outline),
|
||||||
),
|
|
||||||
)
|
)
|
||||||
: typingText.isNotEmpty
|
: typingText.isNotEmpty
|
||||||
? Text(
|
? Text(
|
||||||
|
|
@ -354,7 +350,7 @@ class ChatListItem extends StatelessWidget {
|
||||||
: null,
|
: null,
|
||||||
color: unread || room.hasNewMessages
|
color: unread || room.hasNewMessages
|
||||||
? theme.colorScheme.onSurface
|
? theme.colorScheme.onSurface
|
||||||
: subtitleColor,
|
: theme.colorScheme.outline,
|
||||||
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