design: Make unread listtiles more visible
This commit is contained in:
parent
3abe6c2ac1
commit
76363480b5
|
@ -258,6 +258,7 @@ class ChatListItem extends StatelessWidget {
|
||||||
L10n.of(context).youAreInvitedToThisChat,
|
L10n.of(context).youAreInvitedToThisChat,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Theme.of(context).colorScheme.secondary,
|
color: Theme.of(context).colorScheme.secondary,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
),
|
),
|
||||||
softWrap: false,
|
softWrap: false,
|
||||||
)
|
)
|
||||||
|
@ -271,9 +272,11 @@ class ChatListItem extends StatelessWidget {
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: room.notificationCount > 0
|
color: room.isUnread
|
||||||
? Theme.of(context).colorScheme.secondary
|
? Theme.of(context).colorScheme.secondary
|
||||||
: null,
|
: null,
|
||||||
|
fontWeight:
|
||||||
|
room.isUnread ? FontWeight.bold : null,
|
||||||
decoration: room.lastEvent?.redacted == true
|
decoration: room.lastEvent?.redacted == true
|
||||||
? TextDecoration.lineThrough
|
? TextDecoration.lineThrough
|
||||||
: null,
|
: null,
|
||||||
|
@ -286,9 +289,9 @@ class ChatListItem extends StatelessWidget {
|
||||||
curve: Curves.bounceInOut,
|
curve: Curves.bounceInOut,
|
||||||
padding: EdgeInsets.symmetric(horizontal: 7),
|
padding: EdgeInsets.symmetric(horizontal: 7),
|
||||||
height: unreadBubbleSize,
|
height: unreadBubbleSize,
|
||||||
width: room.notificationCount == 0 && room.isUnread ? 0 : null,
|
width: room.notificationCount == 0 && !room.isUnread ? 0 : null,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: room.highlightCount > 0 || room.markedUnread
|
color: room.highlightCount > 0
|
||||||
? Colors.red
|
? Colors.red
|
||||||
: Theme.of(context).primaryColor,
|
: Theme.of(context).primaryColor,
|
||||||
borderRadius: BorderRadius.circular(AppConfig.borderRadius),
|
borderRadius: BorderRadius.circular(AppConfig.borderRadius),
|
||||||
|
|
Loading…
Reference in New Issue