Theme: try to play with insets
This commit is contained in:
parent
7385f959ff
commit
26b24ab572
4 changed files with 10 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue