mirror of
https://github.com/bitwarden/android.git
synced 2026-05-12 23:01:13 -05:00
[PM-6702] Fix clickable text font weight
This commit is contained in:
@@ -130,7 +130,9 @@ fun CheckEmailScreen(
|
||||
mainText = stringResource(id = R.string.follow_the_instructions_in_the_email_sent_to_x_to_continue_creating_your_account, state.email),
|
||||
highlightText = state.email,
|
||||
highlightSpanStyle = SpanStyle(
|
||||
color = MaterialTheme.colorScheme.onSurface
|
||||
color = MaterialTheme.colorScheme.onSurface,
|
||||
fontSize = MaterialTheme.typography.bodyMedium.fontSize,
|
||||
fontWeight = FontWeight.Bold
|
||||
)
|
||||
)
|
||||
Text(
|
||||
|
||||
@@ -40,6 +40,7 @@ import androidx.compose.ui.state.ToggleableState
|
||||
import androidx.compose.ui.text.AnnotatedString
|
||||
import androidx.compose.ui.text.SpanStyle
|
||||
import androidx.compose.ui.text.buildAnnotatedString
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.text.input.KeyboardType
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.core.net.toUri
|
||||
@@ -272,7 +273,8 @@ private fun TermsAndPrivacyText(
|
||||
addStyle(
|
||||
style = SpanStyle(
|
||||
color = MaterialTheme.colorScheme.primary,
|
||||
fontSize = MaterialTheme.typography.bodyMedium.fontSize
|
||||
fontSize = MaterialTheme.typography.bodyMedium.fontSize,
|
||||
fontWeight = FontWeight.Bold
|
||||
),
|
||||
start = startIndexTerms,
|
||||
end = endIndexTerms
|
||||
@@ -280,7 +282,8 @@ private fun TermsAndPrivacyText(
|
||||
addStyle(
|
||||
style = SpanStyle(
|
||||
color = MaterialTheme.colorScheme.primary,
|
||||
fontSize = MaterialTheme.typography.bodyMedium.fontSize
|
||||
fontSize = MaterialTheme.typography.bodyMedium.fontSize,
|
||||
fontWeight = FontWeight.Bold
|
||||
),
|
||||
start = startIndexPrivacy,
|
||||
end = endIndexPrivacy
|
||||
@@ -351,7 +354,8 @@ private fun ReceiveMarketingEmailsSwitch(
|
||||
addStyle(
|
||||
style = SpanStyle(
|
||||
color = MaterialTheme.colorScheme.primary,
|
||||
fontSize = MaterialTheme.typography.bodyMedium.fontSize
|
||||
fontSize = MaterialTheme.typography.bodyMedium.fontSize,
|
||||
fontWeight = FontWeight.Bold
|
||||
),
|
||||
start = startIndexUnsubscribe,
|
||||
end = endIndexUnsubscribe
|
||||
|
||||
Reference in New Issue
Block a user