diff --git a/lib/theme/themes.dart b/lib/theme/themes.dart index 84d02ddf3..9cf6f14bd 100644 --- a/lib/theme/themes.dart +++ b/lib/theme/themes.dart @@ -10,7 +10,6 @@ class Themes { brightness: Brightness.dark, accentColor: _accentColor, scaffoldBackgroundColor: Colors.grey[900], - buttonColor: _accentColor, dialogBackgroundColor: Colors.grey[850], toggleableActiveColor: _accentColor, tooltipTheme: TooltipThemeData( @@ -25,6 +24,12 @@ class Themes { ), ), ), + colorScheme: ColorScheme.dark( + primary: _accentColor, + secondary: _accentColor, + onPrimary: Colors.white, + onSecondary: Colors.white, + ), snackBarTheme: SnackBarThemeData( backgroundColor: Colors.grey[800], contentTextStyle: TextStyle( @@ -32,16 +37,6 @@ class Themes { ), behavior: SnackBarBehavior.floating, ), - elevatedButtonTheme: ElevatedButtonThemeData( - style: ElevatedButton.styleFrom( - primary: _accentColor, - ), - ), - outlinedButtonTheme: OutlinedButtonThemeData( - style: OutlinedButton.styleFrom( - primary: _accentColor, - ), - ), textButtonTheme: TextButtonThemeData( style: TextButton.styleFrom( primary: Colors.white,