mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-03 02:29:29 +01:00
fix: Bubble colors
This commit is contained in:
parent
724586a73d
commit
48810a97c4
@ -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);
|
||||||
|
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user