Add secondary color, fix foreground color for dark mode
This commit is contained in:
parent
5d6ee18392
commit
7ff3fdeafd
@ -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(
|
).copyWith(
|
||||||
extensions: <ThemeExtension<dynamic>>[
|
extensions: <ThemeExtension<dynamic>>[
|
||||||
ColorThemeExtension.light,
|
ColorThemeExtension.light,
|
||||||
@ -317,6 +318,7 @@ class MyTheme {
|
|||||||
elevatedButtonTheme: ElevatedButtonThemeData(
|
elevatedButtonTheme: ElevatedButtonThemeData(
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
backgroundColor: MyTheme.accent,
|
backgroundColor: MyTheme.accent,
|
||||||
|
foregroundColor: Colors.white,
|
||||||
disabledForegroundColor: Colors.white70,
|
disabledForegroundColor: Colors.white70,
|
||||||
disabledBackgroundColor: Colors.white10,
|
disabledBackgroundColor: Colors.white10,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
@ -336,7 +338,6 @@ class MyTheme {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
checkboxTheme: const CheckboxThemeData(
|
checkboxTheme: const CheckboxThemeData(
|
||||||
checkColor: MaterialStatePropertyAll(dark),
|
|
||||||
splashRadius: 0,
|
splashRadius: 0,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.all(
|
borderRadius: BorderRadius.all(
|
||||||
@ -353,6 +354,7 @@ class MyTheme {
|
|||||||
),
|
),
|
||||||
colorScheme: ColorScheme.dark(
|
colorScheme: ColorScheme.dark(
|
||||||
primary: Colors.blue,
|
primary: Colors.blue,
|
||||||
|
secondary: accent,
|
||||||
background: Color(0xFF24252B),
|
background: Color(0xFF24252B),
|
||||||
),
|
),
|
||||||
).copyWith(
|
).copyWith(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user