mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-19 03:35:12 +00:00
chore: Nicer background for sate message and time in chat
This commit is contained in:
parent
3434741bc5
commit
30e3a4f2ff
3 changed files with 22 additions and 21 deletions
|
@ -435,13 +435,6 @@ class Message extends StatelessWidget {
|
||||||
? const EdgeInsets.symmetric(vertical: 8.0)
|
? const EdgeInsets.symmetric(vertical: 8.0)
|
||||||
: EdgeInsets.zero,
|
: EdgeInsets.zero,
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Material(
|
|
||||||
color: displayTime
|
|
||||||
? Theme.of(context).colorScheme.surface
|
|
||||||
: Theme.of(context).colorScheme.surface.withOpacity(0.33),
|
|
||||||
borderRadius:
|
|
||||||
BorderRadius.circular(AppConfig.borderRadius / 2),
|
|
||||||
clipBehavior: Clip.antiAlias,
|
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.only(top: 4.0),
|
padding: const EdgeInsets.only(top: 4.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
|
@ -450,7 +443,12 @@ class Message extends StatelessWidget {
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontSize: 12 * AppConfig.fontSizeFactor,
|
fontSize: 12 * AppConfig.fontSizeFactor,
|
||||||
color: Theme.of(context).colorScheme.secondary,
|
color: Theme.of(context).colorScheme.secondary,
|
||||||
|
shadows: [
|
||||||
|
Shadow(
|
||||||
|
color: Theme.of(context).colorScheme.surface,
|
||||||
|
blurRadius: 3,
|
||||||
),
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -17,10 +17,6 @@ class StateMessage extends StatelessWidget {
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Container(
|
child: Container(
|
||||||
padding: const EdgeInsets.all(8),
|
padding: const EdgeInsets.all(8),
|
||||||
decoration: BoxDecoration(
|
|
||||||
color: Theme.of(context).colorScheme.surface,
|
|
||||||
borderRadius: BorderRadius.circular(AppConfig.borderRadius / 2),
|
|
||||||
),
|
|
||||||
child: Text(
|
child: Text(
|
||||||
event.calcLocalizedBodyFallback(
|
event.calcLocalizedBodyFallback(
|
||||||
MatrixLocals(L10n.of(context)!),
|
MatrixLocals(L10n.of(context)!),
|
||||||
|
@ -29,6 +25,12 @@ class StateMessage extends StatelessWidget {
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 12 * AppConfig.fontSizeFactor,
|
fontSize: 12 * AppConfig.fontSizeFactor,
|
||||||
decoration: event.redacted ? TextDecoration.lineThrough : null,
|
decoration: event.redacted ? TextDecoration.lineThrough : null,
|
||||||
|
shadows: [
|
||||||
|
Shadow(
|
||||||
|
color: Theme.of(context).colorScheme.surface,
|
||||||
|
blurRadius: 3,
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import 'package:fluffychat/config/themes.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
import 'package:fluffychat/config/themes.dart';
|
||||||
|
|
||||||
class TwoColumnLayout extends StatelessWidget {
|
class TwoColumnLayout extends StatelessWidget {
|
||||||
final Widget mainView;
|
final Widget mainView;
|
||||||
final Widget sideView;
|
final Widget sideView;
|
||||||
|
|
Loading…
Reference in a new issue