mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-29 03:18:37 +00:00
revert formula
This commit is contained in:
+1
-1
@@ -160,7 +160,7 @@ private val badgeColorFilter = ColorFilter.colorMatrix(
|
||||
@Composable
|
||||
private fun ProfileBadge(size: Dp, badge: LocalBadge, onBadgeClick: (() -> Unit)?) {
|
||||
val s = size.value
|
||||
val mult = 1f + 0.3f * ((192f - s) / 156f).coerceIn(0f, 1f)
|
||||
val mult = 1f + 0.5f * ((192f - s) / 156f).coerceIn(0f, 1f)
|
||||
// phone height ~0.28*S; set width only (= 0.7617*height) and let the height follow the glyph's aspect ratio
|
||||
val phoneW = 0.28f * 0.7617f * size * mult
|
||||
val mod = Modifier.width(phoneW).let { if (onBadgeClick != null) it.clickable(onClick = onBadgeClick) else it }
|
||||
|
||||
Reference in New Issue
Block a user