diff --git a/buildSrc/src/main/kotlin/ProjectConfiguration.kt b/buildSrc/src/main/kotlin/ProjectConfiguration.kt index c0d4ca0..668ee7a 100644 --- a/buildSrc/src/main/kotlin/ProjectConfiguration.kt +++ b/buildSrc/src/main/kotlin/ProjectConfiguration.kt @@ -9,7 +9,7 @@ object ProjectConfiguration { object Czan { const val packageName = "com.tweener.czan" - const val versionName = "2.3.2" + const val versionName = "2.3.3" const val namespace = "$packageName.android" const val compileSDK = 34 const val minSDK = 24 diff --git a/czan/src/commonMain/kotlin/com/tweener/czan/theme/CzanTheme.kt b/czan/src/commonMain/kotlin/com/tweener/czan/theme/CzanTheme.kt index a411f5f..acadd13 100644 --- a/czan/src/commonMain/kotlin/com/tweener/czan/theme/CzanTheme.kt +++ b/czan/src/commonMain/kotlin/com/tweener/czan/theme/CzanTheme.kt @@ -6,6 +6,7 @@ import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Shapes import androidx.compose.material3.Typography import androidx.compose.runtime.Composable +import androidx.compose.ui.graphics.Color import io.github.alexzhirkevich.cupertino.adaptive.AdaptiveTheme import io.github.alexzhirkevich.cupertino.adaptive.ExperimentalAdaptiveApi import io.github.alexzhirkevich.cupertino.adaptive.Theme @@ -16,6 +17,10 @@ import io.github.alexzhirkevich.cupertino.theme.CupertinoTheme * @since 26/09/2023 */ +@Composable +fun colorResource(colorLight: Color, colorDark: Color = Color.Unspecified) = + if (isSystemInDarkTheme()) colorDark else colorLight + expect fun determineTheme(): Theme @OptIn(ExperimentalAdaptiveApi::class)