From bd476a04a0f3764fef786ea57dc596c1e2244259 Mon Sep 17 00:00:00 2001 From: julian Date: Tue, 9 May 2023 10:24:37 -0600 Subject: [PATCH] pass theme id --- lib/utilities/theme/stack_colors.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/utilities/theme/stack_colors.dart b/lib/utilities/theme/stack_colors.dart index 03b75a73c..62f4f50f9 100644 --- a/lib/utilities/theme/stack_colors.dart +++ b/lib/utilities/theme/stack_colors.dart @@ -4,7 +4,7 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart'; import 'package:stackwallet/utilities/theme/color_theme.dart'; class StackColors extends ThemeExtension { - final ThemeType themeType; + final String themeId; final Brightness brightness; final Color background; @@ -203,7 +203,7 @@ class StackColors extends ThemeExtension { final BoxShadow? homeViewButtonBarBoxShadow; StackColors({ - required this.themeType, + required this.themeId, required this.brightness, required this.background, required this.backgroundAppBar, @@ -362,7 +362,7 @@ class StackColors extends ThemeExtension { factory StackColors.fromStackColorTheme(StackTheme colorTheme) { return StackColors( - themeType: colorTheme.themeType, + themeId: colorTheme.idOnServer, brightness: colorTheme.brightness, background: colorTheme.background, backgroundAppBar: colorTheme.backgroundAppBar, @@ -525,7 +525,7 @@ class StackColors extends ThemeExtension { @override ThemeExtension copyWith({ - ThemeType? themeType, + String? themeId, Brightness? brightness, Color? background, Color? backgroundAppBar, @@ -682,7 +682,7 @@ class StackColors extends ThemeExtension { BoxShadow? standardBoxShadow, }) { return StackColors( - themeType: themeType ?? this.themeType, + themeId: themeId ?? this.themeId, brightness: brightness ?? this.brightness, background: background ?? this.background, backgroundAppBar: backgroundAppBar ?? this.backgroundAppBar, @@ -899,7 +899,7 @@ class StackColors extends ThemeExtension { } return StackColors( - themeType: other.themeType, + themeId: other.themeId, brightness: other.brightness, gradientBackground: other.gradientBackground, homeViewButtonBarBoxShadow: other.homeViewButtonBarBoxShadow,