mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-05 19:08:23 +00:00
The tor/proxy shield icon was tinted with hardcoded Color.Green and Color.Red. Pure green sits on the lightColorPalette surface for the top app bar (amber 0xFFFFDE9E) with a ~1:1 contrast ratio, so the connected state was invisible in light theme, and neither color adapted to dark theme. Add theme-aware connected greens to Theme.kt (dark green for the light palette, light green for dark) and pick them with isSystemInDarkTheme(); the disconnected state now uses colorScheme.error, which is already theme-aware. The relay reconnect icon drew with the hardcoded #4C4C4C fill of relays.xml (tint Color.Unspecified), only ~2:1 on the dark theme surface. Tint it with LocalContentColor so it matches the adjacent relay count text; the drawable itself is left alone since the settings screen and the navigation route icon also use it.