mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-11 05:04:35 +00:00
mnemonic word game selected text dark theme color fix
This commit is contained in:
parent
f45449f3d2
commit
64420962f2
5 changed files with 32 additions and 3 deletions
|
@ -56,10 +56,23 @@ class WordTableItem extends ConsumerWidget {
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: isDesktop
|
style: isDesktop
|
||||||
? STextStyles.desktopTextExtraSmall(context).copyWith(
|
? STextStyles.desktopTextExtraSmall(context).copyWith(
|
||||||
color:
|
color: selectedWord == word
|
||||||
Theme.of(context).extension<StackColors>()!.textDark,
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textSelectedWordTableItem
|
||||||
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textDark,
|
||||||
)
|
)
|
||||||
: STextStyles.baseXS(context),
|
: STextStyles.baseXS(context).copyWith(
|
||||||
|
color: selectedWord == word
|
||||||
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textSelectedWordTableItem
|
||||||
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textDark,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
@ -174,6 +174,7 @@ abstract class StackColorTheme {
|
||||||
Color get loadingOverlayTextColor;
|
Color get loadingOverlayTextColor;
|
||||||
Color get myStackContactIconBG;
|
Color get myStackContactIconBG;
|
||||||
Color get textConfirmTotalAmount;
|
Color get textConfirmTotalAmount;
|
||||||
|
Color get textSelectedWordTableItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
class CoinThemeColor {
|
class CoinThemeColor {
|
||||||
|
|
|
@ -301,4 +301,6 @@ class DarkColors extends StackColorTheme {
|
||||||
Color get myStackContactIconBG => const Color(0x88747778);
|
Color get myStackContactIconBG => const Color(0x88747778);
|
||||||
@override
|
@override
|
||||||
Color get textConfirmTotalAmount => const Color(0xFF003921);
|
Color get textConfirmTotalAmount => const Color(0xFF003921);
|
||||||
|
@override
|
||||||
|
Color get textSelectedWordTableItem => const Color(0xFF00297A);
|
||||||
}
|
}
|
||||||
|
|
|
@ -301,4 +301,6 @@ class LightColors extends StackColorTheme {
|
||||||
Color get myStackContactIconBG => textFieldDefaultBG;
|
Color get myStackContactIconBG => textFieldDefaultBG;
|
||||||
@override
|
@override
|
||||||
Color get textConfirmTotalAmount => const Color(0xFF232323);
|
Color get textConfirmTotalAmount => const Color(0xFF232323);
|
||||||
|
@override
|
||||||
|
Color get textSelectedWordTableItem => const Color(0xFF232323);
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,6 +169,7 @@ class StackColors extends ThemeExtension<StackColors> {
|
||||||
final Color loadingOverlayTextColor;
|
final Color loadingOverlayTextColor;
|
||||||
final Color myStackContactIconBG;
|
final Color myStackContactIconBG;
|
||||||
final Color textConfirmTotalAmount;
|
final Color textConfirmTotalAmount;
|
||||||
|
final Color textSelectedWordTableItem;
|
||||||
|
|
||||||
StackColors({
|
StackColors({
|
||||||
required this.themeType,
|
required this.themeType,
|
||||||
|
@ -300,6 +301,7 @@ class StackColors extends ThemeExtension<StackColors> {
|
||||||
required this.loadingOverlayTextColor,
|
required this.loadingOverlayTextColor,
|
||||||
required this.myStackContactIconBG,
|
required this.myStackContactIconBG,
|
||||||
required this.textConfirmTotalAmount,
|
required this.textConfirmTotalAmount,
|
||||||
|
required this.textSelectedWordTableItem,
|
||||||
});
|
});
|
||||||
|
|
||||||
factory StackColors.fromStackColorTheme(StackColorTheme colorTheme) {
|
factory StackColors.fromStackColorTheme(StackColorTheme colorTheme) {
|
||||||
|
@ -435,6 +437,7 @@ class StackColors extends ThemeExtension<StackColors> {
|
||||||
loadingOverlayTextColor: colorTheme.loadingOverlayTextColor,
|
loadingOverlayTextColor: colorTheme.loadingOverlayTextColor,
|
||||||
myStackContactIconBG: colorTheme.myStackContactIconBG,
|
myStackContactIconBG: colorTheme.myStackContactIconBG,
|
||||||
textConfirmTotalAmount: colorTheme.textConfirmTotalAmount,
|
textConfirmTotalAmount: colorTheme.textConfirmTotalAmount,
|
||||||
|
textSelectedWordTableItem: colorTheme.textSelectedWordTableItem,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -569,6 +572,7 @@ class StackColors extends ThemeExtension<StackColors> {
|
||||||
Color? loadingOverlayTextColor,
|
Color? loadingOverlayTextColor,
|
||||||
Color? myStackContactIconBG,
|
Color? myStackContactIconBG,
|
||||||
Color? textConfirmTotalAmount,
|
Color? textConfirmTotalAmount,
|
||||||
|
Color? textSelectedWordTableItem,
|
||||||
}) {
|
}) {
|
||||||
return StackColors(
|
return StackColors(
|
||||||
themeType: themeType ?? this.themeType,
|
themeType: themeType ?? this.themeType,
|
||||||
|
@ -736,6 +740,8 @@ class StackColors extends ThemeExtension<StackColors> {
|
||||||
myStackContactIconBG: myStackContactIconBG ?? this.myStackContactIconBG,
|
myStackContactIconBG: myStackContactIconBG ?? this.myStackContactIconBG,
|
||||||
textConfirmTotalAmount:
|
textConfirmTotalAmount:
|
||||||
textConfirmTotalAmount ?? this.textConfirmTotalAmount,
|
textConfirmTotalAmount ?? this.textConfirmTotalAmount,
|
||||||
|
textSelectedWordTableItem:
|
||||||
|
textSelectedWordTableItem ?? this.textSelectedWordTableItem,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1388,6 +1394,11 @@ class StackColors extends ThemeExtension<StackColors> {
|
||||||
other.textConfirmTotalAmount,
|
other.textConfirmTotalAmount,
|
||||||
t,
|
t,
|
||||||
)!,
|
)!,
|
||||||
|
textSelectedWordTableItem: Color.lerp(
|
||||||
|
textSelectedWordTableItem,
|
||||||
|
other.textSelectedWordTableItem,
|
||||||
|
t,
|
||||||
|
)!,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue