warning text color fix

This commit is contained in:
julian 2022-09-22 08:57:06 -06:00
parent 2edc0c1102
commit 0f4ef21c70
7 changed files with 35 additions and 21 deletions

View file

@ -177,7 +177,8 @@ class _Step4ViewState extends ConsumerState<Step4View> {
text:
"You must send at least ${model.sendAmount.toString()} ${model.sendTicker}. ",
style: STextStyles.label.copyWith(
color: StackTheme.instance.color.textDark,
color:
StackTheme.instance.color.warningForeground,
fontWeight: FontWeight.w700,
),
children: [
@ -185,7 +186,8 @@ class _Step4ViewState extends ConsumerState<Step4View> {
text:
"If you send less than ${model.sendAmount.toString()} ${model.sendTicker}, your transaction may not be converted and it may not be refunded.",
style: STextStyles.label.copyWith(
color: StackTheme.instance.color.textDark,
color: StackTheme
.instance.color.warningForeground,
fontWeight: FontWeight.w500,
),
),

View file

@ -245,7 +245,7 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
trade.fromCurrency.toLowerCase() == "xmr" ? 12 : 8,
)} ${trade.fromCurrency.toUpperCase()}. ",
style: STextStyles.label.copyWith(
color: StackTheme.instance.color.accentColorDark,
color: StackTheme.instance.color.warningForeground,
fontWeight: FontWeight.w700,
),
children: [
@ -258,7 +258,7 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
)} ${trade.fromCurrency.toUpperCase()}, your transaction may not be converted and it may not be refunded.",
style: STextStyles.label.copyWith(
color:
StackTheme.instance.color.accentColorDark,
StackTheme.instance.color.warningForeground,
fontWeight: FontWeight.w500,
),
),

View file

@ -633,7 +633,9 @@ class _WalletNetworkSettingsViewState
color: StackTheme.instance.color.warningBackground,
child: Text(
"Please check your internet connection and make sure your current node is not having issues.",
style: STextStyles.baseXS,
style: STextStyles.baseXS.copyWith(
color: StackTheme.instance.color.warningForeground,
),
),
),
),

View file

@ -54,7 +54,9 @@ class DeleteWalletWarningView extends ConsumerWidget {
color: StackTheme.instance.color.warningBackground,
child: Text(
"You are going to permanently delete you wallet.\n\nIf you delete your wallet, the only way you can have access to your funds is by using your backup key.\n\nStack Wallet does not keep nor is able to restore your backup key or your wallet.\n\nPLEASE SAVE YOUR BACKUP KEY.",
style: STextStyles.baseXS,
style: STextStyles.baseXS.copyWith(
color: StackTheme.instance.color.warningForeground,
),
),
),
const Spacer(),

View file

@ -10,9 +10,6 @@ enum ThemeType {
abstract class StackColorTheme {
Color get background;
Color get overlay;
Color get warningBackground;
Color get splash;
Color get highlight;
Color get accentColorBlue;
Color get accentColorGreen;
@ -166,6 +163,11 @@ abstract class StackColorTheme {
Color get favoriteStarActive;
Color get favoriteStarInactive;
Color get splash;
Color get highlight;
Color get warningForeground;
Color get warningBackground;
}
class CoinThemeColor {

View file

@ -6,12 +6,6 @@ class DarkColors extends StackColorTheme {
Color get background => const Color(0xFF2A2D34);
@override
Color get overlay => const Color(0xFF111215);
@override
Color get warningBackground => const Color(0xFFFFB4A9);
@override
Color get splash => const Color(0x358E9192);
@override
Color get highlight => const Color(0x44A9ACAC);
@override
Color get accentColorBlue => const Color(0xFF4C86E9);
@ -289,4 +283,13 @@ class DarkColors extends StackColorTheme {
Color get favoriteStarActive => accentColorYellow;
@override
Color get favoriteStarInactive => textSubtitle2;
@override
Color get splash => const Color(0x358E9192);
@override
Color get highlight => const Color(0x44A9ACAC);
@override
Color get warningForeground => snackBarTextError;
@override
Color get warningBackground => const Color(0xFFFFB4A9);
}

View file

@ -6,12 +6,6 @@ class LightColors extends StackColorTheme {
Color get background => const Color(0xFFF7F7F7);
@override
Color get overlay => const Color(0xFF111215);
@override
Color get warningBackground => const Color(0xFFFFDAD3);
@override
Color get splash => const Color(0x358E9192);
@override
Color get highlight => const Color(0x44A9ACAC);
@override
Color get accentColorBlue => const Color(0xFF4C86E9);
@ -289,4 +283,13 @@ class LightColors extends StackColorTheme {
Color get favoriteStarActive => infoItemIcons;
@override
Color get favoriteStarInactive => textSubtitle3;
@override
Color get splash => const Color(0x358E9192);
@override
Color get highlight => const Color(0x44A9ACAC);
@override
Color get warningForeground => textDark;
@override
Color get warningBackground => const Color(0xFFFFDAD3);
}