chore: Follow up design

This commit is contained in:
Krille 2024-03-27 08:59:32 +01:00
parent 554f951a30
commit e9a9075139
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
2 changed files with 8 additions and 4 deletions

View file

@ -386,10 +386,14 @@ class Message extends StatelessWidget {
BorderRadius.circular(AppConfig.borderRadius / 2), BorderRadius.circular(AppConfig.borderRadius / 2),
clipBehavior: Clip.antiAlias, clipBehavior: Clip.antiAlias,
child: Padding( child: Padding(
padding: const EdgeInsets.all(4.0), padding: const EdgeInsets.only(top: 4.0),
child: Text( child: Text(
event.originServerTs.localizedTime(context), event.originServerTs.localizedTime(context),
style: TextStyle(fontSize: 13 * AppConfig.fontSizeFactor), style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 12 * AppConfig.fontSizeFactor,
color: Theme.of(context).colorScheme.secondary,
),
), ),
), ),
), ),

View file

@ -31,8 +31,8 @@ class StateMessage extends StatelessWidget {
), ),
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
fontSize: 13 * AppConfig.fontSizeFactor, fontSize: 12 * AppConfig.fontSizeFactor,
color: Theme.of(context).colorScheme.onSecondaryContainer, color: Theme.of(context).colorScheme.secondary,
decoration: decoration:
event.redacted ? TextDecoration.lineThrough : null, event.redacted ? TextDecoration.lineThrough : null,
), ),