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,
|
systemNavigationBarColor: colorScheme.surface,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
listTileTheme: ListTileThemeData(
|
||||||
|
subtitleTextStyle: TextStyle(color: colorScheme.outline, fontSize: 14),
|
||||||
|
),
|
||||||
outlinedButtonTheme: OutlinedButtonThemeData(
|
outlinedButtonTheme: OutlinedButtonThemeData(
|
||||||
style: OutlinedButton.styleFrom(
|
style: OutlinedButton.styleFrom(
|
||||||
side: BorderSide(
|
side: BorderSide(
|
||||||
|
|
|
||||||
|
|
@ -78,8 +78,10 @@ class ChatAppBarTitle extends StatelessWidget {
|
||||||
builder: (context, presence) {
|
builder: (context, presence) {
|
||||||
final lastActiveTimestamp =
|
final lastActiveTimestamp =
|
||||||
presence?.lastActiveTimestamp;
|
presence?.lastActiveTimestamp;
|
||||||
final style =
|
final style = Theme.of(context)
|
||||||
Theme.of(context).textTheme.bodySmall;
|
.listTileTheme
|
||||||
|
.subtitleTextStyle
|
||||||
|
?.copyWith(fontSize: 12);
|
||||||
if (presence?.currentlyActive == true) {
|
if (presence?.currentlyActive == true) {
|
||||||
return Text(
|
return Text(
|
||||||
L10n.of(context).currentlyActive,
|
L10n.of(context).currentlyActive,
|
||||||
|
|
|
||||||
|
|
@ -199,7 +199,7 @@ class PresenceAvatar extends StatelessWidget {
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontSize: 10.5,
|
fontSize: 9,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
@ -254,7 +254,7 @@ class PresenceAvatar extends StatelessWidget {
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: 13,
|
fontSize: 11,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,20 @@ class _ShareScaffoldDialogState extends State<ShareScaffoldDialog> {
|
||||||
name: displayname,
|
name: displayname,
|
||||||
size: Avatar.defaultSize * 0.75,
|
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,
|
value: selectedRoomId == room.id,
|
||||||
onChanged: (_) => _toggleRoom(room.id),
|
onChanged: (_) => _toggleRoom(room.id),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue