mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-12 09:13:23 +00:00
feat: give the Following badge a vivid accent shield with a white figure
Tying the badge to the tonal-button palette (secondaryContainer) made it read too dark against profile photos. Match the original badge look instead — a vivid shield with a white figure — recoloured to the accent: shield = primary, figure = onPrimary. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D1F9jXNwRGTP8qmsV3Wd69
This commit is contained in:
@@ -66,9 +66,10 @@ fun AmethystIcon(iconSize: Dp) {
|
||||
|
||||
@Composable
|
||||
fun FollowingIcon(modifier: Modifier) {
|
||||
// Match the FilledTonalButton palette: shield = secondaryContainer, figure = onSecondaryContainer.
|
||||
val shield = MaterialTheme.colorScheme.secondaryContainer
|
||||
val figure = MaterialTheme.colorScheme.onSecondaryContainer
|
||||
// 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) }
|
||||
Icon(
|
||||
imageVector = icon,
|
||||
|
||||
Reference in New Issue
Block a user