mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-06 03:18:23 +00:00
lightColorScheme()/darkColorScheme() only overrode primary/secondary/ tertiary/*Container/surface, leaving every paired on* text/icon role at Material3's baseline defaults — tuned for the default purple palette, with no guaranteed contrast against Amber's custom light gold/cream colors. This made default-styled Button() content (Copy to clipboard, Add relay, theme toggle, Revoke all permissions, Always allow) and NavigationRail's selected-item labels nearly invisible. Adds explicit onPrimary/onSecondary/onTertiary/onPrimaryContainer/ onSecondaryContainer/onSurface/onSurfaceVariant/onBackground/outline using a dark warm "ink" tone, fixing every default-styled button in one place rather than per call site. Also fixes the dark scheme's onPrimary (was White, same bug — primary stays light gold in dark mode too). HomeScreen's relay-status text and ActivityScreen's approved/rejected badge now use shared positiveColor/negativeColor instead of raw colorScheme.primary (itself too light to read as body text) or a locally-duplicated hardcoded green/red. Divider/border colors that used colorScheme.primary switch to the new colorScheme.outline role.