From 11c26a32fa11e7aaccba222ace25c6bfefe098ee Mon Sep 17 00:00:00 2001 From: Cuong-Tran Date: Wed, 10 Sep 2025 12:43:09 +0700 Subject: [PATCH] chore(dialog): Consistent text style (#1133) * remove filtered_scanlators (old field not used anymore) * Improve coding * Revert "remove filtered_scanlators (old field not used anymore)" This reverts commit 24042c17a432ff4c5012010155476aedbed3825f. * consistent text style * add comment --- .../eu/kanade/presentation/history/components/HistoryItem.kt | 1 + .../presentation/manga/components/ScanlatorFilterDialog.kt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/src/main/java/eu/kanade/presentation/history/components/HistoryItem.kt b/app/src/main/java/eu/kanade/presentation/history/components/HistoryItem.kt index 35e8b1cee..c5e76e1e6 100644 --- a/app/src/main/java/eu/kanade/presentation/history/components/HistoryItem.kt +++ b/app/src/main/java/eu/kanade/presentation/history/components/HistoryItem.kt @@ -169,6 +169,7 @@ fun HistoryItem( text = readProgress, maxLines = 1, color = LocalContentColor.current.copy(alpha = textAlpha), + style = MaterialTheme.typography.bodySmall, overflow = TextOverflow.Ellipsis, ) } diff --git a/app/src/main/java/eu/kanade/presentation/manga/components/ScanlatorFilterDialog.kt b/app/src/main/java/eu/kanade/presentation/manga/components/ScanlatorFilterDialog.kt index 978a81ab7..994ee0b1c 100644 --- a/app/src/main/java/eu/kanade/presentation/manga/components/ScanlatorFilterDialog.kt +++ b/app/src/main/java/eu/kanade/presentation/manga/components/ScanlatorFilterDialog.kt @@ -56,11 +56,13 @@ fun ScanlatorFilterDialog( Box { val state = rememberLazyListState() LazyColumn(state = state) { + // KMK --> items( items = sortedAvailableScanlators, contentType = { "item" }, key = { it }, ) { scanlator -> + // KMK <-- val isExcluded = mutableExcludedScanlators.contains(scanlator) Row( verticalAlignment = Alignment.CenterVertically,