From 0f459071445f712406892affb9a81e997706333a Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 7 Jan 2023 14:32:05 -0500 Subject: [PATCH] Adjust bookmarked chapter styling in Updates To match updated styling in manga screen. --- .../more/settings/widget/AppThemePreferenceWidget.kt | 1 - .../java/eu/kanade/presentation/updates/UpdatesUiItem.kt | 8 -------- 2 files changed, 9 deletions(-) diff --git a/app/src/main/java/eu/kanade/presentation/more/settings/widget/AppThemePreferenceWidget.kt b/app/src/main/java/eu/kanade/presentation/more/settings/widget/AppThemePreferenceWidget.kt index 3f080dd9e5..e61e9e46af 100644 --- a/app/src/main/java/eu/kanade/presentation/more/settings/widget/AppThemePreferenceWidget.kt +++ b/app/src/main/java/eu/kanade/presentation/more/settings/widget/AppThemePreferenceWidget.kt @@ -109,7 +109,6 @@ private fun AppThemesList( .fillMaxWidth() .padding(top = 8.dp) .secondaryItemAlpha(), - color = MaterialTheme.colorScheme.onSurface, textAlign = TextAlign.Center, maxLines = 2, style = MaterialTheme.typography.bodyMedium, diff --git a/app/src/main/java/eu/kanade/presentation/updates/UpdatesUiItem.kt b/app/src/main/java/eu/kanade/presentation/updates/UpdatesUiItem.kt index 7f7dee5016..7b99163187 100644 --- a/app/src/main/java/eu/kanade/presentation/updates/UpdatesUiItem.kt +++ b/app/src/main/java/eu/kanade/presentation/updates/UpdatesUiItem.kt @@ -176,15 +176,8 @@ fun UpdatesUiItem( ) { val bookmark = remember(update.bookmark) { update.bookmark } val read = remember(update.read) { update.read } - val textAlpha = remember(read) { if (read) ReadItemAlpha else 1f } - val secondaryTextColor = if (bookmark && !read) { - MaterialTheme.colorScheme.primary - } else { - MaterialTheme.colorScheme.onSurface - } - Text( text = update.mangaTitle, maxLines = 1, @@ -207,7 +200,6 @@ fun UpdatesUiItem( Text( text = update.chapterName, maxLines = 1, - color = secondaryTextColor, style = MaterialTheme.typography.bodySmall, overflow = TextOverflow.Ellipsis, onTextLayout = { textHeight = it.size.height },