Apply testing fixes

This commit is contained in:
Sylwester Zieliński
2022-02-03 16:27:01 +01:00
parent c9917cb084
commit 865722dea5
6 changed files with 34 additions and 40 deletions

View File

@@ -36,6 +36,20 @@ fun CloseIconAppBar(text: String, onClick: () -> Unit) {
)
}
@Composable
fun TitleAppBar(text: String) {
SmallTopAppBar(
title = { Text(text) },
colors = TopAppBarDefaults.smallTopAppBarColors(
scrolledContainerColor = MaterialTheme.colorScheme.primary,
containerColor = colorResource(id = R.color.appBarColor),
titleContentColor = MaterialTheme.colorScheme.onPrimary,
actionIconContentColor = MaterialTheme.colorScheme.onPrimary,
navigationIconContentColor = MaterialTheme.colorScheme.onPrimary,
)
)
}
@Composable
fun BackIconAppBar(text: String, onClick: () -> Unit) {
SmallTopAppBar(