ChapterDownloadIndicator: Fixes and improvements (#7485)

* Increased touch target
* Fix downloaded icon smaller than other states
* Deferred state reads to minimize recompose works
* Move things around to eliminate unnecessary elements
This commit is contained in:
Ivan Iskandar
2022-07-09 23:38:33 +07:00
committed by GitHub
parent 34906a7425
commit e56f6c1017
4 changed files with 120 additions and 109 deletions

View File

@@ -27,8 +27,8 @@ class ChapterDownloadView @JvmOverloads constructor(
override fun Content() {
TachiyomiTheme {
ChapterDownloadIndicator(
downloadState = state,
downloadProgress = progress,
downloadStateProvider = { state },
downloadProgressProvider = { progress },
onClick = listener,
)
}