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(
|
style: TextStyle(
|
||||||
fontWeight: filter ==
|
fontWeight: filter ==
|
||||||
controller.activeFilter
|
controller.activeFilter
|
||||||
? FontWeight.bold
|
? FontWeight.w500
|
||||||
: FontWeight.normal,
|
: FontWeight.normal,
|
||||||
color: filter ==
|
color: filter ==
|
||||||
controller.activeFilter
|
controller.activeFilter
|
||||||
|
|
|
||||||
|
|
@ -216,9 +216,7 @@ class ChatListItem extends StatelessWidget {
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
softWrap: false,
|
softWrap: false,
|
||||||
style: unread || room.hasNewMessages
|
style: const TextStyle(fontWeight: FontWeight.w500),
|
||||||
? const TextStyle(fontWeight: FontWeight.bold)
|
|
||||||
: null,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (isMuted)
|
if (isMuted)
|
||||||
|
|
@ -249,10 +247,8 @@ class ChatListItem extends StatelessWidget {
|
||||||
child: Text(
|
child: Text(
|
||||||
lastEvent.originServerTs.localizedTimeShort(context),
|
lastEvent.originServerTs.localizedTimeShort(context),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 13,
|
fontSize: 12,
|
||||||
color: unread
|
color: theme.colorScheme.outline,
|
||||||
? theme.colorScheme.secondary
|
|
||||||
: theme.textTheme.bodyMedium!.color,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
@ -293,6 +289,8 @@ class ChatListItem extends StatelessWidget {
|
||||||
(room.summary.mJoinedMemberCount ?? 1)
|
(room.summary.mJoinedMemberCount ?? 1)
|
||||||
.toString(),
|
.toString(),
|
||||||
),
|
),
|
||||||
|
style:
|
||||||
|
TextStyle(color: theme.colorScheme.outline),
|
||||||
)
|
)
|
||||||
: typingText.isNotEmpty
|
: typingText.isNotEmpty
|
||||||
? Text(
|
? Text(
|
||||||
|
|
@ -344,9 +342,11 @@ class ChatListItem extends StatelessWidget {
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontWeight: unread || room.hasNewMessages
|
fontWeight: unread || room.hasNewMessages
|
||||||
? FontWeight.bold
|
? FontWeight.w500
|
||||||
: null,
|
: null,
|
||||||
color: theme.colorScheme.onSurfaceVariant,
|
color: unread || room.hasNewMessages
|
||||||
|
? theme.colorScheme.onSurfaceVariant
|
||||||
|
: theme.colorScheme.outline,
|
||||||
decoration:
|
decoration:
|
||||||
room.lastEvent?.redacted == true
|
room.lastEvent?.redacted == true
|
||||||
? TextDecoration.lineThrough
|
? TextDecoration.lineThrough
|
||||||
|
|
|
||||||
|
|
@ -124,6 +124,8 @@ flutter:
|
||||||
- family: Ubuntu
|
- family: Ubuntu
|
||||||
fonts:
|
fonts:
|
||||||
- asset: fonts/Ubuntu/Ubuntu-Regular.ttf
|
- asset: fonts/Ubuntu/Ubuntu-Regular.ttf
|
||||||
|
- asset: fonts/Ubuntu/Ubuntu-Medium.ttf
|
||||||
|
weight: 500
|
||||||
- asset: fonts/Ubuntu/Ubuntu-Bold.ttf
|
- asset: fonts/Ubuntu/Ubuntu-Bold.ttf
|
||||||
weight: 600
|
weight: 600
|
||||||
- asset: fonts/Ubuntu/Ubuntu-Italic.ttf
|
- asset: fonts/Ubuntu/Ubuntu-Italic.ttf
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue