Merge pull request #3596 from grummbeer/fix-coloring

Theme. Add secondary color, fix foreground color for buttons in dark mode
This commit is contained in:
RustDesk 2023-03-10 22:31:21 +08:00 committed by GitHub
commit 38c9e142ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: <ThemeExtension<dynamic>>[
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(