From 77cca1ce846d9045ed5efc8a8d2d410c4c10f238 Mon Sep 17 00:00:00 2001 From: arkon Date: Thu, 23 Apr 2020 23:08:25 -0400 Subject: [PATCH] Change favorite icon to heart --- .../tachiyomi/ui/manga/info/MangaInfoController.kt | 2 +- app/src/main/res/drawable/ic_add_to_library_24dp.xml | 7 ------- app/src/main/res/drawable/ic_favorite_24dp.xml | 9 +++++++++ app/src/main/res/drawable/ic_favorite_border_24dp.xml | 9 +++++++++ app/src/main/res/layout/manga_info_controller.xml | 2 +- 5 files changed, 20 insertions(+), 9 deletions(-) delete mode 100644 app/src/main/res/drawable/ic_add_to_library_24dp.xml create mode 100644 app/src/main/res/drawable/ic_favorite_24dp.xml create mode 100644 app/src/main/res/drawable/ic_favorite_border_24dp.xml diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt index d3b9ccb16a..b4739dc78e 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt @@ -380,7 +380,7 @@ class MangaInfoController(private val fromSource: Boolean = false) : // Set the Favorite drawable to the correct one. // Border drawable if false, filled drawable if true. binding.btnFavorite.apply { - icon = ContextCompat.getDrawable(context, if (isFavorite) R.drawable.ic_bookmark_24dp else R.drawable.ic_add_to_library_24dp) + icon = ContextCompat.getDrawable(context, if (isFavorite) R.drawable.ic_favorite_24dp else R.drawable.ic_favorite_border_24dp) text = context.getString(if (isFavorite) R.string.in_library else R.string.add_to_library) isChecked = isFavorite } diff --git a/app/src/main/res/drawable/ic_add_to_library_24dp.xml b/app/src/main/res/drawable/ic_add_to_library_24dp.xml deleted file mode 100644 index bba4831293..0000000000 --- a/app/src/main/res/drawable/ic_add_to_library_24dp.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_favorite_24dp.xml b/app/src/main/res/drawable/ic_favorite_24dp.xml new file mode 100644 index 0000000000..41f391057f --- /dev/null +++ b/app/src/main/res/drawable/ic_favorite_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_favorite_border_24dp.xml b/app/src/main/res/drawable/ic_favorite_border_24dp.xml new file mode 100644 index 0000000000..0811b85dbc --- /dev/null +++ b/app/src/main/res/drawable/ic_favorite_border_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/layout/manga_info_controller.xml b/app/src/main/res/layout/manga_info_controller.xml index badaae3602..27e84b3991 100644 --- a/app/src/main/res/layout/manga_info_controller.xml +++ b/app/src/main/res/layout/manga_info_controller.xml @@ -204,7 +204,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/add_to_library" - app:icon="@drawable/ic_add_to_library_24dp" /> + app:icon="@drawable/ic_favorite_border_24dp" />