From 1ebb045f8fa4014adcacc3d49956b2525aedb8b5 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Fri, 7 Feb 2020 20:00:20 +0100 Subject: [PATCH] Fix design --- lib/components/list_items/message.dart | 5 +++-- lib/components/list_items/state_message.dart | 1 + lib/main.dart | 2 +- lib/views/chat.dart | 1 - 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/components/list_items/message.dart b/lib/components/list_items/message.dart index 82acc02..bb81d02 100644 --- a/lib/components/list_items/message.dart +++ b/lib/components/list_items/message.dart @@ -29,7 +29,7 @@ class Message extends StatelessWidget { Client client = Matrix.of(context).client; final bool ownMessage = event.senderId == client.userID; Alignment alignment = ownMessage ? Alignment.topRight : Alignment.topLeft; - Color color = Colors.white; + Color color = Theme.of(context).secondaryHeaderColor; final bool sameSender = nextEvent != null && [EventTypes.Message, EventTypes.Sticker].contains(nextEvent.type) ? nextEvent.sender.id == event.sender.id @@ -135,7 +135,8 @@ class Message extends StatelessWidget { duration: Duration(milliseconds: 500), opacity: event.status == 0 ? 0.5 : 1, child: Bubble( - //elevation: 0, + elevation: 0, + radius: Radius.circular(8), alignment: alignment, margin: BubbleEdges.symmetric(horizontal: 4), color: color, diff --git a/lib/components/list_items/state_message.dart b/lib/components/list_items/state_message.dart index 0f751c6..f50753a 100644 --- a/lib/components/list_items/state_message.dart +++ b/lib/components/list_items/state_message.dart @@ -20,6 +20,7 @@ class StateMessage extends StatelessWidget { child: Opacity( opacity: 0.5, child: Bubble( + elevation: 0, color: Colors.black, alignment: Alignment.center, child: LinkText( diff --git a/lib/main.dart b/lib/main.dart index 6d24ac7..dfb2ea1 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -29,7 +29,7 @@ class App extends StatelessWidget { brightness: Brightness.light, primaryColor: Color(0xFF5625BA), backgroundColor: Colors.white, - secondaryHeaderColor: Color(0xFFF6F0F6), + secondaryHeaderColor: Color(0xFFECECF2), scaffoldBackgroundColor: Colors.white, dialogTheme: DialogTheme( shape: RoundedRectangleBorder( diff --git a/lib/views/chat.dart b/lib/views/chat.dart index a941d68..159cb2d 100644 --- a/lib/views/chat.dart +++ b/lib/views/chat.dart @@ -253,7 +253,6 @@ class _ChatState extends State<_Chat> { ), actions: [ChatSettingsPopupMenu(room, !room.isDirectChat)], ), - backgroundColor: Theme.of(context).secondaryHeaderColor, body: SafeArea( child: Column( children: [