chore: Follow up wallpaper configs

This commit is contained in:
krille-chan 2024-11-01 11:59:08 +01:00
commit 66ea73ea18
No known key found for this signature in database
3 changed files with 81 additions and 33 deletions

View file

@ -12,19 +12,29 @@ class StateMessage extends StatelessWidget {
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0),
child: Center(
child: Container(
padding: const EdgeInsets.all(8),
child: Text(
event.calcLocalizedBodyFallback(
MatrixLocals(L10n.of(context)),
),
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 12 * AppConfig.fontSizeFactor,
decoration: event.redacted ? TextDecoration.lineThrough : null,
child: Padding(
padding: const EdgeInsets.all(4),
child: Material(
color: theme.colorScheme.surface.withAlpha(128),
borderRadius: BorderRadius.circular(AppConfig.borderRadius / 3),
child: Padding(
padding:
const EdgeInsets.symmetric(horizontal: 8.0, vertical: 4.0),
child: Text(
event.calcLocalizedBodyFallback(
MatrixLocals(L10n.of(context)),
),
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 12 * AppConfig.fontSizeFactor,
decoration:
event.redacted ? TextDecoration.lineThrough : null,
),
),
),
),
),