mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix(reader): Use it directly
This commit is contained in:
parent
f9bb2b96cb
commit
a853deae4a
1 changed files with 1 additions and 2 deletions
|
@ -52,11 +52,10 @@ class ReaderTransitionView @JvmOverloads constructor(context: Context, attrs: At
|
||||||
@Composable
|
@Composable
|
||||||
override fun Content() {
|
override fun Content() {
|
||||||
data?.let {
|
data?.let {
|
||||||
val contentColor = ThemeUtil.readerContentColor(it.theme, MaterialTheme.colorScheme.onBackground)
|
|
||||||
YokaiTheme {
|
YokaiTheme {
|
||||||
CompositionLocalProvider (
|
CompositionLocalProvider (
|
||||||
LocalTextStyle provides MaterialTheme.typography.bodySmall,
|
LocalTextStyle provides MaterialTheme.typography.bodySmall,
|
||||||
LocalContentColor provides contentColor,
|
LocalContentColor provides ThemeUtil.readerContentColor(it.theme, MaterialTheme.colorScheme.onBackground),
|
||||||
) {
|
) {
|
||||||
ChapterTransition(
|
ChapterTransition(
|
||||||
manga = it.manga,
|
manga = it.manga,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue