chore: Slightly adjust font sizes and design
This commit is contained in:
parent
c8d2bd8d0a
commit
2710e66fae
4 changed files with 23 additions and 5 deletions
|
|
@ -102,6 +102,9 @@ abstract class FluffyThemes {
|
|||
systemNavigationBarColor: colorScheme.surface,
|
||||
),
|
||||
),
|
||||
listTileTheme: ListTileThemeData(
|
||||
subtitleTextStyle: TextStyle(color: colorScheme.outline, fontSize: 14),
|
||||
),
|
||||
outlinedButtonTheme: OutlinedButtonThemeData(
|
||||
style: OutlinedButton.styleFrom(
|
||||
side: BorderSide(
|
||||
|
|
|
|||
|
|
@ -78,8 +78,10 @@ class ChatAppBarTitle extends StatelessWidget {
|
|||
builder: (context, presence) {
|
||||
final lastActiveTimestamp =
|
||||
presence?.lastActiveTimestamp;
|
||||
final style =
|
||||
Theme.of(context).textTheme.bodySmall;
|
||||
final style = Theme.of(context)
|
||||
.listTileTheme
|
||||
.subtitleTextStyle
|
||||
?.copyWith(fontSize: 12);
|
||||
if (presence?.currentlyActive == true) {
|
||||
return Text(
|
||||
L10n.of(context).currentlyActive,
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@ class PresenceAvatar extends StatelessWidget {
|
|||
overflow: TextOverflow.ellipsis,
|
||||
style: const TextStyle(
|
||||
color: Colors.black,
|
||||
fontSize: 10.5,
|
||||
fontSize: 9,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
@ -254,7 +254,7 @@ class PresenceAvatar extends StatelessWidget {
|
|||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: const TextStyle(
|
||||
fontSize: 13,
|
||||
fontSize: 11,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -146,7 +146,20 @@ class _ShareScaffoldDialogState extends State<ShareScaffoldDialog> {
|
|||
name: displayname,
|
||||
size: Avatar.defaultSize * 0.75,
|
||||
),
|
||||
title: Text(displayname),
|
||||
title: Text(
|
||||
displayname,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
subtitle: Text(
|
||||
room.directChatMatrixID ??
|
||||
L10n.of(context).countParticipants(
|
||||
(room.summary.mJoinedMemberCount ?? 0) +
|
||||
(room.summary.mInvitedMemberCount ?? 0),
|
||||
),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
value: selectedRoomId == room.id,
|
||||
onChanged: (_) => _toggleRoom(room.id),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue