From 16df57837fcbcb8d5d8c397444f3184d48e94f0d Mon Sep 17 00:00:00 2001 From: another-simple-pixel Date: Fri, 3 Jul 2026 16:39:25 -0700 Subject: [PATCH] Tint the chat-link preview and quoted-item icons on SIMPLEX MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sweeping the message area for the remaining secondary-role content that read cold over the sunrise gradient — SIMPLEX secondary is a blue (#8B99D6) and the file/link icons used the grey FileDark / FileLight. This covers the chat-link preview card (avatar, short description, info line) and the file / voice / chat-link icons shown inside a quoted reply. Route them through simplexSecondaryTint() on SIMPLEX; every other theme keeps its exact colours. --- .../chat/simplex/common/views/chat/item/CIChatLinkHeader.kt | 6 +++--- .../chat/simplex/common/views/chat/item/FramedItemView.kt | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/CIChatLinkHeader.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/CIChatLinkHeader.kt index 3c3e4baf49..b414598cd7 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/CIChatLinkHeader.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/CIChatLinkHeader.kt @@ -32,7 +32,7 @@ fun CIChatLinkHeader( size = 54.dp, image = chatLink.image, icon = chatLink.iconRes, - color = if (isInDarkTheme()) FileDark else FileLight + color = if (CurrentColors.value.base == DefaultTheme.SIMPLEX) simplexSecondaryTint() else if (isInDarkTheme()) FileDark else FileLight ) Spacer(Modifier.width(8.dp)) Column( @@ -57,7 +57,7 @@ fun CIChatLinkHeader( chatLink.shortDescription?.let { descr -> Text( descr, - color = MaterialTheme.colors.secondary, + color = simplexSecondaryTint(), fontSize = 13.sp, lineHeight = 18.sp, maxLines = 2, @@ -66,7 +66,7 @@ fun CIChatLinkHeader( } Text( chatLink.infoLine(signed = ownerSig != null), - color = MaterialTheme.colors.secondary, + color = simplexSecondaryTint(), fontSize = 13.sp, lineHeight = 18.sp, ) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/FramedItemView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/FramedItemView.kt index 23002b603e..49705067bd 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/FramedItemView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/FramedItemView.kt @@ -175,7 +175,7 @@ fun FramedItemView( Modifier .padding(top = 6.dp, end = 4.dp) .size(22.dp), - tint = if (isInDarkTheme()) FileDark else FileLight + tint = if (CurrentColors.value.base == DefaultTheme.SIMPLEX) simplexSecondaryTint() else if (isInDarkTheme()) FileDark else FileLight ) } is MsgContent.MCChat -> { @@ -189,7 +189,7 @@ fun FramedItemView( painterResource(qi.content.chatLink.smallIconRes), null, Modifier.padding(top = 6.dp, end = 4.dp).size(22.dp), - tint = if (isInDarkTheme()) FileDark else FileLight + tint = if (CurrentColors.value.base == DefaultTheme.SIMPLEX) simplexSecondaryTint() else if (isInDarkTheme()) FileDark else FileLight ) } else -> ciQuotedMsgView(qi)