mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-28 21:48:17 +00:00
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:
+3
-3
@@ -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,
|
||||
)
|
||||
|
||||
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user