mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-22 19:39:22 +00:00
chan fixes
This commit is contained in:
parent
db1f5f622f
commit
968b93a41c
6 changed files with 8 additions and 12 deletions
|
@ -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/logger.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/dark_colors.dart';
|
||||
import 'package:stackwallet/utilities/theme/forest_colors.dart';
|
||||
|
@ -353,8 +354,10 @@ class _MaterialAppWithThemeState extends ConsumerState<MaterialAppWithTheme>
|
|||
case "forest":
|
||||
colorTheme = ForestColors();
|
||||
break;
|
||||
case "light":
|
||||
case "chan":
|
||||
colorTheme = ChanColors();
|
||||
break;
|
||||
case "light":
|
||||
default:
|
||||
colorTheme = LightColors();
|
||||
}
|
||||
|
|
|
@ -373,8 +373,6 @@ class _SVG {
|
|||
class _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 glasses => "assets/images/glasses.png";
|
||||
|
|
|
@ -20,14 +20,6 @@ class Background extends StatelessWidget {
|
|||
bool shouldPad = false;
|
||||
|
||||
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:
|
||||
shouldPad = true;
|
||||
color = null;
|
||||
|
@ -35,6 +27,9 @@ class Background extends StatelessWidget {
|
|||
case ThemeType.fruitSorbet:
|
||||
color = null;
|
||||
break;
|
||||
default:
|
||||
color = Theme.of(context).extension<StackColors>()!.background;
|
||||
break;
|
||||
}
|
||||
|
||||
final bgAsset = Assets.svg.background(context);
|
||||
|
|
|
@ -367,7 +367,7 @@ flutter:
|
|||
- assets/lottie/coins/bitcoin/
|
||||
- assets/lottie/coins/bitcoincash/
|
||||
- assets/lottie/coins/dogecoin/
|
||||
- assets/lottie/coins/epiccash/
|
||||
- assets/lottie/coins/epicCash/
|
||||
- assets/lottie/coins/ethereum/
|
||||
- assets/lottie/coins/firo/
|
||||
- assets/lottie/coins/litecoin/
|
||||
|
|
Loading…
Reference in a new issue