mirror of
https://github.com/Steffo99/twom.git
synced 2024-11-22 16:14:25 +00:00
Apply surface color to navigationBar
This commit is contained in:
parent
dca76a40af
commit
bc41e909c7
1 changed files with 4 additions and 1 deletions
|
@ -38,7 +38,10 @@ fun TwoMTheme(
|
||||||
SideEffect {
|
SideEffect {
|
||||||
val window = (view.context as Activity).window
|
val window = (view.context as Activity).window
|
||||||
window.statusBarColor = colorScheme.surface.toArgb()
|
window.statusBarColor = colorScheme.surface.toArgb()
|
||||||
WindowCompat.getInsetsController(window, view).isAppearanceLightStatusBars = !darkTheme
|
window.navigationBarColor = colorScheme.surface.toArgb()
|
||||||
|
val insets = WindowCompat.getInsetsController(window, view)
|
||||||
|
insets.isAppearanceLightStatusBars = !darkTheme
|
||||||
|
insets.isAppearanceLightNavigationBars = !darkTheme
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue