mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-24 11:15:58 +00:00
temporarily force update dark theme (banano coin icon fix)
This commit is contained in:
parent
011ba6bf61
commit
1b66cc23c3
1 changed files with 16 additions and 14 deletions
|
@ -157,20 +157,22 @@ class ThemeService {
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
// check installed version
|
// check installed version
|
||||||
final theme = ThemeService.instance.getTheme(themeId: "dark");
|
// final theme = ThemeService.instance.getTheme(themeId: "dark");
|
||||||
if ((theme?.version ?? 1) < _currentDefaultThemeVersion) {
|
// Force update theme to add missing icons for now
|
||||||
Logging.instance.log(
|
// TODO: uncomment if statement in future when themes are version 4 or above
|
||||||
"Updating default dark theme...",
|
// if ((theme?.version ?? 1) < _currentDefaultThemeVersion) {
|
||||||
level: LogLevel.Info,
|
Logging.instance.log(
|
||||||
);
|
"Updating default dark theme...",
|
||||||
final darkZip = await rootBundle.load("assets/default_themes/dark.zip");
|
level: LogLevel.Info,
|
||||||
await ThemeService.instance
|
);
|
||||||
.install(themeArchiveData: darkZip.buffer.asUint8List());
|
final darkZip = await rootBundle.load("assets/default_themes/dark.zip");
|
||||||
Logging.instance.log(
|
await ThemeService.instance
|
||||||
"Updating default dark theme... finished",
|
.install(themeArchiveData: darkZip.buffer.asUint8List());
|
||||||
level: LogLevel.Info,
|
Logging.instance.log(
|
||||||
);
|
"Updating default dark theme... finished",
|
||||||
}
|
level: LogLevel.Info,
|
||||||
|
);
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue