From 7ff3fdeafdf7d35e30b2e10407730b48940d3d4d Mon Sep 17 00:00:00 2001 From: grummbeer Date: Fri, 10 Mar 2023 14:12:28 +0100 Subject: [PATCH] Add secondary color, fix foreground color for dark mode --- flutter/lib/common.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flutter/lib/common.dart b/flutter/lib/common.dart index d9c052723..c65993d99 100644 --- a/flutter/lib/common.dart +++ b/flutter/lib/common.dart @@ -252,7 +252,8 @@ class MyTheme { ), ), ), - colorScheme: ColorScheme.light(primary: Colors.blue, background: grayBg), + colorScheme: ColorScheme.light( + primary: Colors.blue, secondary: accent, background: grayBg), ).copyWith( extensions: >[ ColorThemeExtension.light, @@ -317,6 +318,7 @@ class MyTheme { elevatedButtonTheme: ElevatedButtonThemeData( style: ElevatedButton.styleFrom( backgroundColor: MyTheme.accent, + foregroundColor: Colors.white, disabledForegroundColor: Colors.white70, disabledBackgroundColor: Colors.white10, shape: RoundedRectangleBorder( @@ -336,7 +338,6 @@ class MyTheme { ), ), checkboxTheme: const CheckboxThemeData( - checkColor: MaterialStatePropertyAll(dark), splashRadius: 0, shape: RoundedRectangleBorder( borderRadius: BorderRadius.all( @@ -353,6 +354,7 @@ class MyTheme { ), colorScheme: ColorScheme.dark( primary: Colors.blue, + secondary: accent, background: Color(0xFF24252B), ), ).copyWith(