package com.aistudio.bonjuteri.jwlry.ui.theme import android.app.Activity import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.material3.MaterialTheme import androidx.compose.material3.lightColorScheme import androidx.compose.runtime.Composable import androidx.compose.runtime.SideEffect import androidx.compose.ui.graphics.toArgb import androidx.compose.ui.platform.LocalView import androidx.core.view.WindowCompat private val LightColorScheme = lightColorScheme( primary = GoldPrimary, onPrimary = PureWhite, primaryContainer = GoldSubtle, onPrimaryContainer = GoldDark, secondary = PrimaryBlack, onSecondary = PureWhite, secondaryContainer = LightSurface, onSecondaryContainer = PrimaryBlack, tertiary = GoldDark, onTertiary = PureWhite, background = PureWhite, onBackground = PrimaryBlack, surface = PureWhite, onSurface = PrimaryBlack, surfaceVariant = OffWhite, onSurfaceVariant = SecondaryDark, outline = SurfaceBorder, outlineVariant = DividerColor, error = ErrorRed, onError = PureWhite ) @Composable fun BonjuteriTheme( darkTheme: Boolean = false, // Requested light theme content: @Composable () -> Unit ) { val colorScheme = LightColorScheme val view = LocalView.current if (!view.isInEditMode) { SideEffect { val window = (view.context as? Activity)?.window window?.let { it.statusBarColor = PureWhite.toArgb() it.navigationBarColor = PureWhite.toArgb() val controller = WindowCompat.getInsetsController(it, view) controller.isAppearanceLightStatusBars = true controller.isAppearanceLightNavigationBars = true } } } MaterialTheme( colorScheme = colorScheme, typography = Typography, content = content ) }