Theme: try to play with insets

This commit is contained in:
ganfra 2022-11-23 18:56:01 +01:00
parent 7385f959ff
commit 26b24ab572
4 changed files with 10 additions and 0 deletions

View file

@ -60,10 +60,16 @@ fun ElementXTheme(
else -> LightColorScheme
}
val systemUiController = rememberSystemUiController()
val useDarkIcons = !darkTheme
SideEffect {
systemUiController.setStatusBarColor(
color = colorScheme.background
)
systemUiController.setSystemBarsColor(
color = Color.Transparent,
darkIcons = useDarkIcons
)
}
MaterialTheme(