fix: keep the liked heart and reposted check their semantic colours

The previous change made every commons action icon follow the accent, but the
liked heart (red) and reposted check (green) are semantic status colours, not
brand purple. Restore their original baked colours and Color.Unspecified
rendering. Only the Following badge — which was brand purple — keeps following
the accent.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D1F9jXNwRGTP8qmsV3Wd69
This commit is contained in:
Claude
2026-07-16 21:50:01 +00:00
parent 479c20a2e6
commit 2725a93569
5 changed files with 6 additions and 6 deletions
@@ -102,7 +102,7 @@ fun DownloadForOfflineIcon(
@Composable
fun LikedIcon(
modifier: Modifier,
tint: Color = MaterialTheme.colorScheme.primary,
tint: Color = Color.Unspecified,
) {
Icon(
imageVector = Liked,
@@ -154,7 +154,7 @@ fun RepostIcon(
@Composable
fun RepostedIcon(
modifier: Modifier,
tint: Color = MaterialTheme.colorScheme.primary,
tint: Color = Color.Unspecified,
) {
Icon(
imageVector = Reposted,
@@ -929,7 +929,7 @@ fun BoostReaction(
},
) {
ObserveBoostIcon(baseNote, accountViewModel) { hasBoosted ->
RepostedIcon(iconSizeModifier, if (hasBoosted) MaterialTheme.colorScheme.primary else grayTint)
RepostedIcon(iconSizeModifier, if (hasBoosted) Color.Unspecified else grayTint)
}
if (wantsToBoost) {
@@ -302,7 +302,7 @@ private fun RenderReactionOption(
when (reactionType) {
"+" -> {
Row {
LikedIcon(modifier = Modifier.size(20.dp))
LikedIcon(modifier = Modifier.size(20.dp), tint = Color.Unspecified)
Text(
text = "",
@@ -51,7 +51,7 @@ public val Liked: ImageVector
viewportHeight = 24.0f,
).apply {
path(
fill = SolidColor(Color.Black),
fill = SolidColor(Color(0xFFCA395f)),
strokeLineWidth = 0.0f,
strokeLineCap = Butt,
strokeLineJoin = Miter,
@@ -51,7 +51,7 @@ public val Reposted: ImageVector
viewportHeight = 24.0f,
).apply {
path(
fill = SolidColor(Color.Black),
fill = SolidColor(Color(0xFF59bc6d)),
stroke = null,
strokeLineWidth = 0.0f,
strokeLineCap = Butt,