From bb9bba94922c7cce61f5e65485ebf5bd1eeb3078 Mon Sep 17 00:00:00 2001 From: another-simple-pixel Date: Fri, 3 Jul 2026 15:53:31 -0700 Subject: [PATCH] Tint the framed-header caption and feature icon on SIMPLEX MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On the SIMPLEX theme these two elements still drew in the flat secondary colour over the sunrise gradient, while every sibling — the quoted author above the caption, the feature label beside the icon — already switched to the warm tint made to stay legible on that gradient. Route both through simplexSecondaryTint(), which returns the unchanged secondary colour for every other theme. --- .../simplex/common/views/chat/item/CIFeaturePreferenceView.kt | 2 +- .../chat/simplex/common/views/chat/item/FramedItemView.kt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/CIFeaturePreferenceView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/CIFeaturePreferenceView.kt index 8759d9a696..b26d92cc12 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/CIFeaturePreferenceView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/CIFeaturePreferenceView.kt @@ -27,7 +27,7 @@ fun CIFeaturePreferenceView( verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(4.dp) ) { - Icon(feature.icon, feature.text, Modifier.size(18.dp), tint = MaterialTheme.colors.secondary) + Icon(feature.icon, feature.text, Modifier.size(18.dp), tint = simplexSecondaryTint()) if (contact != null && allowed != FeatureAllowed.NO && contact.allowsFeature(feature) && !contact.userAllowsFeature(feature)) { val acceptStyle = SpanStyle(color = MaterialTheme.colors.primary, fontSize = 12.sp) val setParam = feature == ChatFeature.TimedMessages && contact.mergedPreferences.timedMessages.userPreference.pref.ttl == null 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 122c82546b..b2ac07ade5 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 @@ -119,9 +119,10 @@ fun FramedItemView( tint = iconColor ?: if (isInDarkTheme()) FileDark else FileLight ) } + val captionColor = simplexSecondaryTint() Text( buildAnnotatedString { - withStyle(SpanStyle(fontSize = 12.sp, fontStyle = if (italic) FontStyle.Italic else FontStyle.Normal, color = MaterialTheme.colors.secondary)) { + withStyle(SpanStyle(fontSize = 12.sp, fontStyle = if (italic) FontStyle.Italic else FontStyle.Normal, color = captionColor)) { append(caption) } },