Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mitrejcevski committed Sep 6, 2024
1 parent e37b0ec commit 6fe3e6a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ package nl.jovmit.androiddevs.core.view.theme
import androidx.compose.foundation.LocalIndication
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.ripple.RippleAlpha
import androidx.compose.material.ripple.createRippleModifierNode
import androidx.compose.material.ripple.rememberRipple
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.LocalRippleConfiguration
import androidx.compose.material3.RippleConfiguration
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.ui.graphics.Color
Expand Down Expand Up @@ -78,19 +83,20 @@ private val size = AppSize(
small = 8.dp
)

@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun AppTheme(
isDarkTheme: Boolean = isSystemInDarkTheme(),
content: @Composable () -> Unit
) {
val colorScheme = if (isDarkTheme) darkColorScheme else lightColorScheme
val rippleIndication = rememberRipple()
val rippleConfiguration = RippleConfiguration(colorScheme.onBackground)
CompositionLocalProvider(
LocalAppColorScheme provides colorScheme,
LocalAppTypography provides typography,
LocalAppShape provides shape,
LocalAppSize provides size,
LocalIndication provides rippleIndication,
LocalRippleConfiguration provides rippleConfiguration,
content = content
)
}
Expand Down
10 changes: 5 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
truthVersion = "1.1.5"
kotlinVersion = "2.0.20"
androidxCoreKtxVersion = "1.13.1"
composeBomVersion = "2024.08.00"
composeActivityVersion = "1.9.1"
composeNavVersion = "2.8.0-rc01"
composeBomVersion = "2024.09.00"
composeActivityVersion = "1.9.2"
composeNavVersion = "2.8.0"
coilVersion = "2.6.0"
androidxUnitVersion = "1.2.1"
androidxEspressoVersion = "3.6.1"
testJunitJupiterVersion = "5.10.0"
androidxLifecycleVersion = "2.8.4"
hiltVersion = "2.51"
androidxLifecycleVersion = "2.8.5"
hiltVersion = "2.51.1"
hiltNavigationVersion = "1.2.0"
paparazziVersion = "1.3.1"
retrofitVersion = "2.11.0"
Expand Down

0 comments on commit 6fe3e6a

Please sign in to comment.