MaterialYou.android.kt
composeApp/src/androidMain/kotlin/eu/friedcutlet/yokan/ui/theme/MaterialYou.android.kt
1package eu.friedcutlet.yokan.ui.theme23import android.os.Build4import androidx.compose.material3.ColorScheme5import androidx.compose.material3.dynamicDarkColorScheme6import androidx.compose.material3.dynamicLightColorScheme7import androidx.compose.runtime.Composable8import androidx.compose.ui.platform.LocalContext910@Composable11actual fun rememberMaterialYouScheme(isDark: Boolean): ColorScheme? {12 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) return null13 val context = LocalContext.current14 return if (isDark) dynamicDarkColorScheme(context) else dynamicLightColorScheme(context)15}1617actual val materialYouAvailable: Boolean = Build.VERSION.SDK_INT >= Build.VERSION_CODES.S18