Tint the chat-link preview and quoted-item icons on SIMPLEX

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.
This commit is contained in:
another-simple-pixel
2026-07-03 16:41:12 -07:00
parent 8f99809741
commit 16df57837f
2 changed files with 5 additions and 5 deletions
@@ -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,
)
@@ -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)