mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 21:35:11 +01:00
New icons for some of the empty views
This commit is contained in:
parent
516ff61abd
commit
a5f7f63469
@ -163,7 +163,7 @@ class DownloadBottomSheet @JvmOverloads constructor(
|
|||||||
setBottomSheet()
|
setBottomSheet()
|
||||||
if (presenter.downloadQueue.isEmpty()) {
|
if (presenter.downloadQueue.isEmpty()) {
|
||||||
empty_view?.show(
|
empty_view?.show(
|
||||||
R.drawable.ic_file_download_24dp,
|
R.drawable.ic_download_off_24dp,
|
||||||
R.string.nothing_is_downloading)
|
R.string.nothing_is_downloading)
|
||||||
} else {
|
} else {
|
||||||
empty_view?.hide()
|
empty_view?.hide()
|
||||||
|
@ -107,7 +107,7 @@ class ExtensionDetailsController(bundle: Bundle? = null) :
|
|||||||
extension_prefs_recycler.setOnApplyWindowInsetsListener(RecyclerWindowInsetsListener)
|
extension_prefs_recycler.setOnApplyWindowInsetsListener(RecyclerWindowInsetsListener)
|
||||||
|
|
||||||
if (screen.preferenceCount == 0) {
|
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)
|
R.string.empty_preferences_for_extension)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -710,7 +710,7 @@ class LibraryController(
|
|||||||
empty_view?.hide()
|
empty_view?.hide()
|
||||||
} else {
|
} else {
|
||||||
empty_view?.show(
|
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
|
if (filter_bottom_sheet.hasActiveFilters()) R.string.no_matches_for_filters
|
||||||
else R.string.library_is_empty_add_from_browse
|
else R.string.library_is_empty_add_from_browse
|
||||||
)
|
)
|
||||||
|
@ -415,7 +415,8 @@ open class BrowseSourceController(bundle: Bundle) :
|
|||||||
}
|
}
|
||||||
|
|
||||||
empty_view.show(
|
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,
|
message,
|
||||||
actions
|
actions
|
||||||
)
|
)
|
||||||
|
8
app/src/main/res/drawable/ic_browse_off_24dp.xml
Normal file
8
app/src/main/res/drawable/ic_browse_off_24dp.xml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<!-- drawable/compass_off.xml -->
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:height="24dp"
|
||||||
|
android:width="24dp"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24">
|
||||||
|
<path android:fillColor="#000" android:pathData="M1,3.5L2.28,2.25L21.75,21.72L20.5,23L17.7,20.22C16.08,21.34 14.12,22 12,22A10,10 0 0,1 2,12C2,9.88 2.66,7.92 3.78,6.3L1,3.5M6,18L12.47,15L9,11.53L6,18M18,6L11.56,9L6.33,3.76C7.94,2.65 9.9,2 12,2A10,10 0 0,1 22,12C22,14.1 21.35,16.06 20.24,17.67L15,12.44L18,6Z" />
|
||||||
|
</vector>
|
8
app/src/main/res/drawable/ic_download_off_24dp.xml
Normal file
8
app/src/main/res/drawable/ic_download_off_24dp.xml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<!-- drawable/download_off.xml -->
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:height="24dp"
|
||||||
|
android:width="24dp"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24">
|
||||||
|
<path android:fillColor="#000" android:pathData="M20.84 22.73L18.11 20H5V18H16.11L13.06 14.95L12 16L5 9H7.11L1.11 3L2.39 1.73L22.11 21.46L20.84 22.73M19 9H15V3H9V5.8L15.6 12.4L19 9Z" />
|
||||||
|
</vector>
|
8
app/src/main/res/drawable/ic_heart_off_24dp.xml
Normal file
8
app/src/main/res/drawable/ic_heart_off_24dp.xml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<!-- drawable/heart_off.xml -->
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:height="24dp"
|
||||||
|
android:width="24dp"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24">
|
||||||
|
<path android:fillColor="#000" android:pathData="M1,4.27L2.28,3L20,20.72L18.73,22L15.18,18.44L13.45,20.03L12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,7.55 2.23,6.67 2.63,5.9L1,4.27M7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,11.07 20.42,13.32 17.79,15.97L5.27,3.45C5.95,3.16 6.7,3 7.5,3Z" />
|
||||||
|
</vector>
|
Loading…
Reference in New Issue
Block a user