chore: Mark muted unread rooms with bold text
This commit is contained in:
parent
45e1122648
commit
73c08c3fdd
1 changed files with 4 additions and 2 deletions
|
|
@ -111,7 +111,7 @@ class ChatListItem extends StatelessWidget {
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
softWrap: false,
|
softWrap: false,
|
||||||
style: unread
|
style: unread || room.hasNewMessages
|
||||||
? const TextStyle(fontWeight: FontWeight.bold)
|
? const TextStyle(fontWeight: FontWeight.bold)
|
||||||
: null,
|
: null,
|
||||||
),
|
),
|
||||||
|
|
@ -222,7 +222,9 @@ class ChatListItem extends StatelessWidget {
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontWeight: unread ? FontWeight.w600 : null,
|
fontWeight: unread || room.hasNewMessages
|
||||||
|
? FontWeight.bold
|
||||||
|
: null,
|
||||||
color: Theme.of(context)
|
color: Theme.of(context)
|
||||||
.colorScheme
|
.colorScheme
|
||||||
.onSurfaceVariant,
|
.onSurfaceVariant,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue