fix(reader): Use it directly

This commit is contained in:
Ahmad Ansori Palembani 2024-12-24 12:58:39 +07:00
parent f9bb2b96cb
commit a853deae4a
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -52,11 +52,10 @@ class ReaderTransitionView @JvmOverloads constructor(context: Context, attrs: At
@Composable
override fun Content() {
data?.let {
val contentColor = ThemeUtil.readerContentColor(it.theme, MaterialTheme.colorScheme.onBackground)
YokaiTheme {
CompositionLocalProvider (
LocalTextStyle provides MaterialTheme.typography.bodySmall,
LocalContentColor provides contentColor,
LocalContentColor provides ThemeUtil.readerContentColor(it.theme, MaterialTheme.colorScheme.onBackground),
) {
ChapterTransition(
manga = it.manga,