update to latest commons

This commit is contained in:
FunkyMuse 2023-09-20 10:14:34 +02:00
parent e6cc16afcd
commit 3cd957d1bf
3 changed files with 1 additions and 16 deletions

View File

@ -107,8 +107,6 @@ android {
}
dependencies {
implementation(libs.kotlin.immutable.collections)
implementation(libs.simple.tools.commons)
implementation(libs.bundles.lifecycle)
implementation(libs.bundles.compose)

View File

@ -81,17 +81,6 @@ internal fun MainScreen(
}
}
@Composable
fun topAppBarColors(
statusBarColor: Int,
colorTransitionFraction: Float,
contrastColor: Color
) = TopAppBarDefaults.topAppBarColors(
scrolledContainerColor = Color(statusBarColor),
containerColor = if (colorTransitionFraction == 1f) contrastColor else MaterialTheme.colorScheme.surface,
navigationIconContentColor = if (colorTransitionFraction == 1f) contrastColor else MaterialTheme.colorScheme.surface
)
@Composable
@MyDevices
private fun MainScreenPreview() {

View File

@ -1,9 +1,8 @@
[versions]
#jetbrains
kotlin = "1.9.10"
kotlin-immutable-collections = "0.3.5" #todo remove
#Simple tools
simple-commons = "eceb48949e"
simple-commons = "985e1da5f9"
#Compose
composeActivity = "1.8.0-beta01"
compose = "1.6.0-alpha05"
@ -47,7 +46,6 @@ compose-ui = { module = "androidx.compose.ui:ui", version.ref = "compose" }
compose-runtime = { module = "androidx.compose.runtime:runtime", version.ref = "compose" }
compose-uiTooling-debug = { module = "androidx.compose.ui:ui-tooling", version.ref = "compose" }
compose-uiTooling-preview = { module = "androidx.compose.ui:ui-tooling-preview", version.ref = "compose" }
kotlin-immutable-collections = {module = "org.jetbrains.kotlinx:kotlinx-collections-immutable", version.ref = "kotlin-immutable-collections"} #todo remove
[bundles]
compose = [
"compose-activity",