diff --git a/lib/main.dart b/lib/main.dart index 6aba81d41..dd1604b04 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -370,6 +370,10 @@ class _MaterialAppWithThemeState extends ConsumerState .loadLocale(notify: false); WidgetsBinding.instance.addPostFrameCallback((_) async { + //Add themes path to provider + ref.read(applicationThemesDirectoryPathProvider.notifier).state = + (await StackFileSystem.applicationThemesDirectory()).path; + ref.read(themeProvider.state).state = StackTheme.fromJson( json: darkJson, applicationThemesDirectoryPath: ref.read( diff --git a/lib/models/isar/sw_theme.dart b/lib/models/isar/sw_theme.dart index dc79e4f04..3ffac4b96 100644 --- a/lib/models/isar/sw_theme.dart +++ b/lib/models/isar/sw_theme.dart @@ -1661,7 +1661,8 @@ class StackTheme { assets: ThemeAssets.fromJson( json: json, applicationThemesDirectoryPath: applicationThemesDirectoryPath, - internalThemeUuid: _id, + internalThemeUuid: + "dark", //TODO - Replace this with the uuid (_id) once setup ), overlayInt: parseColor(json["overlay"] as String), accentColorBlueInt: @@ -2060,8 +2061,6 @@ class ThemeAssets { required String applicationThemesDirectoryPath, required String internalThemeUuid, }) { - print( - "ASSETS JSON IS ${jsonEncode(json["assets"]["svg"]['coin_icons']['small'])}"); return ThemeAssets( bellNew: "$applicationThemesDirectoryPath/$internalThemeUuid/${json["assets"]["svg"]["bell_new"] as String}",