CAKE-182 | changed colors on dashboard page for light theme; changed action buttons icons on dashboard page; changed buttons colors on alerts for light theme; deleted item_from_theme.dart; added getters (isLightTheme, isBrightTheme, isDarkTheme) to Themes class; applied getters to the app

This commit is contained in:
OleksandrSobol 2020-12-14 19:54:56 +02:00
parent 941e7c4dd8
commit 85497a1218
18 changed files with 88 additions and 150 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 760 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 408 B

After

Width:  |  Height:  |  Size: 629 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 341 B

After

Width:  |  Height:  |  Size: 440 B

View file

@ -1,17 +0,0 @@
import 'package:cake_wallet/themes.dart';
import 'package:flutter/material.dart';
dynamic itemFromTheme({
@required Themes currentTheme,
@required Map<Themes, dynamic> items}) {
switch (currentTheme) {
case Themes.light:
return items[Themes.light];
case Themes.bright:
return items[Themes.bright];
case Themes.dark:
return items[Themes.dark];
default:
return items[Themes.light];
}
}

View file

@ -1,5 +1,3 @@
import 'package:cake_wallet/entities/item_from_theme.dart';
import 'package:cake_wallet/themes.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
import 'package:hive/hive.dart'; import 'package:hive/hive.dart';
@ -125,31 +123,25 @@ class App extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final settingsStore = getIt.get<AppStore>().settingsStore; final settingsStore = getIt.get<AppStore>().settingsStore;
final currentTheme = settingsStore.currentTheme ?? Themes.light;
final Map<Themes, Brightness> items = {
Themes.light: Brightness.dark,
Themes.bright: Brightness.dark,
Themes.dark: Brightness.light
};
final statusBarColor = Colors.transparent; final statusBarColor = Colors.transparent;
final statusBarBrightness =
itemFromTheme(currentTheme: currentTheme, items: items) as Brightness
?? Brightness.dark;
final statusBarIconBrightness =
itemFromTheme(currentTheme: currentTheme, items: items) as Brightness
?? Brightness.dark;
final authenticationStore = getIt.get<AuthenticationStore>(); final authenticationStore = getIt.get<AuthenticationStore>();
final initialRoute = authenticationStore.state == AuthenticationState.denied final initialRoute = authenticationStore.state == AuthenticationState.denied
? Routes.disclaimer ? Routes.disclaimer
: Routes.login; : Routes.login;
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
statusBarColor: statusBarColor,
statusBarBrightness: statusBarBrightness,
statusBarIconBrightness: statusBarIconBrightness));
return Observer(builder: (BuildContext context) { return Observer(builder: (BuildContext context) {
final currentTheme = settingsStore.currentTheme;
final statusBarBrightness = currentTheme.isDarkTheme
? Brightness.dark
: Brightness.light;
final statusBarIconBrightness = currentTheme.isDarkTheme
? Brightness.light
: Brightness.dark;
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
statusBarColor: statusBarColor,
statusBarBrightness: statusBarBrightness,
statusBarIconBrightness: statusBarIconBrightness));
return Root( return Root(
authenticationStore: authenticationStore, authenticationStore: authenticationStore,
navigatorKey: navigatorKey, navigatorKey: navigatorKey,

View file

@ -1,4 +1,3 @@
import 'package:cake_wallet/entities/item_from_theme.dart';
import 'package:cake_wallet/themes.dart'; import 'package:cake_wallet/themes.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -14,17 +13,11 @@ abstract class BasePage extends StatelessWidget {
: _scaffoldKey = GlobalKey<ScaffoldState>(); : _scaffoldKey = GlobalKey<ScaffoldState>();
final GlobalKey<ScaffoldState> _scaffoldKey; final GlobalKey<ScaffoldState> _scaffoldKey;
static final Image closeButtonImage = final Image closeButtonImage =
Image.asset('assets/images/close_button.png'); Image.asset('assets/images/close_button.png');
static final Image closeButtonImageDarkTheme = final Image closeButtonImageDarkTheme =
Image.asset('assets/images/close_button_dark_theme.png'); Image.asset('assets/images/close_button_dark_theme.png');
final Map<Themes, Image> buttonItems = {
Themes.light: closeButtonImage,
Themes.bright: closeButtonImage,
Themes.dark: closeButtonImageDarkTheme
};
String get title => null; String get title => null;
bool get isModalBackButton => false; bool get isModalBackButton => false;
@ -60,8 +53,7 @@ abstract class BasePage extends StatelessWidget {
color: titleColor ?? Theme.of(context).primaryTextTheme.title.color, color: titleColor ?? Theme.of(context).primaryTextTheme.title.color,
size: 16,); size: 16,);
final _closeButton = final _closeButton =
itemFromTheme(currentTheme: currentTheme, items: buttonItems) as Image currentTheme.isDarkTheme ? closeButtonImageDarkTheme : closeButtonImage;
?? closeButtonImage;
return SizedBox( return SizedBox(
height: 37, height: 37,
@ -97,7 +89,8 @@ abstract class BasePage extends StatelessWidget {
Widget floatingActionButton(BuildContext context) => null; Widget floatingActionButton(BuildContext context) => null;
ObstructingPreferredSizeWidget appBar(BuildContext context) { ObstructingPreferredSizeWidget appBar(BuildContext context) {
final appBarColor = _setBackgroundColor(); final appBarColor =
currentTheme.isDarkTheme ? backgroundDarkColor : backgroundLightColor;
switch (appBarStyle) { switch (appBarStyle) {
case AppBarStyle.regular: case AppBarStyle.regular:
@ -139,7 +132,8 @@ abstract class BasePage extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final _backgroundColor = _setBackgroundColor(); final _backgroundColor =
currentTheme.isDarkTheme ? backgroundDarkColor : backgroundLightColor;
final root = Scaffold( final root = Scaffold(
key: _scaffoldKey, key: _scaffoldKey,
@ -153,17 +147,4 @@ abstract class BasePage extends StatelessWidget {
return rootWrapper?.call(context, root) ?? root; return rootWrapper?.call(context, root) ?? root;
} }
Color _setBackgroundColor() {
switch (currentTheme) {
case Themes.light:
return backgroundLightColor;
case Themes.bright:
return backgroundLightColor;
case Themes.dark:
return backgroundDarkColor;
default:
return backgroundLightColor;
}
}
} }

View file

@ -14,30 +14,22 @@ import 'package:cake_wallet/src/screens/seed_language/widgets/seed_language_pick
import 'package:cake_wallet/src/widgets/alert_with_one_action.dart'; import 'package:cake_wallet/src/widgets/alert_with_one_action.dart';
import 'package:cake_wallet/core/execution_state.dart'; import 'package:cake_wallet/core/execution_state.dart';
import 'package:cake_wallet/view_model/wallet_new_vm.dart'; import 'package:cake_wallet/view_model/wallet_new_vm.dart';
import 'package:cake_wallet/themes.dart';
import 'package:cake_wallet/entities/item_from_theme.dart';
class NewWalletPage extends BasePage { class NewWalletPage extends BasePage {
NewWalletPage(this._walletNewVM); NewWalletPage(this._walletNewVM);
final WalletNewVM _walletNewVM; final WalletNewVM _walletNewVM;
static final walletNameImage = Image.asset('assets/images/wallet_name.png'); final walletNameImage = Image.asset('assets/images/wallet_name.png');
static final walletNameLightImage = final walletNameLightImage =
Image.asset('assets/images/wallet_name_light.png'); Image.asset('assets/images/wallet_name_light.png');
final Map<Themes, Image> items = {
Themes.light: walletNameLightImage,
Themes.bright: walletNameLightImage,
Themes.dark: walletNameImage
};
@override @override
String get title => S.current.new_wallet; String get title => S.current.new_wallet;
@override @override
Widget body(BuildContext context) => WalletNameForm(_walletNewVM, Widget body(BuildContext context) => WalletNameForm(_walletNewVM,
itemFromTheme(currentTheme: currentTheme, items: items) as Image currentTheme.isDarkTheme ? walletNameImage : walletNameLightImage);
?? walletNameLightImage);
} }
class WalletNameForm extends StatefulWidget { class WalletNameForm extends StatefulWidget {

View file

@ -1,4 +1,3 @@
import 'package:cake_wallet/entities/item_from_theme.dart';
import 'package:cake_wallet/entities/wallet_type.dart'; import 'package:cake_wallet/entities/wallet_type.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
@ -7,7 +6,6 @@ import 'package:cake_wallet/src/screens/base_page.dart';
import 'package:cake_wallet/src/widgets/primary_button.dart'; import 'package:cake_wallet/src/widgets/primary_button.dart';
import 'package:cake_wallet/src/widgets/scollable_with_bottom_section.dart'; import 'package:cake_wallet/src/widgets/scollable_with_bottom_section.dart';
import 'package:cake_wallet/src/screens/new_wallet/widgets/select_button.dart'; import 'package:cake_wallet/src/screens/new_wallet/widgets/select_button.dart';
import 'package:cake_wallet/themes.dart';
class NewWalletTypePage extends BasePage { class NewWalletTypePage extends BasePage {
NewWalletTypePage({this.onTypeSelected, this.isNewWallet = true}); NewWalletTypePage({this.onTypeSelected, this.isNewWallet = true});
@ -15,14 +13,9 @@ class NewWalletTypePage extends BasePage {
final void Function(BuildContext, WalletType) onTypeSelected; final void Function(BuildContext, WalletType) onTypeSelected;
final bool isNewWallet; final bool isNewWallet;
static final walletTypeImage = Image.asset('assets/images/wallet_type.png'); final walletTypeImage = Image.asset('assets/images/wallet_type.png');
static final walletTypeLightImage = final walletTypeLightImage =
Image.asset('assets/images/wallet_type_light.png'); Image.asset('assets/images/wallet_type_light.png');
final Map<Themes, Image> items = {
Themes.light: walletTypeLightImage,
Themes.bright: walletTypeLightImage,
Themes.dark: walletTypeImage
};
@override @override
String get title => isNewWallet String get title => isNewWallet
@ -33,9 +26,8 @@ class NewWalletTypePage extends BasePage {
Widget body(BuildContext context) => Widget body(BuildContext context) =>
WalletTypeForm( WalletTypeForm(
onTypeSelected: onTypeSelected, onTypeSelected: onTypeSelected,
walletImage: walletImage: currentTheme.isDarkTheme
itemFromTheme(currentTheme: currentTheme, items: items) as Image ? walletTypeImage : walletTypeLightImage);
?? walletTypeLightImage);
} }
class WalletTypeForm extends StatefulWidget { class WalletTypeForm extends StatefulWidget {

View file

@ -1,21 +1,13 @@
import 'package:cake_wallet/entities/item_from_theme.dart';
import 'package:cake_wallet/routes.dart'; import 'package:cake_wallet/routes.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:cake_wallet/generated/i18n.dart'; import 'package:cake_wallet/generated/i18n.dart';
import 'package:cake_wallet/src/widgets/primary_button.dart'; import 'package:cake_wallet/src/widgets/primary_button.dart';
import 'package:cake_wallet/src/screens/base_page.dart'; import 'package:cake_wallet/src/screens/base_page.dart';
import 'package:cake_wallet/themes.dart';
class PreSeedPage extends BasePage { class PreSeedPage extends BasePage {
static final imageLight = Image.asset('assets/images/pre_seed_light.png'); final imageLight = Image.asset('assets/images/pre_seed_light.png');
static final imageDark = Image.asset('assets/images/pre_seed_dark.png'); final imageDark = Image.asset('assets/images/pre_seed_dark.png');
final Map<Themes, Image> items = {
Themes.light: imageLight,
Themes.bright: imageLight,
Themes.dark: imageDark
};
@override @override
Widget leading(BuildContext context) => null; Widget leading(BuildContext context) => null;
@ -25,9 +17,7 @@ class PreSeedPage extends BasePage {
@override @override
Widget body(BuildContext context) { Widget body(BuildContext context) {
final image = final image = currentTheme.isDarkTheme ? imageDark : imageLight;
itemFromTheme(currentTheme: currentTheme, items: items) as Image
?? imageLight;
return WillPopScope( return WillPopScope(
onWillPop: () async => false, onWillPop: () async => false,

View file

@ -1,4 +1,3 @@
import 'package:cake_wallet/entities/item_from_theme.dart';
import 'package:cake_wallet/palette.dart'; import 'package:cake_wallet/palette.dart';
import 'package:cake_wallet/src/widgets/alert_with_two_actions.dart'; import 'package:cake_wallet/src/widgets/alert_with_two_actions.dart';
import 'package:cake_wallet/utils/show_bar.dart'; import 'package:cake_wallet/utils/show_bar.dart';
@ -12,18 +11,12 @@ import 'package:cake_wallet/generated/i18n.dart';
import 'package:cake_wallet/src/widgets/primary_button.dart'; import 'package:cake_wallet/src/widgets/primary_button.dart';
import 'package:cake_wallet/src/screens/base_page.dart'; import 'package:cake_wallet/src/screens/base_page.dart';
import 'package:cake_wallet/view_model/wallet_seed_view_model.dart'; import 'package:cake_wallet/view_model/wallet_seed_view_model.dart';
import 'package:cake_wallet/themes.dart';
class WalletSeedPage extends BasePage { class WalletSeedPage extends BasePage {
WalletSeedPage(this.walletSeedViewModel, {@required this.isNewWalletCreated}); WalletSeedPage(this.walletSeedViewModel, {@required this.isNewWalletCreated});
static final imageLight = Image.asset('assets/images/crypto_lock_light.png'); final imageLight = Image.asset('assets/images/crypto_lock_light.png');
static final imageDark = Image.asset('assets/images/crypto_lock.png'); final imageDark = Image.asset('assets/images/crypto_lock.png');
final Map<Themes, Image> items = {
Themes.light: imageLight,
Themes.bright: imageLight,
Themes.dark: imageDark
};
@override @override
String get title => S.current.seed_title; String get title => S.current.seed_title;
@ -88,9 +81,7 @@ class WalletSeedPage extends BasePage {
@override @override
Widget body(BuildContext context) { Widget body(BuildContext context) {
final image = final image = currentTheme.isDarkTheme ? imageDark : imageLight;
itemFromTheme(currentTheme: currentTheme, items: items) as Image
?? imageLight;
return WillPopScope(onWillPop: () async => false, child: Container( return WillPopScope(onWillPop: () async => false, child: Container(
padding: EdgeInsets.all(24), padding: EdgeInsets.all(24),

View file

@ -1,4 +1,3 @@
import 'package:cake_wallet/entities/item_from_theme.dart';
import 'package:cake_wallet/src/widgets/seed_language_selector.dart'; import 'package:cake_wallet/src/widgets/seed_language_selector.dart';
import 'package:flutter_mobx/flutter_mobx.dart'; import 'package:flutter_mobx/flutter_mobx.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -8,21 +7,15 @@ import 'package:cake_wallet/src/screens/base_page.dart';
import 'package:cake_wallet/src/widgets/primary_button.dart'; import 'package:cake_wallet/src/widgets/primary_button.dart';
import 'package:cake_wallet/src/widgets/scollable_with_bottom_section.dart'; import 'package:cake_wallet/src/widgets/scollable_with_bottom_section.dart';
import 'package:cake_wallet/src/screens/seed_language/widgets/seed_language_picker.dart'; import 'package:cake_wallet/src/screens/seed_language/widgets/seed_language_picker.dart';
import 'package:cake_wallet/themes.dart';
class SeedLanguage extends BasePage { class SeedLanguage extends BasePage {
SeedLanguage({this.onConfirm}); SeedLanguage({this.onConfirm});
final Function(BuildContext, String) onConfirm; final Function(BuildContext, String) onConfirm;
static final walletNameImage = Image.asset('assets/images/wallet_name.png'); final walletNameImage = Image.asset('assets/images/wallet_name.png');
static final walletNameLightImage = final walletNameLightImage =
Image.asset('assets/images/wallet_name_light.png'); Image.asset('assets/images/wallet_name_light.png');
final Map<Themes, Image> items = {
Themes.light: walletNameLightImage,
Themes.bright: walletNameLightImage,
Themes.dark: walletNameImage
};
@override @override
String get title => S.current.wallet_list_restore_wallet; String get title => S.current.wallet_list_restore_wallet;
@ -32,8 +25,7 @@ class SeedLanguage extends BasePage {
SeedLanguageForm( SeedLanguageForm(
onConfirm: onConfirm, onConfirm: onConfirm,
walletImage: walletImage:
itemFromTheme(currentTheme: currentTheme, items: items) as Image currentTheme.isDarkTheme ? walletNameImage : walletNameLightImage);
?? walletNameLightImage);
} }
class SeedLanguageForm extends StatefulWidget { class SeedLanguageForm extends StatefulWidget {

View file

@ -1,4 +1,3 @@
import 'package:cake_wallet/entities/item_from_theme.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:cake_wallet/routes.dart'; import 'package:cake_wallet/routes.dart';
import 'package:cake_wallet/src/widgets/primary_button.dart'; import 'package:cake_wallet/src/widgets/primary_button.dart';
@ -8,14 +7,8 @@ import 'package:cake_wallet/themes.dart';
class WelcomePage extends BasePage { class WelcomePage extends BasePage {
static const aspectRatioImage = 1.25; static const aspectRatioImage = 1.25;
static final welcomeImageLight = Image.asset('assets/images/welcome_light.png'); final welcomeImageLight = Image.asset('assets/images/welcome_light.png');
static final welcomeImageDark = Image.asset('assets/images/welcome.png'); final welcomeImageDark = Image.asset('assets/images/welcome.png');
final Map<Themes, Image> items = {
Themes.light: welcomeImageLight,
Themes.bright: welcomeImageLight,
Themes.dark: welcomeImageDark
};
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
@ -30,8 +23,7 @@ class WelcomePage extends BasePage {
@override @override
Widget body(BuildContext context) { Widget body(BuildContext context) {
final welcomeImage = final welcomeImage =
itemFromTheme(currentTheme: currentTheme, items: items) as Image currentTheme.isDarkTheme ? welcomeImageDark : welcomeImageLight;
?? welcomeImageLight;
final newWalletImage = Image.asset('assets/images/new_wallet.png', final newWalletImage = Image.asset('assets/images/new_wallet.png',
height: 12, height: 12,

View file

@ -31,7 +31,7 @@ class AlertWithOneAction extends BaseAlertDialog {
width: 300, width: 300,
height: 52, height: 52,
padding: EdgeInsets.only(left: 12, right: 12), padding: EdgeInsets.only(left: 12, right: 12),
color: Theme.of(context).accentTextTheme.body2.color, color: Theme.of(context).accentTextTheme.body1.backgroundColor,
child: ButtonTheme( child: ButtonTheme(
minWidth: double.infinity, minWidth: double.infinity,
child: FlatButton( child: FlatButton(
@ -44,7 +44,8 @@ class AlertWithOneAction extends BaseAlertDialog {
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 15,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
color: Colors.white, color: Theme.of(context).primaryTextTheme.body1
.backgroundColor,
decoration: TextDecoration.none, decoration: TextDecoration.none,
), ),
)), )),

View file

@ -1,4 +1,7 @@
import 'dart:ui'; import 'dart:ui';
import 'package:cake_wallet/di.dart';
import 'package:cake_wallet/store/settings_store.dart';
import 'package:cake_wallet/themes.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:cake_wallet/palette.dart'; import 'package:cake_wallet/palette.dart';
@ -10,6 +13,7 @@ class BaseAlertDialog extends StatelessWidget {
VoidCallback get actionLeft => () {}; VoidCallback get actionLeft => () {};
VoidCallback get actionRight => () {}; VoidCallback get actionRight => () {};
bool get barrierDismissible => true; bool get barrierDismissible => true;
Themes get currentTheme => getIt.get<SettingsStore>().currentTheme;
Widget title(BuildContext context) { Widget title(BuildContext context) {
return Text( return Text(
@ -61,18 +65,26 @@ class BaseAlertDialog extends StatelessWidget {
fontSize: 15, fontSize: 15,
fontFamily: 'Lato', fontFamily: 'Lato',
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
color: Colors.white, color: Theme.of(context).primaryTextTheme.body2
.backgroundColor,
decoration: TextDecoration.none, decoration: TextDecoration.none,
), ),
)), )),
), ),
) )
), ),
currentTheme.isLightTheme
? Container(
width: 1,
height: 52,
color: Colors.grey[300],
)
: Offstage(),
Flexible( Flexible(
child: Container( child: Container(
height: 52, height: 52,
padding: EdgeInsets.only(left: 6, right: 6), padding: EdgeInsets.only(left: 6, right: 6),
color: Theme.of(context).accentTextTheme.body2.color, color: Theme.of(context).accentTextTheme.body1.backgroundColor,
child: ButtonTheme( child: ButtonTheme(
minWidth: double.infinity, minWidth: double.infinity,
child: FlatButton( child: FlatButton(
@ -86,7 +98,8 @@ class BaseAlertDialog extends StatelessWidget {
fontSize: 15, fontSize: 15,
fontFamily: 'Lato', fontFamily: 'Lato',
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
color: Colors.white, color: Theme.of(context).primaryTextTheme.body1
.backgroundColor,
decoration: TextDecoration.none, decoration: TextDecoration.none,
), ),
)), )),
@ -133,6 +146,12 @@ class BaseAlertDialog extends StatelessWidget {
], ],
), ),
), ),
currentTheme.isLightTheme
? Container(
height: 1,
color: Colors.grey[300],
)
: Offstage(),
actionButtons(context) actionButtons(context)
], ],
), ),

View file

@ -43,6 +43,10 @@ class Themes extends EnumerableItem<int> with Serializable<int> {
} }
} }
bool get isLightTheme => this == Themes.light;
bool get isBrightTheme => this == Themes.bright;
bool get isDarkTheme => this == Themes.dark;
@override @override
String toString() { String toString() {
switch (this) { switch (this) {
@ -65,7 +69,7 @@ class Themes extends EnumerableItem<int> with Serializable<int> {
scaffoldBackgroundColor: Colors.white, // second gradient color scaffoldBackgroundColor: Colors.white, // second gradient color
primaryColor: Colors.white, // third gradient color primaryColor: Colors.white, // third gradient color
buttonColor: Palette.blueAlice, // action buttons on dashboard page buttonColor: Palette.blueAlice, // action buttons on dashboard page
indicatorColor: PaletteDark.darkCyanBlue, // page indicator indicatorColor: PaletteDark.darkCyanBlue.withOpacity(0.67), // page indicator
hoverColor: Palette.darkBlueCraiola, // amount hint text (receive page) hoverColor: Palette.darkBlueCraiola, // amount hint text (receive page)
dividerColor: Palette.paleBlue, dividerColor: Palette.paleBlue,
hintColor: Palette.gray, hintColor: Palette.gray,
@ -165,11 +169,13 @@ class Themes extends EnumerableItem<int> with Serializable<int> {
), ),
body1: TextStyle( body1: TextStyle(
color: Palette.blueCraiola.withOpacity(0.7), // first gradient color bottom panel (exchange page) color: Palette.blueCraiola.withOpacity(0.7), // first gradient color bottom panel (exchange page)
decorationColor: Palette.blueGreyCraiola.withOpacity(0.7) // second gradient color bottom panel (exchange page) decorationColor: Palette.blueGreyCraiola.withOpacity(0.7), // second gradient color bottom panel (exchange page)
backgroundColor: Palette.protectiveBlue // alert right button text
), ),
body2: TextStyle( body2: TextStyle(
color: Colors.white.withOpacity(0.5), // text field border on top panel (exchange page) color: Colors.white.withOpacity(0.5), // text field border on top panel (exchange page)
decorationColor: Colors.white.withOpacity(0.5), // text field border on bottom panel (exchange page) decorationColor: Colors.white.withOpacity(0.5), // text field border on bottom panel (exchange page)
backgroundColor: Palette.brightOrange // alert left button text
) )
), ),
focusColor: Colors.white.withOpacity(0.2), // text field button (exchange page) focusColor: Colors.white.withOpacity(0.2), // text field button (exchange page)
@ -211,7 +217,7 @@ class Themes extends EnumerableItem<int> with Serializable<int> {
display2: TextStyle( display2: TextStyle(
color: Palette.shadowWhite, // action button color (address text field) color: Palette.shadowWhite, // action button color (address text field)
decorationColor: Palette.darkGray, // hint text (seed widget) decorationColor: Palette.darkGray, // hint text (seed widget)
backgroundColor: Palette.darkBlueCraiola // text on balance page backgroundColor: Palette.darkBlueCraiola.withOpacity(0.67) // text on balance page
), ),
display3: TextStyle( display3: TextStyle(
color: Palette.darkGray, // hint text (new wallet page) color: Palette.darkGray, // hint text (new wallet page)
@ -224,11 +230,12 @@ class Themes extends EnumerableItem<int> with Serializable<int> {
), ),
body1: TextStyle( body1: TextStyle(
color: Palette.darkGray, // indicators (PIN code) color: Palette.darkGray, // indicators (PIN code)
decorationColor: Palette.darkGray // switch (PIN code) decorationColor: Palette.darkGray, // switch (PIN code)
backgroundColor: Colors.white // alert right button
), ),
body2: TextStyle( body2: TextStyle(
color: Palette.protectiveBlue, // primary buttons, alert right buttons color: Palette.protectiveBlue, // primary buttons
decorationColor: Palette.brightOrange, // alert left button, decorationColor: Colors.white, // alert left button,
backgroundColor: Palette.dullGray // keyboard bar color backgroundColor: Palette.dullGray // keyboard bar color
), ),
), ),
@ -343,11 +350,13 @@ class Themes extends EnumerableItem<int> with Serializable<int> {
), ),
body1: TextStyle( body1: TextStyle(
color: Palette.blueCraiola.withOpacity(0.7), // first gradient color bottom panel (exchange page) color: Palette.blueCraiola.withOpacity(0.7), // first gradient color bottom panel (exchange page)
decorationColor: Palette.pinkFlamingo.withOpacity(0.7) // second gradient color bottom panel (exchange page) decorationColor: Palette.pinkFlamingo.withOpacity(0.7), // second gradient color bottom panel (exchange page)
backgroundColor: Colors.white // alert right button text
), ),
body2: TextStyle( body2: TextStyle(
color: Colors.white.withOpacity(0.5), // text field border on top panel (exchange page) color: Colors.white.withOpacity(0.5), // text field border on top panel (exchange page)
decorationColor: Colors.white.withOpacity(0.5), // text field border on bottom panel (exchange page) decorationColor: Colors.white.withOpacity(0.5), // text field border on bottom panel (exchange page)
backgroundColor: Colors.white // alert left button text
) )
), ),
focusColor: Colors.white.withOpacity(0.2), // text field button (exchange page) focusColor: Colors.white.withOpacity(0.2), // text field button (exchange page)
@ -403,10 +412,11 @@ class Themes extends EnumerableItem<int> with Serializable<int> {
), ),
body1: TextStyle( body1: TextStyle(
color: Palette.darkGray, // indicators (PIN code) color: Palette.darkGray, // indicators (PIN code)
decorationColor: Palette.darkGray // switch (PIN code) decorationColor: Palette.darkGray, // switch (PIN code)
backgroundColor: Palette.moderateSlateBlue // alert right button
), ),
body2: TextStyle( body2: TextStyle(
color: Palette.moderateSlateBlue, // primary buttons, alert right buttons color: Palette.moderateSlateBlue, // primary buttons
decorationColor: Palette.brightOrange, // alert left button, decorationColor: Palette.brightOrange, // alert left button,
backgroundColor: Palette.dullGray // keyboard bar color backgroundColor: Palette.dullGray // keyboard bar color
), ),
@ -521,11 +531,13 @@ class Themes extends EnumerableItem<int> with Serializable<int> {
), ),
body1: TextStyle( body1: TextStyle(
color: PaletteDark.darkNightBlue, // first gradient color bottom panel (exchange page) color: PaletteDark.darkNightBlue, // first gradient color bottom panel (exchange page)
decorationColor: PaletteDark.darkNightBlue // second gradient color bottom panel (exchange page) decorationColor: PaletteDark.darkNightBlue, // second gradient color bottom panel (exchange page)
backgroundColor: Colors.white // alert right button text
), ),
body2: TextStyle( body2: TextStyle(
color: PaletteDark.blueGrey, // text field border on top panel (exchange page) color: PaletteDark.blueGrey, // text field border on top panel (exchange page)
decorationColor: PaletteDark.moderateVioletBlue, // text field border on bottom panel (exchange page) decorationColor: PaletteDark.moderateVioletBlue, // text field border on bottom panel (exchange page)
backgroundColor: Colors.white // alert left button text
) )
), ),
focusColor: PaletteDark.moderateBlue, // text field button (exchange page) focusColor: PaletteDark.moderateBlue, // text field button (exchange page)
@ -581,10 +593,11 @@ class Themes extends EnumerableItem<int> with Serializable<int> {
), ),
body1: TextStyle( body1: TextStyle(
color: PaletteDark.indicatorVioletBlue, // indicators (PIN code) color: PaletteDark.indicatorVioletBlue, // indicators (PIN code)
decorationColor: PaletteDark.lightPurpleBlue // switch (PIN code) decorationColor: PaletteDark.lightPurpleBlue, // switch (PIN code)
backgroundColor: Palette.blueCraiola // alert right button
), ),
body2: TextStyle( body2: TextStyle(
color: Palette.blueCraiola, // primary buttons, alert right buttons color: Palette.blueCraiola, // primary buttons
decorationColor: Palette.alizarinRed, // alert left button decorationColor: Palette.alizarinRed, // alert left button
backgroundColor: PaletteDark.granite // keyboard bar color backgroundColor: PaletteDark.granite // keyboard bar color
), ),