Skip to content

Instantly share code, notes, and snippets.

@CostaFot
Last active March 13, 2024 00:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CostaFot/b977aba8b186ef89567f1f915899a459 to your computer and use it in GitHub Desktop.
Save CostaFot/b977aba8b186ef89567f1f915899a459 to your computer and use it in GitHub Desktop.
AppTheme {
var systemBarStyle by remember {
val defaultSystemBarColor = android.graphics.Color.TRANSPARENT
mutableStateOf(
SystemBarStyle.auto(
lightScrim = defaultSystemBarColor,
darkScrim = defaultSystemBarColor
)
)
}
LaunchedEffect(systemBarStyle) {
enableEdgeToEdge(
statusBarStyle = systemBarStyle,
navigationBarStyle = systemBarStyle
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment