File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
WordPress/src/jetpack/java/org/wordpress/android/ui/accounts/login/components Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import android.content.res.Configuration
44import androidx.compose.material.Text
55import androidx.compose.runtime.Composable
66import androidx.compose.ui.Modifier
7+ import androidx.compose.ui.platform.LocalDensity
78import androidx.compose.ui.res.colorResource
89import androidx.compose.ui.res.stringArrayResource
910import androidx.compose.ui.text.ParagraphStyle
@@ -20,11 +21,13 @@ import org.wordpress.android.ui.accounts.login.LocalPosition
2021import org.wordpress.android.ui.compose.theme.AppTheme
2122import org.wordpress.android.util.extensions.isOdd
2223
23- private val fontSize = 40 .sp
24- private val lineHeight = fontSize / 100 * 105 // last value = % of fontSize
24+ private const val FIXED_FONT_SIZE = 40
2525
2626@Composable
2727private fun LargeTexts () {
28+ val fontSize = (FIXED_FONT_SIZE / LocalDensity .current.fontScale).sp
29+ val lineHeight = fontSize * 1.05 // calculate line height to 5% larger than the font size
30+
2831 val texts = stringArrayResource(R .array.login_prologue_revamped_jetpack_feature_texts)
2932
3033 val secondaryColor = colorResource(R .color.text_color_jetpack_login_label_secondary)
You can’t perform that action at this time.
0 commit comments