A few more color fixes

This commit is contained in:
julian 2022-09-22 14:27:13 -06:00
parent 942a67e6a4
commit dd122e3610
8 changed files with 19 additions and 6 deletions

View file

@ -653,7 +653,9 @@ class _RestoreWalletViewState extends ConsumerState<RestoreWalletView> {
}
},
controller: _controllers[i - 1],
style: STextStyles.field,
style: STextStyles.field.copyWith(
color: StackTheme.instance.color.overlay,
),
),
),
if (_inputStatuses[i - 1] ==

View file

@ -74,6 +74,7 @@ class _DeleteWalletRecoveryPhraseViewState
Assets.svg.copy,
width: 20,
height: 20,
color: StackTheme.instance.color.topNavIconPrimary,
),
onPressed: () async {
final words = await _manager.mnemonic;

View file

@ -553,8 +553,8 @@ class _TransactionDetailsViewState
.read(prefsChangeNotifierProvider)
.hideBlockExplorerWarning ==
false) {
final shouldContinue =
await showExplorerWarning(uri.host);
final shouldContinue = await showExplorerWarning(
"${uri.scheme}://${uri.host}");
if (!shouldContinue) {
return;

View file

@ -119,6 +119,8 @@ class _TransactionSearchViewState
MaterialRoundedDatePickerStyle _buildDatePickerStyle() {
return MaterialRoundedDatePickerStyle(
backgroundPicker: StackTheme.instance.color.popupBG,
// backgroundHeader: StackTheme.instance.color.textSubtitle2,
paddingMonthHeader: const EdgeInsets.only(top: 11),
colorArrowNext: StackTheme.instance.color.textSubtitle1,
colorArrowPrevious: StackTheme.instance.color.textSubtitle1,
@ -156,6 +158,7 @@ class _TransactionSearchViewState
MaterialRoundedYearPickerStyle _buildYearPickerStyle() {
return MaterialRoundedYearPickerStyle(
backgroundPicker: StackTheme.instance.color.popupBG,
textStyleYear: _datePickerTextStyleBase.copyWith(
color: StackTheme.instance.color.textSubtitle2,
fontWeight: FontWeight.w600,

View file

@ -170,6 +170,7 @@ abstract class StackColorTheme {
Color get warningBackground;
Color get loadingOverlayTextColor;
Color get myStackContactIconBG;
}
class CoinThemeColor {

View file

@ -185,7 +185,7 @@ class DarkColors extends StackColorTheme {
@override
Color get textFieldErrorBG => const Color(0xFFFFB4A9);
@override
Color get textFieldSuccessBG => const Color(0xFFB9E9D4);
Color get textFieldSuccessBG => const Color(0xFF8EF5C3);
@override
Color get textFieldActiveSearchIconLeft => const Color(0xFFA9ACAC);
@ -294,4 +294,6 @@ class DarkColors extends StackColorTheme {
Color get warningBackground => const Color(0xFFFFB4A9);
@override
Color get loadingOverlayTextColor => const Color(0xFFF7F7F7);
@override
Color get myStackContactIconBG => const Color(0x88747778);
}

View file

@ -83,7 +83,7 @@ class LightColors extends StackColorTheme {
@override
Color get buttonTextDisabled => const Color(0xFFB6B6B6);
@override
Color get buttonTextBorderless => const Color(0xFF232323);
Color get buttonTextBorderless => const Color(0xFF0052DF);
@override
Color get buttonTextBorderlessDisabled => const Color(0xFFB6B6B6);
@override
@ -294,4 +294,6 @@ class LightColors extends StackColorTheme {
Color get warningBackground => const Color(0xFFFFDAD3);
@override
Color get loadingOverlayTextColor => const Color(0xFFF7F7F7);
@override
Color get myStackContactIconBG => textFieldDefaultBG;
}

View file

@ -80,7 +80,9 @@ class _AddressBookCardState extends ConsumerState<AddressBookCard> {
width: 32,
height: 32,
decoration: BoxDecoration(
color: StackTheme.instance.color.textFieldDefaultBG,
color: contact.id == "default"
? StackTheme.instance.color.myStackContactIconBG
: StackTheme.instance.color.textFieldDefaultBG,
borderRadius: BorderRadius.circular(32),
),
child: contact.id == "default"