Jisho-Study-Tool/lib/models/themes/dark.dart

68 lines
1.6 KiB
Dart
Raw Normal View History

2021-08-08 23:16:54 +02:00
part of './theme.dart';
class DarkTheme extends AppTheme {
2022-01-17 14:50:01 +01:00
const DarkTheme() : super();
static const ColorSet defaultKanjiResultColor = ColorSet(
foreground: Colors.white,
background: Colors.green,
);
static const ColorSet defaultOnyomiColor = ColorSet(
foreground: Colors.white,
background: Colors.orange,
);
static const ColorSet defaultKunyomiColor = ColorSet(
foreground: Colors.white,
background: Colors.lightBlue,
);
static const Color defaultForeground = Colors.white;
static const Color defaultBackground = Colors.black;
static final defaultMenuGreyLight = ColorSet(
foreground: Colors.white,
background: Colors.grey.shade700,
);
static const defaultMenuGreyNormal = ColorSet(
foreground: Colors.white,
background: Colors.grey,
);
static final defaultMenuGreyDark = ColorSet(
foreground: Colors.black,
background: Colors.grey.shade300,
);
2021-12-01 23:09:53 +01:00
@override
2022-01-17 14:50:01 +01:00
ColorSet get kanjiResultColor => defaultKanjiResultColor;
2021-08-08 23:16:54 +02:00
2021-12-01 23:09:53 +01:00
@override
2022-01-17 14:50:01 +01:00
ColorSet get onyomiColor => defaultOnyomiColor;
2021-08-08 23:16:54 +02:00
2021-12-01 23:09:53 +01:00
@override
2022-01-17 14:50:01 +01:00
ColorSet get kunyomiColor => defaultKunyomiColor;
2021-08-08 23:16:54 +02:00
2021-12-01 23:09:53 +01:00
@override
2022-01-17 14:50:01 +01:00
Color get foreground => defaultForeground;
2021-12-01 23:09:53 +01:00
@override
2022-01-17 14:50:01 +01:00
Color get background => defaultBackground;
2021-08-08 23:16:54 +02:00
2021-12-01 23:09:53 +01:00
@override
2022-01-17 14:50:01 +01:00
ColorSet get menuGreyLight => defaultMenuGreyLight;
2021-12-01 23:09:53 +01:00
@override
2022-01-17 14:50:01 +01:00
ColorSet get menuGreyNormal => defaultMenuGreyNormal;
2021-08-08 23:16:54 +02:00
2021-12-01 23:09:53 +01:00
@override
2022-01-17 14:50:01 +01:00
ColorSet get menuGreyDark => defaultMenuGreyDark;
2021-08-08 23:16:54 +02:00
@override
ThemeData getMaterialTheme() {
return ThemeData(
brightness: Brightness.dark,
primarySwatch: createMaterialColor(AppTheme.jishoGreen.background),
);
}
}