chan fixes

This commit is contained in:
julian 2023-03-17 12:56:40 -06:00
parent db1f5f622f
commit 968b93a41c
6 changed files with 8 additions and 12 deletions

View file

@ -57,6 +57,7 @@ import 'package:stackwallet/utilities/enums/backup_frequency_type.dart';
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart';
import 'package:stackwallet/utilities/logger.dart'; import 'package:stackwallet/utilities/logger.dart';
import 'package:stackwallet/utilities/stack_file_system.dart'; import 'package:stackwallet/utilities/stack_file_system.dart';
import 'package:stackwallet/utilities/theme/chan_colors.dart';
import 'package:stackwallet/utilities/theme/color_theme.dart'; import 'package:stackwallet/utilities/theme/color_theme.dart';
import 'package:stackwallet/utilities/theme/dark_colors.dart'; import 'package:stackwallet/utilities/theme/dark_colors.dart';
import 'package:stackwallet/utilities/theme/forest_colors.dart'; import 'package:stackwallet/utilities/theme/forest_colors.dart';
@ -353,8 +354,10 @@ class _MaterialAppWithThemeState extends ConsumerState<MaterialAppWithTheme>
case "forest": case "forest":
colorTheme = ForestColors(); colorTheme = ForestColors();
break; break;
case "light":
case "chan": case "chan":
colorTheme = ChanColors();
break;
case "light":
default: default:
colorTheme = LightColors(); colorTheme = LightColors();
} }

View file

@ -373,8 +373,6 @@ class _SVG {
class _PNG { class _PNG {
const _PNG(); const _PNG();
String stack(BuildContext context) =>
"assets/images/${Theme.of(context).extension<StackColors>()!.themeType.name}/stack.png";
String get splash => "assets/images/splash.png"; String get splash => "assets/images/splash.png";
String get glasses => "assets/images/glasses.png"; String get glasses => "assets/images/glasses.png";

View file

@ -20,14 +20,6 @@ class Background extends StatelessWidget {
bool shouldPad = false; bool shouldPad = false;
switch (Theme.of(context).extension<StackColors>()!.themeType) { switch (Theme.of(context).extension<StackColors>()!.themeType) {
case ThemeType.light:
case ThemeType.dark:
case ThemeType.oledBlack:
color = Theme.of(context).extension<StackColors>()!.background;
break;
case ThemeType.forest:
color = Theme.of(context).extension<StackColors>()!.background;
break;
case ThemeType.oceanBreeze: case ThemeType.oceanBreeze:
shouldPad = true; shouldPad = true;
color = null; color = null;
@ -35,6 +27,9 @@ class Background extends StatelessWidget {
case ThemeType.fruitSorbet: case ThemeType.fruitSorbet:
color = null; color = null;
break; break;
default:
color = Theme.of(context).extension<StackColors>()!.background;
break;
} }
final bgAsset = Assets.svg.background(context); final bgAsset = Assets.svg.background(context);

View file

@ -367,7 +367,7 @@ flutter:
- assets/lottie/coins/bitcoin/ - assets/lottie/coins/bitcoin/
- assets/lottie/coins/bitcoincash/ - assets/lottie/coins/bitcoincash/
- assets/lottie/coins/dogecoin/ - assets/lottie/coins/dogecoin/
- assets/lottie/coins/epiccash/ - assets/lottie/coins/epicCash/
- assets/lottie/coins/ethereum/ - assets/lottie/coins/ethereum/
- assets/lottie/coins/firo/ - assets/lottie/coins/firo/
- assets/lottie/coins/litecoin/ - assets/lottie/coins/litecoin/