From c0bb4ba2a83530846054376ab6b5818f1caa6feb Mon Sep 17 00:00:00 2001 From: Thibault Deckers Date: Sun, 18 Apr 2021 16:04:26 +0900 Subject: [PATCH] viewer: fixed slider theme --- lib/theme/themes.dart | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) 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,