🚀 Marque for chapter title in Reader

* Disabled marque for book title and enabled for chapter title
This commit is contained in:
Acclorite 2025-01-17 15:14:55 +02:00
parent 87b182709f
commit 2c8954b9fb

View file

@ -106,10 +106,11 @@ fun ReaderTopBar(
) )
} }
) )
.basicMarquee(iterations = Int.MAX_VALUE)) )
}, },
subtitle = { subtitle = {
Text( Text(
modifier = Modifier.basicMarquee(iterations = Int.MAX_VALUE),
text = currentChapter?.title text = currentChapter?.title
?: activity.getString(R.string.no_chapters), ?: activity.getString(R.string.no_chapters),
color = MaterialTheme.colorScheme.onSurfaceVariant, color = MaterialTheme.colorScheme.onSurfaceVariant,