Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[Jetsurvey] Removing ContentAlpha.high
  • Loading branch information
florina-muntenescu committed Nov 6, 2020
commit b88faedf3231e96c509f29670cf18defa394f055
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,12 @@ private fun Branding(modifier: Modifier = Modifier) {
modifier = modifier.wrapContentHeight(align = Alignment.CenterVertically)
) {
Logo(modifier = Modifier.align(Alignment.CenterHorizontally).padding(horizontal = 76.dp))
Providers(AmbientContentAlpha provides ContentAlpha.high) {
Text(
text = stringResource(id = R.string.app_tagline),
style = MaterialTheme.typography.subtitle1,
textAlign = TextAlign.Center,
modifier = Modifier.padding(top = 24.dp).fillMaxWidth()
)
}
Text(
text = stringResource(id = R.string.app_tagline),
style = MaterialTheme.typography.subtitle1,
textAlign = TextAlign.Center,
modifier = Modifier.padding(top = 24.dp).fillMaxWidth()
)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,11 @@ fun Question(
shape = MaterialTheme.shapes.small
)
) {
Providers(AmbientContentAlpha provides ContentAlpha.high) {
Text(
text = stringResource(id = question.questionText),
style = MaterialTheme.typography.subtitle1,
modifier = Modifier.fillMaxWidth().padding(vertical = 24.dp, horizontal = 16.dp)
)
}
Text(
text = stringResource(id = question.questionText),
style = MaterialTheme.typography.subtitle1,
modifier = Modifier.fillMaxWidth().padding(vertical = 24.dp, horizontal = 16.dp)
)
}
Spacer(modifier = Modifier.preferredHeight(24.dp))
if (question.description != null) {
Expand Down