Migrate licenses screen to full Compose

This commit is contained in:
arkon
2022-07-16 18:11:26 -04:00
parent 80c7a45328
commit 1b2c12385f
6 changed files with 49 additions and 36 deletions

View File

@@ -23,24 +23,27 @@ import androidx.compose.ui.text.style.TextOverflow
import eu.kanade.tachiyomi.R
@Composable
fun TopAppBar(
fun AppBar(
title: String?,
subtitle: String? = null,
navigateUp: () -> Unit,
navigateUp: (() -> Unit)? = null,
navigationIcon: ImageVector = Icons.Default.ArrowBack,
actions: @Composable RowScope.() -> Unit = {},
) {
SmallTopAppBar(
navigationIcon = {
IconButton(onClick = navigateUp) {
Icon(
imageVector = navigationIcon,
contentDescription = stringResource(R.string.abc_action_bar_up_description),
)
navigateUp?.let {
IconButton(onClick = it) {
Icon(
imageVector = navigationIcon,
contentDescription = stringResource(R.string.abc_action_bar_up_description),
)
}
}
},
title = {
AppBarTitle(title, subtitle)
// TODO: incognito/downloaded only banners
},
actions = actions,
)