mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-04 15:02:44 +02:00
BugFix for dark text on dark background.
This commit is contained in:
@@ -153,11 +153,16 @@ fun LoginPage(accountViewModel: AccountStateViewModel) {
|
|||||||
onCheckedChange = { acceptedTerms.value = it }
|
onCheckedChange = { acceptedTerms.value = it }
|
||||||
)
|
)
|
||||||
|
|
||||||
|
val regularText =
|
||||||
|
SpanStyle(color = MaterialTheme.colors.onBackground)
|
||||||
|
|
||||||
val clickableTextStyle =
|
val clickableTextStyle =
|
||||||
SpanStyle(color = MaterialTheme.colors.primary)
|
SpanStyle(color = MaterialTheme.colors.primary)
|
||||||
|
|
||||||
val annotatedTermsString = buildAnnotatedString {
|
val annotatedTermsString = buildAnnotatedString {
|
||||||
append(stringResource(R.string.i_accept_the))
|
withStyle(regularText) {
|
||||||
|
append(stringResource(R.string.i_accept_the))
|
||||||
|
}
|
||||||
|
|
||||||
withStyle(clickableTextStyle) {
|
withStyle(clickableTextStyle) {
|
||||||
pushStringAnnotation("openTerms", "")
|
pushStringAnnotation("openTerms", "")
|
||||||
|
Reference in New Issue
Block a user