From a5f7f6346911bb515506280207fd4f602c8558f2 Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 21 May 2020 03:34:10 -0400 Subject: [PATCH] New icons for some of the empty views --- .../kanade/tachiyomi/ui/download/DownloadBottomSheet.kt | 2 +- .../tachiyomi/ui/extension/ExtensionDetailsController.kt | 2 +- .../eu/kanade/tachiyomi/ui/library/LibraryController.kt | 2 +- .../tachiyomi/ui/source/browse/BrowseSourceController.kt | 3 ++- app/src/main/res/drawable/ic_browse_off_24dp.xml | 8 ++++++++ app/src/main/res/drawable/ic_download_off_24dp.xml | 8 ++++++++ app/src/main/res/drawable/ic_heart_off_24dp.xml | 8 ++++++++ .../{ic_no_settings.xml => ic_no_settings_24dp.xml} | 0 8 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 app/src/main/res/drawable/ic_browse_off_24dp.xml create mode 100644 app/src/main/res/drawable/ic_download_off_24dp.xml create mode 100644 app/src/main/res/drawable/ic_heart_off_24dp.xml rename app/src/main/res/drawable/{ic_no_settings.xml => ic_no_settings_24dp.xml} (100%) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/download/DownloadBottomSheet.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/download/DownloadBottomSheet.kt index 45f9818a6b..40d2f4cb87 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/download/DownloadBottomSheet.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/download/DownloadBottomSheet.kt @@ -163,7 +163,7 @@ class DownloadBottomSheet @JvmOverloads constructor( setBottomSheet() if (presenter.downloadQueue.isEmpty()) { empty_view?.show( - R.drawable.ic_file_download_24dp, + R.drawable.ic_download_off_24dp, R.string.nothing_is_downloading) } else { empty_view?.hide() diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/extension/ExtensionDetailsController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/extension/ExtensionDetailsController.kt index 590e63b6fd..1995f2f63e 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/extension/ExtensionDetailsController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/extension/ExtensionDetailsController.kt @@ -107,7 +107,7 @@ class ExtensionDetailsController(bundle: Bundle? = null) : extension_prefs_recycler.setOnApplyWindowInsetsListener(RecyclerWindowInsetsListener) if (screen.preferenceCount == 0) { - extension_prefs_empty_view.show(R.drawable.ic_no_settings, + extension_prefs_empty_view.show(R.drawable.ic_no_settings_24dp, R.string.empty_preferences_for_extension) } } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt index b78b7d8611..41dc1da096 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt @@ -710,7 +710,7 @@ class LibraryController( empty_view?.hide() } else { empty_view?.show( - R.drawable.ic_book_24dp, + R.drawable.ic_heart_off_24dp, if (filter_bottom_sheet.hasActiveFilters()) R.string.no_matches_for_filters else R.string.library_is_empty_add_from_browse ) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/source/browse/BrowseSourceController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/source/browse/BrowseSourceController.kt index 8a7d0282a3..e5c0fbaf91 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/source/browse/BrowseSourceController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/source/browse/BrowseSourceController.kt @@ -415,7 +415,8 @@ open class BrowseSourceController(bundle: Bundle) : } empty_view.show( - if (presenter.source is HttpSource) R.drawable.ic_browse_24dp else R.drawable.ic_local_library_24dp, + if (presenter.source is HttpSource) R.drawable.ic_browse_off_24dp + else R.drawable.ic_local_library_24dp, message, actions ) diff --git a/app/src/main/res/drawable/ic_browse_off_24dp.xml b/app/src/main/res/drawable/ic_browse_off_24dp.xml new file mode 100644 index 0000000000..b252ebeb0c --- /dev/null +++ b/app/src/main/res/drawable/ic_browse_off_24dp.xml @@ -0,0 +1,8 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_download_off_24dp.xml b/app/src/main/res/drawable/ic_download_off_24dp.xml new file mode 100644 index 0000000000..1a5a48ab66 --- /dev/null +++ b/app/src/main/res/drawable/ic_download_off_24dp.xml @@ -0,0 +1,8 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_heart_off_24dp.xml b/app/src/main/res/drawable/ic_heart_off_24dp.xml new file mode 100644 index 0000000000..6787d1a069 --- /dev/null +++ b/app/src/main/res/drawable/ic_heart_off_24dp.xml @@ -0,0 +1,8 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_no_settings.xml b/app/src/main/res/drawable/ic_no_settings_24dp.xml similarity index 100% rename from app/src/main/res/drawable/ic_no_settings.xml rename to app/src/main/res/drawable/ic_no_settings_24dp.xml