Package-level declarations
Types
Properties
Functions
Link copied to clipboard
actual fun ComposeTheme(state: ComposeTheme.State, shapes: Shapes, typography: Typography, content: () -> Unit)
this is the main composable that simple applies the correct theme and also updates the system ui if necessary
expect fun ComposeTheme(state: ComposeTheme.State, shapes: Shapes = MaterialTheme.shapes, typography: Typography = MaterialTheme.typography, content: @Composable () -> Unit)
actual fun ComposeTheme(state: ComposeTheme.State, shapes: Shapes, typography: Typography, content: () -> Unit)
this is the main composable that simple applies the correct theme and also updates the system ui if necessary
Link copied to clipboard
fun SystemBarStyle.Companion.defaultScrim(resources: Resources, darkMode: Boolean = (resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK) == Configuration.UI_MODE_NIGHT_YES): Color
Link copied to clipboard
fun ComposeTheme.enableEdgeToEdge(activity: ComponentActivity, statusBarStyle: SystemBarStyle = SystemBarStyle.statusBar(), navigationBarStyle: SystemBarStyle = SystemBarStyle.navigationBar(), isStatusBarContrastEnforced: Boolean? = null, isNavigationBarContrastEnforced: Boolean? = null)
fun ComposeTheme.enableEdgeToEdge(activity: ComponentActivity, statusBarColor: Color, navigationBarColor: Color, statusBarIsDark: () -> Boolean = { statusBarColor.luminance() < .5f }, navigationBarIsDark: () -> Boolean = { navigationBarColor.luminance() < .5f }, isStatusBarContrastEnforced: Boolean? = null, isNavigationBarContrastEnforced: Boolean? = null)
enabled edgeToEdge and makes the system bars transparent so that the theme can apply its color correctly
Link copied to clipboard
fun SystemBarStyle.Companion.navigationBar(detectDarkMode: (Resources) -> Boolean = { resources ->
(resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK) ==
Configuration.UI_MODE_NIGHT_YES
}): SystemBarStyle
Link copied to clipboard
fun ComposeTheme.Theme.selectSchemeForContrast(isDark: Boolean, contrast: ComposeTheme.Contrast): ColorScheme
Link copied to clipboard
fun SystemBarStyle.Companion.statusBar(detectDarkMode: (Resources) -> Boolean = { resources ->
(resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK) ==
Configuration.UI_MODE_NIGHT_YES
}): SystemBarStyle
Link copied to clipboard
fun SystemBarStyle.Companion.transparent(detectDarkMode: (Resources) -> Boolean = { resources ->
(resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK) ==
Configuration.UI_MODE_NIGHT_YES
}): SystemBarStyle
Link copied to clipboard
fun UpdateEdgeToEdgeDefault(activity: ComponentActivity, themeState: ComposeTheme.State, statusBarColor: Color = MaterialTheme.colorScheme.primary, statusBarIsDark: () -> Boolean = { statusBarColor.luminance() < .5f }, navigationBarColor: Color = if (LocalConfiguration.current.orientation == Configuration.ORIENTATION_LANDSCAPE) {
SystemBarStyle.defaultScrim(activity.resources, themeState.base.value.isDark())
} else MaterialTheme.colorScheme.background, isNavigationBarContrastEnforced: Boolean = LocalConfiguration.current.orientation == Configuration.ORIENTATION_LANDSCAPE)