From 9ebeff04e6b9beb518d40b94cd92405b06383370 Mon Sep 17 00:00:00 2001 From: Andreas Date: Sat, 16 Jul 2022 22:40:51 +0200 Subject: [PATCH] Fix Library List not using correct text color (#7548) --- .../java/eu/kanade/tachiyomi/ui/library/LibraryAdapter.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryAdapter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryAdapter.kt index ee175b2f4..82617e3e3 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryAdapter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryAdapter.kt @@ -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 -> {