WIP Themes: new dark theme
This commit is contained in:
parent
379e1a4a7e
commit
f53554702e
@ -107,20 +107,23 @@ class HAClientTheme {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
final ThemeData darkTheme = ThemeData.dark().copyWith(
|
final ThemeData darkTheme = ThemeData.from(
|
||||||
textTheme: ThemeData.light().textTheme.copyWith(
|
colorScheme: ColorScheme(
|
||||||
display1: textTheme.display1.copyWith(color: Colors.white70),
|
primary: Color.fromRGBO(112, 154, 193, 1),
|
||||||
display2: textTheme.display2.copyWith(color: Colors.redAccent),
|
primaryVariant: Color.fromRGBO(68, 115, 158, 1),
|
||||||
headline: textTheme.headline.copyWith(color: Colors.white),
|
secondary: Color.fromRGBO(253, 216, 53, 1),
|
||||||
title: textTheme.title.copyWith(color: Colors.white),
|
secondaryVariant: Color.fromRGBO(222, 181, 2, 1),
|
||||||
subhead: textTheme.subhead.copyWith(color: Colors.white70),
|
background: Color.fromRGBO(47, 49, 54, 1),
|
||||||
body1: textTheme.body1.copyWith(color: Colors.white),
|
surface: Color.fromRGBO(54, 57, 63, 1),
|
||||||
body2: textTheme.body2.copyWith(color: Colors.white),
|
error: Color.fromRGBO(183, 109, 109, 1),
|
||||||
subtitle: textTheme.subtitle.copyWith(color: Colors.white70),
|
onPrimary: Colors.white,
|
||||||
caption: textTheme.caption.copyWith(color: Colors.white70),
|
onSecondary: Colors.black87,
|
||||||
overline: textTheme.overline.copyWith(color: Colors.white54),
|
onBackground: Color.fromRGBO(220, 221, 222, 1),
|
||||||
button: textTheme.button.copyWith(color: Colors.white),
|
onSurface: Colors.white,
|
||||||
)
|
onError: Colors.white,
|
||||||
|
brightness: Brightness.dark
|
||||||
|
),
|
||||||
|
textTheme: textTheme
|
||||||
);
|
);
|
||||||
|
|
||||||
Color getOnStateColor(BuildContext context) {
|
Color getOnStateColor(BuildContext context) {
|
||||||
|
Reference in New Issue
Block a user