mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
Theme colors error fixes
This commit is contained in:
parent
3a94972ab3
commit
5748de2251
1 changed files with 8 additions and 7 deletions
|
@ -1634,24 +1634,24 @@ class StackTheme {
|
||||||
required String applicationThemesDirectoryPath,
|
required String applicationThemesDirectoryPath,
|
||||||
}) {
|
}) {
|
||||||
final _id = const Uuid().v1();
|
final _id = const Uuid().v1();
|
||||||
|
print("GRADIENTS IS ${json['gradients']}");
|
||||||
return StackTheme(
|
return StackTheme(
|
||||||
internalId: _id,
|
internalId: _id,
|
||||||
name: json["name"] as String,
|
name: json["name"] as String,
|
||||||
assetBundleUrl: json["assetBundleUrl"] as String,
|
assetBundleUrl: json["asset_bundle_url"] as String,
|
||||||
brightnessString: json["brightness"] as String,
|
brightnessString: json["brightness"] as String,
|
||||||
backgroundInt: parseColor(
|
backgroundInt:
|
||||||
json["colors"]["background_colors"]["background"] as String),
|
parseColor(json["colors"]["background"]["background"] as String),
|
||||||
backgroundAppBarInt: parseColor(
|
backgroundAppBarInt: parseColor(
|
||||||
json["colors"]["background_colors"]["backgroundAppBar"] as String),
|
json["colors"]["background"]["backgroundAppBar"] as String),
|
||||||
gradientBackgroundString:
|
gradientBackgroundString: jsonEncode(json["gradients"] ?? ["background"]),
|
||||||
jsonEncode(json["gradients"]["background"] as Map),
|
|
||||||
standardBoxShadowString:
|
standardBoxShadowString:
|
||||||
jsonEncode(json["box_shadows"]["standard"] as Map),
|
jsonEncode(json["box_shadows"]["standard"] as Map),
|
||||||
homeViewButtonBarBoxShadowString:
|
homeViewButtonBarBoxShadowString:
|
||||||
json["box_shadows"]["home_view_button_bar"] == null
|
json["box_shadows"]["home_view_button_bar"] == null
|
||||||
? null
|
? null
|
||||||
: jsonEncode(json["box_shadows"]["home_view_button_bar"] as Map),
|
: jsonEncode(json["box_shadows"]["home_view_button_bar"] as Map),
|
||||||
coinColorsJsonString: jsonEncode(json["coinColors"] as Map),
|
coinColorsJsonString: jsonEncode(json["colors"]['coin'] as Map),
|
||||||
assets: ThemeAssets.fromJson(
|
assets: ThemeAssets.fromJson(
|
||||||
json: json,
|
json: json,
|
||||||
applicationThemesDirectoryPath: applicationThemesDirectoryPath,
|
applicationThemesDirectoryPath: applicationThemesDirectoryPath,
|
||||||
|
@ -2079,6 +2079,7 @@ class ThemeAssets {
|
||||||
required String applicationThemesDirectoryPath,
|
required String applicationThemesDirectoryPath,
|
||||||
required String internalThemeUuid,
|
required String internalThemeUuid,
|
||||||
}) {
|
}) {
|
||||||
|
print("ASSETS JSON IS $json");
|
||||||
return ThemeAssets(
|
return ThemeAssets(
|
||||||
bellNew:
|
bellNew:
|
||||||
"$applicationThemesDirectoryPath/$internalThemeUuid/${json["assets"]["svg"]["bell_new"] as String}",
|
"$applicationThemesDirectoryPath/$internalThemeUuid/${json["assets"]["svg"]["bell_new"] as String}",
|
||||||
|
|
Loading…
Reference in a new issue