From 5fbf454652a52567d9c4e2d0bb19eb7b08b1721e Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 12 Jun 2022 09:59:55 -0400 Subject: [PATCH] Update compose-theme-adapter --- .../main/java/eu/kanade/presentation/theme/TachiyomiTheme.kt | 4 ++++ gradle/compose.versions.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/presentation/theme/TachiyomiTheme.kt b/app/src/main/java/eu/kanade/presentation/theme/TachiyomiTheme.kt index a0cc3b47e..bc98a03ed 100644 --- a/app/src/main/java/eu/kanade/presentation/theme/TachiyomiTheme.kt +++ b/app/src/main/java/eu/kanade/presentation/theme/TachiyomiTheme.kt @@ -3,13 +3,17 @@ package eu.kanade.presentation.theme import androidx.compose.material3.MaterialTheme import androidx.compose.runtime.Composable import androidx.compose.ui.platform.LocalContext +import androidx.compose.ui.platform.LocalLayoutDirection import com.google.android.material.composethemeadapter3.createMdc3Theme @Composable fun TachiyomiTheme(content: @Composable () -> Unit) { val context = LocalContext.current + val layoutDirection = LocalLayoutDirection.current + val (colorScheme, typography) = createMdc3Theme( context = context, + layoutDirection = layoutDirection, setTextColors = true, ) diff --git a/gradle/compose.versions.toml b/gradle/compose.versions.toml index 05a2b5cbd..f58fcc587 100644 --- a/gradle/compose.versions.toml +++ b/gradle/compose.versions.toml @@ -10,7 +10,7 @@ ui-tooling = { module = "androidx.compose.ui:ui-tooling", version.ref="compose" ui-util = { module = "androidx.compose.ui:ui-util", version.ref="compose" } material3-core = "androidx.compose.material3:material3:1.0.0-alpha13" -material3-adapter = "com.google.android.material:compose-theme-adapter-3:1.0.10" +material3-adapter = "com.google.android.material:compose-theme-adapter-3:1.0.11" material-icons = { module = "androidx.compose.material:material-icons-extended", version.ref="compose" } accompanist-webview = { module = "com.google.accompanist:accompanist-webview", version.ref="accompanist" }