From a2c414f89a5ff830b8cc861490e104af6ffd7200 Mon Sep 17 00:00:00 2001 From: Leptopoda-GitHub Date: Sat, 30 Oct 2021 17:23:47 +0200 Subject: [PATCH] fix some toolbar color fixes #328 --- src/ui/flutter_app/lib/screens/game_page/game_page.dart | 3 +++ .../lib/screens/game_page/game_page_toolbar.dart | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ui/flutter_app/lib/screens/game_page/game_page.dart b/src/ui/flutter_app/lib/screens/game_page/game_page.dart index 23318348..93301ec1 100644 --- a/src/ui/flutter_app/lib/screens/game_page/game_page.dart +++ b/src/ui/flutter_app/lib/screens/game_page/game_page.dart @@ -1542,6 +1542,7 @@ class _GamePageState extends State ); return GamePageToolBar( + color: LocalDatabaseService.colorSettings.mainToolbarBackgroundColor, children: [ gameButton, optionsButton, @@ -1605,6 +1606,8 @@ class _GamePageState extends State ); return GamePageToolBar( + color: + LocalDatabaseService.colorSettings.navigationToolbarBackgroundColor, children: [ takeBackAllButton, takeBackButton, diff --git a/src/ui/flutter_app/lib/screens/game_page/game_page_toolbar.dart b/src/ui/flutter_app/lib/screens/game_page/game_page_toolbar.dart index ffe03d83..bcf3557c 100644 --- a/src/ui/flutter_app/lib/screens/game_page/game_page_toolbar.dart +++ b/src/ui/flutter_app/lib/screens/game_page/game_page_toolbar.dart @@ -20,9 +20,12 @@ part of 'package:sanmill/screens/game_page/game_page.dart'; class GamePageToolBar extends StatelessWidget { final List children; + final Color? color; + const GamePageToolBar({ Key? key, required this.children, + this.color, }) : super(key: key); @override @@ -30,8 +33,7 @@ class GamePageToolBar extends StatelessWidget { return Container( decoration: BoxDecoration( borderRadius: BorderRadius.circular(5), - color: - LocalDatabaseService.colorSettings.navigationToolbarBackgroundColor, + color: color, ), margin: const EdgeInsets.symmetric(vertical: 0.5), padding: const EdgeInsets.symmetric(vertical: 2),