From 2725a9356918bffc1b78d2eae4dcafeeedf59ea0 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 16 Jul 2026 21:50:01 +0000 Subject: [PATCH] fix: keep the liked heart and reposted check their semantic colours MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Claude-Session: https://claude.ai/code/session_01D1F9jXNwRGTP8qmsV3Wd69 --- .../src/main/java/com/vitorpamplona/amethyst/ui/note/Icons.kt | 4 ++-- .../java/com/vitorpamplona/amethyst/ui/note/ReactionsRow.kt | 2 +- .../amethyst/ui/note/UpdateReactionTypeDialog.kt | 2 +- .../kotlin/com/vitorpamplona/amethyst/commons/icons/Liked.kt | 2 +- .../com/vitorpamplona/amethyst/commons/icons/Reposted.kt | 2 +- 5 files changed, 6 insertions(+), 6 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 d5d3963e61..685fcf2151 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 @@ -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, diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/ReactionsRow.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/ReactionsRow.kt index 551906429d..095037c07a 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/ReactionsRow.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/ReactionsRow.kt @@ -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) { diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/UpdateReactionTypeDialog.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/UpdateReactionTypeDialog.kt index 1f2523a4ff..9cec7d50ba 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/UpdateReactionTypeDialog.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/UpdateReactionTypeDialog.kt @@ -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 = " ✖", diff --git a/commons/src/commonMain/kotlin/com/vitorpamplona/amethyst/commons/icons/Liked.kt b/commons/src/commonMain/kotlin/com/vitorpamplona/amethyst/commons/icons/Liked.kt index 7640cc4e6f..d41cc91b37 100644 --- a/commons/src/commonMain/kotlin/com/vitorpamplona/amethyst/commons/icons/Liked.kt +++ b/commons/src/commonMain/kotlin/com/vitorpamplona/amethyst/commons/icons/Liked.kt @@ -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, diff --git a/commons/src/commonMain/kotlin/com/vitorpamplona/amethyst/commons/icons/Reposted.kt b/commons/src/commonMain/kotlin/com/vitorpamplona/amethyst/commons/icons/Reposted.kt index 7d0d50f266..5d99988b47 100644 --- a/commons/src/commonMain/kotlin/com/vitorpamplona/amethyst/commons/icons/Reposted.kt +++ b/commons/src/commonMain/kotlin/com/vitorpamplona/amethyst/commons/icons/Reposted.kt @@ -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,