From 9b523b00a637fb632eb067a88b4c67012d71f0fb Mon Sep 17 00:00:00 2001 From: Krille Date: Mon, 23 Oct 2023 13:58:43 +0200 Subject: [PATCH] chore: Minor design fixes --- lib/pages/chat/chat_view.dart | 8 +++++++- lib/pages/chat/events/reply_content.dart | 6 +++--- lib/pages/chat/pinned_events.dart | 6 ++++++ 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/lib/pages/chat/chat_view.dart b/lib/pages/chat/chat_view.dart index 402daea6..a92d6ce8 100644 --- a/lib/pages/chat/chat_view.dart +++ b/lib/pages/chat/chat_view.dart @@ -225,7 +225,13 @@ class ChatView extends StatelessWidget { Material( color: Theme.of(context) .colorScheme - .secondaryContainer, + .surfaceVariant, + shape: Border( + bottom: BorderSide( + width: 1, + color: Theme.of(context).dividerColor, + ), + ), child: ListTile( leading: IconButton( color: Theme.of(context) diff --git a/lib/pages/chat/events/reply_content.dart b/lib/pages/chat/events/reply_content.dart index 69d244c0..6de2e592 100644 --- a/lib/pages/chat/events/reply_content.dart +++ b/lib/pages/chat/events/reply_content.dart @@ -36,7 +36,7 @@ class ReplyContent extends StatelessWidget { maxLines: 1, style: TextStyle( color: ownMessage - ? Theme.of(context).colorScheme.onPrimaryContainer + ? Theme.of(context).colorScheme.onPrimary : Theme.of(context).colorScheme.onBackground, fontSize: fontSize, ), @@ -49,7 +49,7 @@ class ReplyContent extends StatelessWidget { width: 3, height: fontSize * 2 + 6, color: ownMessage - ? Theme.of(context).colorScheme.onPrimaryContainer + ? Theme.of(context).colorScheme.onPrimary : Theme.of(context).colorScheme.onBackground, ), const SizedBox(width: 6), @@ -68,7 +68,7 @@ class ReplyContent extends StatelessWidget { style: TextStyle( fontWeight: FontWeight.bold, color: ownMessage - ? Theme.of(context).colorScheme.onPrimaryContainer + ? Theme.of(context).colorScheme.onPrimary : Theme.of(context).colorScheme.onBackground, fontSize: fontSize, ), diff --git a/lib/pages/chat/pinned_events.dart b/lib/pages/chat/pinned_events.dart index 8f68eea5..ae81b46e 100644 --- a/lib/pages/chat/pinned_events.dart +++ b/lib/pages/chat/pinned_events.dart @@ -73,6 +73,12 @@ class PinnedEvents extends StatelessWidget { final fontSize = AppConfig.messageFontSize * AppConfig.fontSizeFactor; return Material( color: Theme.of(context).colorScheme.surfaceVariant, + shape: Border( + bottom: BorderSide( + width: 1, + color: Theme.of(context).dividerColor, + ), + ), child: InkWell( onTap: () => _displayPinnedEventsDialog( context,