mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-17 14:09:17 +01:00
Adjust bookmarked chapter styling in Updates
To match updated styling in manga screen.
This commit is contained in:
parent
c4c9931ae2
commit
0f45907144
@ -109,7 +109,6 @@ private fun AppThemesList(
|
|||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.padding(top = 8.dp)
|
.padding(top = 8.dp)
|
||||||
.secondaryItemAlpha(),
|
.secondaryItemAlpha(),
|
||||||
color = MaterialTheme.colorScheme.onSurface,
|
|
||||||
textAlign = TextAlign.Center,
|
textAlign = TextAlign.Center,
|
||||||
maxLines = 2,
|
maxLines = 2,
|
||||||
style = MaterialTheme.typography.bodyMedium,
|
style = MaterialTheme.typography.bodyMedium,
|
||||||
|
@ -176,15 +176,8 @@ fun UpdatesUiItem(
|
|||||||
) {
|
) {
|
||||||
val bookmark = remember(update.bookmark) { update.bookmark }
|
val bookmark = remember(update.bookmark) { update.bookmark }
|
||||||
val read = remember(update.read) { update.read }
|
val read = remember(update.read) { update.read }
|
||||||
|
|
||||||
val textAlpha = remember(read) { if (read) ReadItemAlpha else 1f }
|
val textAlpha = remember(read) { if (read) ReadItemAlpha else 1f }
|
||||||
|
|
||||||
val secondaryTextColor = if (bookmark && !read) {
|
|
||||||
MaterialTheme.colorScheme.primary
|
|
||||||
} else {
|
|
||||||
MaterialTheme.colorScheme.onSurface
|
|
||||||
}
|
|
||||||
|
|
||||||
Text(
|
Text(
|
||||||
text = update.mangaTitle,
|
text = update.mangaTitle,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
@ -207,7 +200,6 @@ fun UpdatesUiItem(
|
|||||||
Text(
|
Text(
|
||||||
text = update.chapterName,
|
text = update.chapterName,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
color = secondaryTextColor,
|
|
||||||
style = MaterialTheme.typography.bodySmall,
|
style = MaterialTheme.typography.bodySmall,
|
||||||
overflow = TextOverflow.Ellipsis,
|
overflow = TextOverflow.Ellipsis,
|
||||||
onTextLayout = { textHeight = it.size.height },
|
onTextLayout = { textHeight = it.size.height },
|
||||||
|
Loading…
Reference in New Issue
Block a user