mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
fix(ui): make unchecked NewSimpleCheckbox visible in light themes
The unchecked background resolved to colorScheme.surfaceContainerHighest, which is pure white in LightTheme, so the unselected checkbox was an invisible white disc on near-white list rows. In light brightness use onSurfaceVariant with alpha 80 instead; dark themes are unchanged.
This commit is contained in:
@@ -20,7 +20,9 @@ class NewSimpleCheckbox extends StatelessWidget {
|
||||
decoration: BoxDecoration(
|
||||
color: value
|
||||
? Theme.of(context).colorScheme.primary
|
||||
: Theme.of(context).colorScheme.surfaceContainerHighest,
|
||||
: Theme.of(context).brightness == Brightness.light
|
||||
? Theme.of(context).colorScheme.onSurfaceVariant.withAlpha(80)
|
||||
: Theme.of(context).colorScheme.surfaceContainerHighest,
|
||||
borderRadius: const BorderRadius.all(Radius.circular(50)),
|
||||
),
|
||||
height: 24,
|
||||
|
||||
Reference in New Issue
Block a user