mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-29 22:16:05 +00:00
fix: revert theme order (bright-purple as default)
This commit is contained in:
parent
9ddab2b472
commit
8e13b2241c
1 changed files with 6 additions and 7 deletions
|
@ -22,8 +22,8 @@ class ThemeList {
|
|||
highContrastTheme
|
||||
];
|
||||
|
||||
static final lightTheme = LightTheme(raw: 0);
|
||||
static final brightTheme = BrightTheme(raw: 1);
|
||||
static final brightTheme = BrightTheme(raw: 0);
|
||||
static final lightTheme = LightTheme(raw: 1);
|
||||
static final darkTheme = DarkTheme(raw: 2);
|
||||
static final moneroDarkTheme = MoneroDarkTheme(raw: 3);
|
||||
static final moneroLightTheme = MoneroLightTheme(raw: 4);
|
||||
|
@ -35,9 +35,9 @@ class ThemeList {
|
|||
static ThemeBase deserialize({required int raw}) {
|
||||
switch (raw) {
|
||||
case 0:
|
||||
return lightTheme;
|
||||
case 1:
|
||||
return brightTheme;
|
||||
case 1:
|
||||
return lightTheme;
|
||||
case 2:
|
||||
return darkTheme;
|
||||
case 3:
|
||||
|
@ -53,8 +53,7 @@ class ThemeList {
|
|||
case 8:
|
||||
return highContrastTheme;
|
||||
default:
|
||||
throw Exception(
|
||||
'Unexpected token raw: $raw for deserialization of ThemeBase');
|
||||
throw Exception('Unexpected token raw: $raw for deserialization of ThemeBase');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue