From 6f8b671acb31de4edba91f3171d6b32033077f7c Mon Sep 17 00:00:00 2001 From: stonegate Date: Sun, 16 Aug 2020 01:27:54 +0800 Subject: [PATCH] Improve dark mode colors. --- lib/main.dart | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 318272e..5992991 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -60,13 +60,16 @@ class MyApp extends StatelessWidget { accentColor: setting.accentSetColor, cursorColor: setting.accentSetColor, textSelectionHandleColor: setting.accentSetColor, - toggleableActiveColor: setting.accentSetColor), + toggleableActiveColor: setting.accentSetColor, + buttonTheme: ButtonThemeData( + hoverColor: setting.accentSetColor.withAlpha(70))), darkTheme: ThemeData.dark().copyWith( accentColor: setting.accentSetColor, primaryColorDark: Colors.grey[800], scaffoldBackgroundColor: - setting.realDark ? Colors.black87 : null, - primaryColor: setting.realDark ? Colors.black : null, + setting.realDark ? Colors.black87 : Color(0XFF212121), + primaryColor: + setting.realDark ? Colors.black : Color(0XFF1B1B1B), popupMenuTheme: PopupMenuThemeData().copyWith( color: setting.realDark ? Colors.grey[900] : null), appBarTheme: AppBarTheme(elevation: 0),