Remove fontSize parameter. Must use style only.

This commit is contained in:
Benoit Marty 2023-07-10 17:30:42 +02:00 committed by Benoit Marty
parent b31a449338
commit 2844dee6d2
19 changed files with 37 additions and 31 deletions

View file

@ -94,7 +94,7 @@ private fun InitialsAvatar(
Text(
modifier = Modifier.align(Alignment.Center),
text = avatarData.initial,
fontSize = avatarData.size.dp.toSp() / 2,
style = ElementTheme.typography.fontBodyMdRegular.copy(fontSize = avatarData.size.dp.toSp() / 2),
color = Color.White,
)
}

View file

@ -56,8 +56,6 @@ fun Text(
text: String,
modifier: Modifier = Modifier,
color: Color = Color.Unspecified,
// Will be removed, only style should be used
fontSize: TextUnit = TextUnit.Unspecified,
fontStyle: FontStyle? = null,
textDecoration: TextDecoration? = null,
textAlign: TextAlign? = null,
@ -72,7 +70,6 @@ fun Text(
text = text,
modifier = modifier,
color = color,
fontSize = fontSize,
fontStyle = fontStyle,
textDecoration = textDecoration,
textAlign = textAlign,