From bea3f246644b410c939aee00a0978a004b1d2bed Mon Sep 17 00:00:00 2001 From: another-simple-pixel Date: Mon, 18 May 2026 07:42:07 -0700 Subject: [PATCH] MemberProfileImage: use defaultProfileIconColor instead of secondaryVariant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MemberProfileImage hard-coded color = MaterialTheme.colors.secondaryVariant as default, which is LightGray (#F1F2F6) on LIGHT — slightly bluish and nearly invisible against the ~#F0F0F0 canvas. Reuse the defaultProfileIconColor() helper so the LIGHT default matches the rest of the app (midpoint between canvas and white card), and DARK themes keep their palette secondaryVariant. defaultProfileIconColor() in ChatInfoImage.kt promoted from private to file- level visibility so it can be referenced from GroupMemberInfoView. --- .../chat/simplex/common/views/chat/group/GroupMemberInfoView.kt | 2 +- .../kotlin/chat/simplex/common/views/helpers/ChatInfoImage.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/group/GroupMemberInfoView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/group/GroupMemberInfoView.kt index 2b649cba9a..1dd23a66d4 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/group/GroupMemberInfoView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/group/GroupMemberInfoView.kt @@ -895,7 +895,7 @@ private fun RoleSelectionRow( fun MemberProfileImage( size: Dp, mem: GroupMember, - color: Color = MaterialTheme.colors.secondaryVariant, + color: Color = defaultProfileIconColor(), backgroundColor: Color? = null, async: Boolean = false ) { diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/helpers/ChatInfoImage.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/helpers/ChatInfoImage.kt index 0bc8312d0d..94ffc10087 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/helpers/ChatInfoImage.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/helpers/ChatInfoImage.kt @@ -25,7 +25,7 @@ import dev.icerock.moko.resources.ImageResource import kotlin.math.max @Composable -private fun defaultProfileIconColor(): Color = +fun defaultProfileIconColor(): Color = if (CurrentColors.value.base == DefaultTheme.LIGHT) MaterialTheme.colors.background.mixWith(MaterialTheme.colors.onBackground, 0.97f) else