chore: Add medium font
This commit is contained in:
parent
00165d925e
commit
05847c37f0
4 changed files with 12 additions and 10 deletions
BIN
fonts/Ubuntu/Ubuntu-Medium.ttf
Normal file
BIN
fonts/Ubuntu/Ubuntu-Medium.ttf
Normal file
Binary file not shown.
|
|
@ -210,7 +210,7 @@ class ChatListViewBody extends StatelessWidget {
|
|||
style: TextStyle(
|
||||
fontWeight: filter ==
|
||||
controller.activeFilter
|
||||
? FontWeight.bold
|
||||
? FontWeight.w500
|
||||
: FontWeight.normal,
|
||||
color: filter ==
|
||||
controller.activeFilter
|
||||
|
|
|
|||
|
|
@ -216,9 +216,7 @@ class ChatListItem extends StatelessWidget {
|
|||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
softWrap: false,
|
||||
style: unread || room.hasNewMessages
|
||||
? const TextStyle(fontWeight: FontWeight.bold)
|
||||
: null,
|
||||
style: const TextStyle(fontWeight: FontWeight.w500),
|
||||
),
|
||||
),
|
||||
if (isMuted)
|
||||
|
|
@ -249,10 +247,8 @@ class ChatListItem extends StatelessWidget {
|
|||
child: Text(
|
||||
lastEvent.originServerTs.localizedTimeShort(context),
|
||||
style: TextStyle(
|
||||
fontSize: 13,
|
||||
color: unread
|
||||
? theme.colorScheme.secondary
|
||||
: theme.textTheme.bodyMedium!.color,
|
||||
fontSize: 12,
|
||||
color: theme.colorScheme.outline,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
@ -293,6 +289,8 @@ class ChatListItem extends StatelessWidget {
|
|||
(room.summary.mJoinedMemberCount ?? 1)
|
||||
.toString(),
|
||||
),
|
||||
style:
|
||||
TextStyle(color: theme.colorScheme.outline),
|
||||
)
|
||||
: typingText.isNotEmpty
|
||||
? Text(
|
||||
|
|
@ -344,9 +342,11 @@ class ChatListItem extends StatelessWidget {
|
|||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(
|
||||
fontWeight: unread || room.hasNewMessages
|
||||
? FontWeight.bold
|
||||
? FontWeight.w500
|
||||
: null,
|
||||
color: theme.colorScheme.onSurfaceVariant,
|
||||
color: unread || room.hasNewMessages
|
||||
? theme.colorScheme.onSurfaceVariant
|
||||
: theme.colorScheme.outline,
|
||||
decoration:
|
||||
room.lastEvent?.redacted == true
|
||||
? TextDecoration.lineThrough
|
||||
|
|
|
|||
|
|
@ -124,6 +124,8 @@ flutter:
|
|||
- family: Ubuntu
|
||||
fonts:
|
||||
- asset: fonts/Ubuntu/Ubuntu-Regular.ttf
|
||||
- asset: fonts/Ubuntu/Ubuntu-Medium.ttf
|
||||
weight: 500
|
||||
- asset: fonts/Ubuntu/Ubuntu-Bold.ttf
|
||||
weight: 600
|
||||
- asset: fonts/Ubuntu/Ubuntu-Italic.ttf
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue