2022-04-22 17:29:24 -04:00
|
|
|
package eu.kanade.presentation.theme
|
|
|
|
|
|
|
|
import androidx.compose.material3.MaterialTheme
|
|
|
|
import androidx.compose.runtime.Composable
|
|
|
|
import androidx.compose.ui.platform.LocalContext
|
|
|
|
import com.google.android.material.composethemeadapter3.createMdc3Theme
|
|
|
|
|
|
|
|
@Composable
|
|
|
|
fun TachiyomiTheme(content: @Composable () -> Unit) {
|
|
|
|
val context = LocalContext.current
|
|
|
|
val (colorScheme, typography) = createMdc3Theme(
|
2022-04-24 20:35:59 +02:00
|
|
|
context = context,
|
2022-04-24 14:39:51 -04:00
|
|
|
setTextColors = true,
|
2022-04-22 17:29:24 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
MaterialTheme(
|
|
|
|
colorScheme = colorScheme!!,
|
|
|
|
typography = typography!!,
|
2022-04-24 14:39:51 -04:00
|
|
|
content = content,
|
2022-04-22 17:29:24 -04:00
|
|
|
)
|
|
|
|
}
|