diff --git a/libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/theme/components/Text.kt b/libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/theme/components/Text.kt index 465a291de2..a7c5ab2507 100644 --- a/libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/theme/components/Text.kt +++ b/libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/theme/components/Text.kt @@ -56,13 +56,18 @@ 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, + // Will be removed, only style should be used fontWeight: FontWeight? = null, + // Will be removed, only style should be used fontFamily: FontFamily? = null, + // Will be removed, only style should be used letterSpacing: TextUnit = TextUnit.Unspecified, textDecoration: TextDecoration? = null, textAlign: TextAlign? = null, + // Will be removed, only style should be used lineHeight: TextUnit = TextUnit.Unspecified, overflow: TextOverflow = TextOverflow.Clip, softWrap: Boolean = true, @@ -97,13 +102,18 @@ fun Text( text: AnnotatedString, modifier: Modifier = Modifier, color: Color = Color.Unspecified, + // Will be removed, only style should be used fontSize: TextUnit = TextUnit.Unspecified, fontStyle: FontStyle? = null, + // Will be removed, only style should be used fontWeight: FontWeight? = null, + // Will be removed, only style should be used fontFamily: FontFamily? = null, + // Will be removed, only style should be used letterSpacing: TextUnit = TextUnit.Unspecified, textDecoration: TextDecoration? = null, textAlign: TextAlign? = null, + // Will be removed, only style should be used lineHeight: TextUnit = TextUnit.Unspecified, overflow: TextOverflow = TextOverflow.Clip, softWrap: Boolean = true,