mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 10:32:34 +00:00
Use bolder font for fallback avatar.
This commit is contained in:
committed by
Benoit Marty
parent
ff77fca34d
commit
d383590910
+1
-1
@@ -97,7 +97,7 @@ private fun InitialsAvatar(
|
|||||||
modifier.background(color = avatarColors?.background ?: avatarColor)
|
modifier.background(color = avatarColors?.background ?: avatarColor)
|
||||||
) {
|
) {
|
||||||
val fontSize = avatarData.size.dp.toSp() / 2
|
val fontSize = avatarData.size.dp.toSp() / 2
|
||||||
val originalFont = ElementTheme.typography.fontBodyMdRegular
|
val originalFont = ElementTheme.typography.fontHeadingMdBold
|
||||||
val ratio = fontSize.value / originalFont.fontSize.value
|
val ratio = fontSize.value / originalFont.fontSize.value
|
||||||
val lineHeight = originalFont.lineHeight * ratio
|
val lineHeight = originalFont.lineHeight * ratio
|
||||||
Text(
|
Text(
|
||||||
|
|||||||
Reference in New Issue
Block a user