From 48810a97c48f5fbc3af9b978e146943544f3b7c4 Mon Sep 17 00:00:00 2001 From: Krille Fear Date: Mon, 15 Nov 2021 13:23:47 +0100 Subject: [PATCH] fix: Bubble colors --- lib/pages/chat/events/message.dart | 4 +--- lib/pages/chat/typing_indicators.dart | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/pages/chat/events/message.dart b/lib/pages/chat/events/message.dart index c2d0d475..52373f31 100644 --- a/lib/pages/chat/events/message.dart +++ b/lib/pages/chat/events/message.dart @@ -59,9 +59,7 @@ class Message extends StatelessWidget { final client = Matrix.of(context).client; final ownMessage = event.senderId == client.userID; final alignment = ownMessage ? Alignment.topRight : Alignment.topLeft; - var color = Theme.of(context).brightness == Brightness.light - ? Colors.white - : Colors.grey.shade900; + var color = Theme.of(context).appBarTheme.backgroundColor; final displayTime = event.type == EventTypes.RoomCreate || nextEvent == null || !event.originServerTs.sameEnvironment(nextEvent.originServerTs); diff --git a/lib/pages/chat/typing_indicators.dart b/lib/pages/chat/typing_indicators.dart index 51dcb768..ef9dc87c 100644 --- a/lib/pages/chat/typing_indicators.dart +++ b/lib/pages/chat/typing_indicators.dart @@ -70,7 +70,7 @@ class TypingIndicators extends StatelessWidget { Padding( padding: const EdgeInsets.only(top: topPadding), child: Material( - color: Theme.of(context).backgroundColor, + color: Theme.of(context).appBarTheme.backgroundColor, elevation: 6, shadowColor: Theme.of(context).secondaryHeaderColor.withAlpha(100),