From 360556b8f79bbdb3aadcf40d6877099a9eeae53f Mon Sep 17 00:00:00 2001 From: jwinterm Date: Mon, 18 May 2026 14:12:36 -0400 Subject: [PATCH] Top-bar: use onSurfaceVariant for the gear icon (same fix as navbar) Same root cause as the bottom navbar invisibility: iconColor was set to theme.colorScheme.primary, which on the light theme is our dark forest green (#1A5C38) and goes invisible on dark surfaces. onSurfaceVariant is Material's de-emphasized-foreground token and has guaranteed contrast against the surface across all our themes. --- lib/new-ui/widgets/coins_page/top_bar_widget/top_bar.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/new-ui/widgets/coins_page/top_bar_widget/top_bar.dart b/lib/new-ui/widgets/coins_page/top_bar_widget/top_bar.dart index e3e28871d..78e7353de 100644 --- a/lib/new-ui/widgets/coins_page/top_bar_widget/top_bar.dart +++ b/lib/new-ui/widgets/coins_page/top_bar_widget/top_bar.dart @@ -45,7 +45,11 @@ class TopBar extends StatelessWidget { isSyncHeavy: dashboardViewModel.isSyncHeavy, ), ModernButton.svg( - iconColor: Theme.of(context).colorScheme.primary, + // Hash Wallet: was theme.colorScheme.primary (dark forest green) + // which rendered the gear icon nearly invisible on the dark + // dashboard backdrop. onSurfaceVariant is the de-emphasized- + // foreground Material token. + iconColor: Theme.of(context).colorScheme.onSurfaceVariant, size: 36, onPressed: () { HapticFeedback.mediumImpact();