11package org.wordpress.android.ui.accounts.login.components
22
3+ import android.content.res.Configuration
34import androidx.compose.material.Text
45import androidx.compose.runtime.Composable
56import androidx.compose.ui.Modifier
@@ -24,16 +25,16 @@ private val fontSize = 40.sp
2425private fun LargeTexts () {
2526 val texts = stringArrayResource(R .array.login_prologue_revamped_jetpack_feature_texts)
2627
27- val oddColor = colorResource(R .color.text_color_jetpack_login_feature_odd )
28- val evenColor = colorResource(R .color.text_color_jetpack_login_feature_even )
28+ val secondaryColor = colorResource(R .color.text_color_jetpack_login_label_secondary )
29+ val primaryColor = colorResource(R .color.text_color_jetpack_login_label_primary )
2930
3031 val styledText = buildAnnotatedString {
3132 texts.forEachIndexed { index, text ->
3233 when ((index + 1 ).isOdd) {
33- true -> withStyle(SpanStyle (color = oddColor )) {
34+ true -> withStyle(SpanStyle (color = secondaryColor )) {
3435 append(text)
3536 }
36- false -> withStyle(SpanStyle (color = evenColor )) {
37+ false -> withStyle(SpanStyle (color = primaryColor )) {
3738 append(text)
3839 }
3940 }
@@ -63,7 +64,8 @@ fun LoopingText(modifier: Modifier = Modifier) {
6364 }
6465}
6566
66- @Preview(showBackground = true , device = Devices .PIXEL_4_XL )
67+ @Preview(showBackground = true , device = Devices .PIXEL_4 )
68+ @Preview(showBackground = true , device = Devices .PIXEL_4 , uiMode = Configuration .UI_MODE_NIGHT_YES )
6769@Composable
6870fun PreviewLoopingText () {
6971 AppTheme {
0 commit comments