Skip to content

Commit d749733

Browse files
Mostronatormostronator
andauthored
fix: use black text on green buttons for consistency (#473)
All green (mostroGreen/activeColor) buttons in NWC widgets and wallet screens were using white foreground text. The rest of the app uses black text on green buttons. Updated 5 instances across 4 files: - nwc_payment_widget.dart (1) - nwc_invoice_widget.dart (2) - wallet_settings_screen.dart (1) - connect_wallet_screen.dart (1) Co-authored-by: mostronator <mostronator@users.noreply.github.com>
1 parent f220dcf commit d749733

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lib/features/wallet/screens/connect_wallet_screen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class _ConnectWalletScreenState extends ConsumerState<ConnectWalletScreen> {
200200
),
201201
style: ElevatedButton.styleFrom(
202202
backgroundColor: AppTheme.activeColor,
203-
foregroundColor: Colors.white,
203+
foregroundColor: Colors.black,
204204
padding: const EdgeInsets.symmetric(vertical: 14),
205205
shape: RoundedRectangleBorder(
206206
borderRadius: BorderRadius.circular(8),

lib/features/wallet/screens/wallet_settings_screen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ class WalletSettingsScreen extends ConsumerWidget {
291291
label: Text(S.of(context)!.connectWallet),
292292
style: ElevatedButton.styleFrom(
293293
backgroundColor: AppTheme.activeColor,
294-
foregroundColor: Colors.white,
294+
foregroundColor: Colors.black,
295295
padding: const EdgeInsets.symmetric(vertical: 14),
296296
shape: RoundedRectangleBorder(
297297
borderRadius: BorderRadius.circular(8),

lib/shared/widgets/nwc_invoice_widget.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class _NwcInvoiceWidgetState extends ConsumerState<NwcInvoiceWidget> {
172172
),
173173
style: ElevatedButton.styleFrom(
174174
backgroundColor: AppTheme.mostroGreen,
175-
foregroundColor: Colors.white,
175+
foregroundColor: Colors.black,
176176
shape: RoundedRectangleBorder(
177177
borderRadius: BorderRadius.circular(12),
178178
),
@@ -283,7 +283,7 @@ class _NwcInvoiceWidgetState extends ConsumerState<NwcInvoiceWidget> {
283283
: null,
284284
style: ElevatedButton.styleFrom(
285285
backgroundColor: AppTheme.mostroGreen,
286-
foregroundColor: Colors.white,
286+
foregroundColor: Colors.black,
287287
shape: RoundedRectangleBorder(
288288
borderRadius: BorderRadius.circular(12),
289289
),

lib/shared/widgets/nwc_payment_widget.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class _NwcPaymentWidgetState extends ConsumerState<NwcPaymentWidget> {
171171
),
172172
style: ElevatedButton.styleFrom(
173173
backgroundColor: AppTheme.mostroGreen,
174-
foregroundColor: Colors.white,
174+
foregroundColor: Colors.black,
175175
disabledBackgroundColor: Colors.grey.shade700,
176176
shape: RoundedRectangleBorder(
177177
borderRadius: BorderRadius.circular(12),

0 commit comments

Comments
 (0)