add web appbar color customization

This commit is contained in:
2026-08-15 08:30:39 +03:00
parent d6a0d058ed
commit 036aeba245
7 changed files with 43 additions and 7 deletions
@@ -38,4 +38,3 @@ class SearchSyncStrategy(
}
}
}
@@ -39,14 +39,14 @@ fun Modifier.imePaddingInternal(): Modifier {
}
@Composable
fun Nav(root: VBoxRootComponent) {
fun Nav(root: VBoxRootComponent, onAttach: @Composable () -> Unit = {}) {
CompositionLocalProvider(
LocalImageLoader provides remember { root.imageLoaderProvider.provide() }
) { NavInternal(root) }
) { NavInternal(root, onAttach) }
}
@Composable
private fun NavInternal(root: VBoxRootComponent) {
private fun NavInternal(root: VBoxRootComponent, onAttach: @Composable () -> Unit) {
Nav(root) { child, route ->
when (child) {
is Child.PlayerChild -> PlayerScreen(child.component)
@@ -76,6 +76,7 @@ private fun NavInternal(root: VBoxRootComponent) {
}
}
}
onAttach()
UpdateDialog(root.updateComponent)
}
}