@@ -18,7 +18,6 @@ import androidx.compose.material.CircularProgressIndicator
18
18
import androidx.compose.material.ContentAlpha
19
19
import androidx.compose.material.Icon
20
20
import androidx.compose.material.IconButton
21
- import androidx.compose.material.MaterialTheme
22
21
import androidx.compose.material.Text
23
22
import androidx.compose.runtime.Composable
24
23
import androidx.compose.runtime.LaunchedEffect
@@ -36,9 +35,8 @@ import androidx.compose.ui.res.stringResource
36
35
import androidx.compose.ui.text.style.TextAlign
37
36
import androidx.compose.ui.text.style.TextOverflow
38
37
import androidx.compose.ui.unit.dp
38
+ import com.stripe.android.link.theme.LinkTheme
39
39
import com.stripe.android.link.theme.StripeThemeForLink
40
- import com.stripe.android.link.theme.linkColors
41
- import com.stripe.android.link.theme.linkShapes
42
40
import com.stripe.android.link.ui.ErrorText
43
41
import com.stripe.android.link.ui.ScrollableTopLevelColumn
44
42
import com.stripe.android.link.utils.LINK_DEFAULT_ANIMATION_DELAY_MILLIS
@@ -107,8 +105,8 @@ internal fun VerificationBody(
107
105
.testTag(VERIFICATION_SUBTITLE_TAG )
108
106
.fillMaxWidth(),
109
107
textAlign = TextAlign .Companion .Center ,
110
- style = MaterialTheme .typography.body1 ,
111
- color = MaterialTheme .colors.onSecondary
108
+ style = LinkTheme .typography.body ,
109
+ color = LinkTheme .colors.textSecondary
112
110
)
113
111
114
112
Spacer (modifier = Modifier .size(24 .dp))
@@ -120,12 +118,12 @@ internal fun VerificationBody(
120
118
middleSpacing = 8 .dp,
121
119
boxSpacing = 8 .dp,
122
120
otpInputPlaceholder = " " ,
123
- boxShape = MaterialTheme .linkShapes .large,
121
+ boxShape = LinkTheme .shapes .large,
124
122
modifier = Modifier
125
123
// 48dp per OTP box plus 8dp per space
126
124
.width(328 .dp)
127
125
.testTag(VERIFICATION_OTP_TAG ),
128
- colors = MaterialTheme .linkColors .otpElementColors,
126
+ colors = LinkTheme .colors .otpElementColors,
129
127
focusRequester = focusRequester
130
128
)
131
129
}
@@ -230,8 +228,8 @@ private fun Header(
230
228
modifier = Modifier
231
229
.testTag(VERIFICATION_TITLE_TAG ),
232
230
textAlign = TextAlign .Companion .Center ,
233
- style = MaterialTheme .typography.h2 ,
234
- color = MaterialTheme .colors.onPrimary
231
+ style = LinkTheme .typography.title ,
232
+ color = LinkTheme .colors.textPrimary
235
233
)
236
234
} else {
237
235
Text (
@@ -240,8 +238,8 @@ private fun Header(
240
238
.testTag(VERIFICATION_TITLE_TAG )
241
239
.padding(vertical = 4 .dp),
242
240
textAlign = TextAlign .Companion .Center ,
243
- style = MaterialTheme .typography.h2 ,
244
- color = MaterialTheme .colors.onPrimary
241
+ style = LinkTheme .typography.title ,
242
+ color = LinkTheme .colors.textPrimary
245
243
)
246
244
}
247
245
}
@@ -258,10 +256,10 @@ private fun ChangeEmailRow(
258
256
Text (
259
257
text = email,
260
258
modifier = Modifier .weight(weight = 1f , fill = false ),
261
- color = MaterialTheme .colors.onSecondary ,
259
+ color = LinkTheme .colors.textSecondary ,
262
260
overflow = TextOverflow .Companion .Ellipsis ,
263
261
maxLines = 1 ,
264
- style = MaterialTheme .typography.body2
262
+ style = LinkTheme .typography.body
265
263
)
266
264
Text (
267
265
text = stringResource(id = R .string.stripe_verification_change_email_new),
@@ -272,9 +270,9 @@ private fun ChangeEmailRow(
272
270
enabled = ! isProcessing,
273
271
onClick = onChangeEmailClick
274
272
),
275
- color = MaterialTheme .linkColors.textBrand ,
273
+ color = LinkTheme .colors.actionLabel ,
276
274
maxLines = 1 ,
277
- style = MaterialTheme .typography.body2
275
+ style = LinkTheme .typography.body
278
276
)
279
277
}
280
278
}
@@ -304,8 +302,8 @@ private fun ResendCodeButton(
304
302
305
303
Text (
306
304
text = stringResource(id = R .string.stripe_verification_resend),
307
- style = MaterialTheme .typography.button ,
308
- color = MaterialTheme .linkColors.textBrand ,
305
+ style = LinkTheme .typography.bodyEmphasized ,
306
+ color = LinkTheme .colors.actionLabel ,
309
307
modifier = Modifier
310
308
.alpha(textAlpha),
311
309
)
@@ -314,7 +312,7 @@ private fun ResendCodeButton(
314
312
visible = isSendingNewCode
315
313
) {
316
314
CircularProgressIndicator (
317
- color = MaterialTheme .linkColors.textBrand ,
315
+ color = LinkTheme .colors.actionLabel ,
318
316
strokeWidth = 2 .dp,
319
317
modifier = Modifier
320
318
.testTag(VERIFICATION_RESEND_LOADER_TAG )
0 commit comments