From 983066e4a767e9f07f34320bc1c1a9c6537f387f Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Fri, 5 Aug 2022 17:07:46 +0200 Subject: [PATCH] chore: Adjust design --- lib/config/themes.dart | 4 +++- lib/pages/chat/chat_view.dart | 3 +-- lib/pages/chat_list/chat_list_header.dart | 4 +++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/config/themes.dart b/lib/config/themes.dart index 9ca9f686b..0f8467097 100644 --- a/lib/config/themes.dart +++ b/lib/config/themes.dart @@ -58,8 +58,10 @@ abstract class FluffyThemes { border: UnderlineInputBorder(borderSide: BorderSide(width: 1)), filled: true, ), - appBarTheme: const AppBarTheme( + appBarTheme: AppBarTheme( systemOverlayStyle: SystemUiOverlayStyle.dark, + surfaceTintColor: Colors.white, + shadowColor: Colors.black.withAlpha(64), ), ); diff --git a/lib/pages/chat/chat_view.dart b/lib/pages/chat/chat_view.dart index 1e1776c52..2cae86d18 100644 --- a/lib/pages/chat/chat_view.dart +++ b/lib/pages/chat/chat_view.dart @@ -164,7 +164,7 @@ class ChatView extends StatelessWidget { builder: (BuildContext context, snapshot) { return Scaffold( appBar: AppBar( - elevation: 2, + elevation: 3, actionsIconTheme: IconThemeData( color: controller.selectedEvents.isEmpty ? null @@ -193,7 +193,6 @@ class ChatView extends StatelessWidget { ), ) : null, - backgroundColor: Theme.of(context).colorScheme.surface, body: DropTarget( onDragDone: controller.onDragDone, onDragEntered: controller.onDragEntered, diff --git a/lib/pages/chat_list/chat_list_header.dart b/lib/pages/chat_list/chat_list_header.dart index 3cd78d4cc..7aad81ef1 100644 --- a/lib/pages/chat_list/chat_list_header.dart +++ b/lib/pages/chat_list/chat_list_header.dart @@ -1,3 +1,4 @@ +import 'package:fluffychat/config/app_config.dart'; import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/l10n.dart'; @@ -47,7 +48,8 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget { .withAlpha(128), border: UnderlineInputBorder( borderSide: BorderSide.none, - borderRadius: BorderRadius.circular(90), + borderRadius: + BorderRadius.circular(AppConfig.borderRadius), ), hintText: controller.activeSpacesEntry.getName(context), prefixIcon: Padding(