Skip to content

Commit

Permalink
Merge pull request cypherstack#543 from cypherstack/add-ecash
Browse files Browse the repository at this point in the history
Add ecash and themes upgrade
  • Loading branch information
rehrar committed May 20, 2023
2 parents 43b4ffb + 69a850b commit 818cb56
Show file tree
Hide file tree
Showing 46 changed files with 9,677 additions and 2,015 deletions.
Binary file modified assets/default_themes/dark.zip
Binary file not shown.
Binary file modified assets/default_themes/light.zip
Binary file not shown.
83 changes: 83 additions & 0 deletions assets/svg/anonymize.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 2 additions & 27 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -188,33 +188,8 @@ void main() async {
await MainDB.instance.initMainDB();
ThemeService.instance.init(MainDB.instance);

// install default themes
if (!(await ThemeService.instance.verifyInstalled(themeId: "light"))) {
Logging.instance.log(
"Installing default light theme...",
level: LogLevel.Info,
);
final lightZip = await rootBundle.load("assets/default_themes/light.zip");
await ThemeService.instance
.install(themeArchiveData: lightZip.buffer.asUint8List());
Logging.instance.log(
"Installing default light theme... finished",
level: LogLevel.Info,
);
}
if (!(await ThemeService.instance.verifyInstalled(themeId: "dark"))) {
Logging.instance.log(
"Installing default dark theme... ",
level: LogLevel.Info,
);
final darkZip = await rootBundle.load("assets/default_themes/dark.zip");
await ThemeService.instance
.install(themeArchiveData: darkZip.buffer.asUint8List());
Logging.instance.log(
"Installing default dark theme... finished",
level: LogLevel.Info,
);
}
// check and update or install default themes
await ThemeService.instance.checkDefaultThemesOnStartup();

runApp(const ProviderScope(child: MyApp()));
}
Expand Down
Loading

0 comments on commit 818cb56

Please sign in to comment.