Fix Library List not using correct text color (#7548)

This commit is contained in:
Andreas 2022-07-16 22:40:51 +02:00 committed by GitHub
parent fa73e2403b
commit 9ebeff04e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,7 @@ import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.compose.foundation.layout.consumeWindowInsets
import androidx.compose.material3.LocalContentColor
import androidx.compose.material3.LocalTextStyle
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.CompositionLocalProvider
@ -104,7 +105,7 @@ class LibraryAdapter(
setViewCompositionStrategy(ViewCompositionStrategy.DisposeOnViewTreeLifecycleDestroyed)
setContent {
TachiyomiTheme {
CompositionLocalProvider(LocalTextStyle provides MaterialTheme.typography.bodySmall) {
CompositionLocalProvider(LocalTextStyle provides MaterialTheme.typography.bodySmall, LocalContentColor provides MaterialTheme.colorScheme.onBackground) {
val nestedScrollInterop = rememberNestedScrollInteropConnection()
val category = presenter.categories[position]
@ -143,9 +144,7 @@ class LibraryAdapter(
items = mangaList,
selection = presenter.selection,
onClick = onClickManga,
onLongClick = {
presenter.toggleSelection(it)
},
onLongClick = onLongClickManga,
)
}
DisplayModeSetting.COMPACT_GRID -> {