mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
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.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user