Skip to content

Commit

Permalink
Updates SystemBarsSystemUI to allow customization
Browse files Browse the repository at this point in the history
  • Loading branch information
Tweener committed Oct 12, 2023
1 parent e61e905 commit ecee5ba
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.tweener.cezanne.android.system
import androidx.activity.ComponentActivity
import androidx.activity.SystemBarStyle
import androidx.activity.enableEdgeToEdge
import androidx.annotation.ColorInt
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect

Expand All @@ -16,7 +17,9 @@ import androidx.compose.runtime.DisposableEffect
@Composable
fun SystemBarsSystemUI(
themeType: ThemeType,
activity: ComponentActivity
activity: ComponentActivity,
@ColorInt lightScrim: Int,
@ColorInt darkScrim: Int,
) {
val useDarkTheme = shouldUseDarkTheme(themeType = themeType)

Expand All @@ -36,6 +39,3 @@ fun SystemBarsSystemUI(
onDispose {}
}
}

private val lightScrim = android.graphics.Color.argb(0xe6, 0xFF, 0xFF, 0xFF)
private val darkScrim = android.graphics.Color.argb(0x80, 0x1b, 0x1b, 0x1b)

0 comments on commit ecee5ba

Please sign in to comment.