Skip to content

Commit f187aad

Browse files
committed
Update text style to match the one used earlier
1 parent 5ec1df7 commit f187aad

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

collect_app/src/main/java/org/odk/collect/android/widgets/TextWidgetAnswer.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,12 @@ fun TextWidgetAnswer(
5252
Spacer(modifier = Modifier.width(dimensionResource(id = dimen.margin_small)))
5353
Text(
5454
text = answer,
55-
style = TextStyle(fontSize = fontSize.sp)
55+
style = MaterialTheme.typography.bodyLarge.copy(
56+
fontSize = fontSize.sp,
57+
color = MaterialTheme.colorScheme.onSurface.copy(
58+
alpha = dimen.high_emphasis.toFloat()
59+
)
60+
)
5661
)
5762
}
5863
}

0 commit comments

Comments
 (0)