MemberProfileImage: use defaultProfileIconColor instead of secondaryVariant

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.
This commit is contained in:
another-simple-pixel
2026-05-18 07:42:07 -07:00
parent 05fbd6e0b1
commit bea3f24664
2 changed files with 2 additions and 2 deletions
@@ -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
) {
@@ -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