From 011b2ee862746d2915e7ec13e962a33b6faa9b32 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 16 Jul 2026 23:58:41 +0000 Subject: [PATCH] fix: use the accent's deep tone for the Following shield MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The dark-theme primary is a pale pastel, so the follow shield read washed out versus the original dark #7F2EFF. Use the accent's deep tone (its light-theme primary) in both themes — carried by inversePrimary in the dark scheme — so the shield stays a dark, saturated accent with a white figure, matching the original badge's depth while still following the selected accent. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01D1F9jXNwRGTP8qmsV3Wd69 --- .../com/vitorpamplona/amethyst/ui/note/Icons.kt | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/Icons.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/Icons.kt index d3ed0d849a..29feeb08aa 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/Icons.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/Icons.kt @@ -51,6 +51,7 @@ import com.vitorpamplona.amethyst.ui.theme.Size19Modifier import com.vitorpamplona.amethyst.ui.theme.Size20Modifier import com.vitorpamplona.amethyst.ui.theme.Size30Modifier import com.vitorpamplona.amethyst.ui.theme.grayText +import com.vitorpamplona.amethyst.ui.theme.isLight import com.vitorpamplona.amethyst.ui.theme.placeholderText import com.vitorpamplona.amethyst.ui.theme.subtleButton @@ -66,11 +67,13 @@ fun AmethystIcon(iconSize: Dp) { @Composable fun FollowingIcon(modifier: Modifier) { - // Match the previous badge look — a vivid accent shield with a white figure — recoloured to the - // selected accent: shield = primary, figure = onPrimary. - val shield = MaterialTheme.colorScheme.primary - val figure = MaterialTheme.colorScheme.onPrimary - val icon = remember(shield, figure) { following(shield, figure) } + // Deep, saturated accent shield + white figure, like the original #7F2EFF badge. Use the accent's + // deep tone (its light-theme primary) in both themes: dark-theme `primary` is a pale pastel, so + // the shield would read washed out — inversePrimary carries the deep tone in the dark scheme, + // while `primary` already is it in light. + val scheme = MaterialTheme.colorScheme + val shield = if (scheme.isLight) scheme.primary else scheme.inversePrimary + val icon = remember(shield) { following(shield, Color.White) } Icon( imageVector = icon, contentDescription = stringRes(id = R.string.following),