Fix background color in webttoon mode #832

This commit is contained in:
Koitharu
2024-03-30 09:02:12 +02:00
parent a15197f69d
commit 2b26f944d0
2 changed files with 5 additions and 2 deletions

View File

@@ -189,7 +189,7 @@ class DetailsFragment :
isVisible = false
}
}
if (manga.source == MangaSource.LOCAL) {
if (manga.source == MangaSource.LOCAL || manga.source == MangaSource.DUMMY) {
infoLayout.textViewSource.isVisible = false
} else {
infoLayout.textViewSource.text = manga.source.title
@@ -223,7 +223,7 @@ class DetailsFragment :
}
binding.approximateReadTime.text = time.format(resources)
binding.approximateReadTimeTitle.setText(
if (time.isContinue) R.string.approximate_remaining_time else R.string.approximate_reading_time
if (time.isContinue) R.string.approximate_remaining_time else R.string.approximate_reading_time,
)
binding.approximateReadTimeLayout.isVisible = true
}

View File

@@ -59,6 +59,9 @@ class WebtoonReaderFragment : BaseReaderFragment<FragmentReaderWebtoonBinding>()
viewModel.defaultWebtoonZoomOut.take(1).observe(viewLifecycleOwner) {
binding.frame.zoom = 1f - it
}
viewModel.readerSettings.observe(viewLifecycleOwner) {
it.applyBackground(binding.root)
}
}
override fun onDestroyView() {