mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
style: Make compose topAppBar consistent with legacy
This commit is contained in:
parent
e8d4e3ef18
commit
1a0ee24c63
2 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@ fun YokaiScaffold(
|
|||
fun getTopAppBarColor(title: String): Color {
|
||||
return when (title.isEmpty()) {
|
||||
true -> Color.Transparent
|
||||
false -> MaterialTheme.colorScheme.surface.copy(alpha = .7f)
|
||||
false -> MaterialTheme.colorScheme.surface
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ fun SettingsScaffold(
|
|||
title = title,
|
||||
appBarType = appBarType ?: if (useLargeAppBar) AppBarType.LARGE else AppBarType.SMALL,
|
||||
actions = appBarActions,
|
||||
scrollBehavior = TopAppBarDefaults.enterAlwaysScrollBehavior(
|
||||
scrollBehavior = TopAppBarDefaults.exitUntilCollapsedScrollBehavior(
|
||||
state = rememberTopAppBarState(),
|
||||
canScroll = { listState.firstVisibleItemIndex > 0 || listState.firstVisibleItemScrollOffset > 0 },
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue