From 76e9939c42ed0ee91010c9ff672478750cacdaf4 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 28 Jun 2023 23:07:22 +0200 Subject: [PATCH] Mark param as ready to be removed. --- .../libraries/designsystem/theme/components/Text.kt | 10 ++++++++++ 1 file changed, 10 insertions(+) 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,