2020-12-15 19:43:50 +00:00
|
|
|
import 'package:cake_wallet/themes/bright_theme.dart';
|
|
|
|
import 'package:cake_wallet/themes/dark_theme.dart';
|
|
|
|
import 'package:cake_wallet/themes/light_theme.dart';
|
|
|
|
import 'package:cake_wallet/themes/theme_base.dart';
|
2020-12-15 19:30:16 +00:00
|
|
|
|
|
|
|
class ThemeList {
|
|
|
|
static final all = [lightTheme, brightTheme, darkTheme];
|
|
|
|
|
|
|
|
static final lightTheme = LightTheme(raw: 0);
|
|
|
|
static final brightTheme = BrightTheme(raw: 1);
|
|
|
|
static final darkTheme = DarkTheme(raw: 2);
|
|
|
|
|
|
|
|
static ThemeBase deserialize({int raw}) {
|
|
|
|
switch (raw) {
|
|
|
|
case 0:
|
|
|
|
return lightTheme;
|
|
|
|
case 1:
|
|
|
|
return brightTheme;
|
|
|
|
case 2:
|
|
|
|
return darkTheme;
|
|
|
|
default:
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|