fix: Bubble colors

This commit is contained in:
Krille Fear 2021-11-15 13:23:47 +01:00
parent 724586a73d
commit 48810a97c4
2 changed files with 2 additions and 4 deletions

View File

@ -59,9 +59,7 @@ class Message extends StatelessWidget {
final client = Matrix.of(context).client; final client = Matrix.of(context).client;
final ownMessage = event.senderId == client.userID; final ownMessage = event.senderId == client.userID;
final alignment = ownMessage ? Alignment.topRight : Alignment.topLeft; final alignment = ownMessage ? Alignment.topRight : Alignment.topLeft;
var color = Theme.of(context).brightness == Brightness.light var color = Theme.of(context).appBarTheme.backgroundColor;
? Colors.white
: Colors.grey.shade900;
final displayTime = event.type == EventTypes.RoomCreate || final displayTime = event.type == EventTypes.RoomCreate ||
nextEvent == null || nextEvent == null ||
!event.originServerTs.sameEnvironment(nextEvent.originServerTs); !event.originServerTs.sameEnvironment(nextEvent.originServerTs);

View File

@ -70,7 +70,7 @@ class TypingIndicators extends StatelessWidget {
Padding( Padding(
padding: const EdgeInsets.only(top: topPadding), padding: const EdgeInsets.only(top: topPadding),
child: Material( child: Material(
color: Theme.of(context).backgroundColor, color: Theme.of(context).appBarTheme.backgroundColor,
elevation: 6, elevation: 6,
shadowColor: shadowColor:
Theme.of(context).secondaryHeaderColor.withAlpha(100), Theme.of(context).secondaryHeaderColor.withAlpha(100),