From 3892b93bcada9926fae291b18a72d6e5089237ca Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 11 Jan 2020 22:01:26 -0500 Subject: [PATCH] Rename tracker icon images --- .../kanade/tachiyomi/data/track/anilist/Anilist.kt | 2 +- .../kanade/tachiyomi/data/track/bangumi/Bangumi.kt | 2 +- .../eu/kanade/tachiyomi/data/track/kitsu/Kitsu.kt | 2 +- .../tachiyomi/data/track/myanimelist/MyAnimeList.kt | 2 +- .../tachiyomi/data/track/shikimori/Shikimori.kt | 3 +-- .../{anilist.webp => tracker_anilist.webp} | Bin .../{bangumi.webp => tracker_bangumi.webp} | Bin .../{kitsu.webp => tracker_kitsu.webp} | Bin .../drawable-xxxhdpi/{mal.webp => tracker_mal.webp} | Bin .../{shikimori.webp => tracker_shikimori.webp} | Bin app/src/main/res/layout/track_item.xml | 2 +- 11 files changed, 6 insertions(+), 7 deletions(-) rename app/src/main/res/drawable-xxxhdpi/{anilist.webp => tracker_anilist.webp} (100%) rename app/src/main/res/drawable-xxxhdpi/{bangumi.webp => tracker_bangumi.webp} (100%) rename app/src/main/res/drawable-xxxhdpi/{kitsu.webp => tracker_kitsu.webp} (100%) rename app/src/main/res/drawable-xxxhdpi/{mal.webp => tracker_mal.webp} (100%) rename app/src/main/res/drawable-xxxhdpi/{shikimori.webp => tracker_shikimori.webp} (100%) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/Anilist.kt b/app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/Anilist.kt index fde18a22d..043d2653f 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/Anilist.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/Anilist.kt @@ -52,7 +52,7 @@ class Anilist(private val context: Context, id: Int) : TrackService(id) { } } - override fun getLogo() = R.drawable.anilist + override fun getLogo() = R.drawable.tracker_anilist override fun getLogoColor() = Color.rgb(18, 25, 35) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/Bangumi.kt b/app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/Bangumi.kt index 0d93e1fb7..9638d40d1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/Bangumi.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/Bangumi.kt @@ -91,7 +91,7 @@ class Bangumi(private val context: Context, id: Int) : TrackService(id) { private val api by lazy { BangumiApi(client, interceptor) } - override fun getLogo() = R.drawable.bangumi + override fun getLogo() = R.drawable.tracker_bangumi override fun getLogoColor() = Color.rgb(0xF0, 0x91, 0x99) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/track/kitsu/Kitsu.kt b/app/src/main/java/eu/kanade/tachiyomi/data/track/kitsu/Kitsu.kt index 97741fd54..a6f49c401 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/track/kitsu/Kitsu.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/track/kitsu/Kitsu.kt @@ -34,7 +34,7 @@ class Kitsu(private val context: Context, id: Int) : TrackService(id) { private val api by lazy { KitsuApi(client, interceptor) } override fun getLogo(): Int { - return R.drawable.kitsu + return R.drawable.tracker_kitsu } override fun getLogoColor(): Int { diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/track/myanimelist/MyAnimeList.kt b/app/src/main/java/eu/kanade/tachiyomi/data/track/myanimelist/MyAnimeList.kt index 1cdb34108..24fb80128 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/track/myanimelist/MyAnimeList.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/track/myanimelist/MyAnimeList.kt @@ -34,7 +34,7 @@ class Myanimelist(private val context: Context, id: Int) : TrackService(id) { override val name: String get() = "MyAnimeList" - override fun getLogo() = R.drawable.mal + override fun getLogo() = R.drawable.tracker_mal override fun getLogoColor() = Color.rgb(46, 81, 162) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/track/shikimori/Shikimori.kt b/app/src/main/java/eu/kanade/tachiyomi/data/track/shikimori/Shikimori.kt index 4c818d5fc..00f7a517f 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/track/shikimori/Shikimori.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/track/shikimori/Shikimori.kt @@ -2,7 +2,6 @@ package eu.kanade.tachiyomi.data.track.shikimori import android.content.Context import android.graphics.Color -import android.util.Log import com.google.gson.Gson import eu.kanade.tachiyomi.R import eu.kanade.tachiyomi.data.database.models.Track @@ -84,7 +83,7 @@ class Shikimori(private val context: Context, id: Int) : TrackService(id) { private val api by lazy { ShikimoriApi(client, interceptor) } - override fun getLogo() = R.drawable.shikimori + override fun getLogo() = R.drawable.tracker_shikimori override fun getLogoColor() = Color.rgb(40, 40, 40) diff --git a/app/src/main/res/drawable-xxxhdpi/anilist.webp b/app/src/main/res/drawable-xxxhdpi/tracker_anilist.webp similarity index 100% rename from app/src/main/res/drawable-xxxhdpi/anilist.webp rename to app/src/main/res/drawable-xxxhdpi/tracker_anilist.webp diff --git a/app/src/main/res/drawable-xxxhdpi/bangumi.webp b/app/src/main/res/drawable-xxxhdpi/tracker_bangumi.webp similarity index 100% rename from app/src/main/res/drawable-xxxhdpi/bangumi.webp rename to app/src/main/res/drawable-xxxhdpi/tracker_bangumi.webp diff --git a/app/src/main/res/drawable-xxxhdpi/kitsu.webp b/app/src/main/res/drawable-xxxhdpi/tracker_kitsu.webp similarity index 100% rename from app/src/main/res/drawable-xxxhdpi/kitsu.webp rename to app/src/main/res/drawable-xxxhdpi/tracker_kitsu.webp diff --git a/app/src/main/res/drawable-xxxhdpi/mal.webp b/app/src/main/res/drawable-xxxhdpi/tracker_mal.webp similarity index 100% rename from app/src/main/res/drawable-xxxhdpi/mal.webp rename to app/src/main/res/drawable-xxxhdpi/tracker_mal.webp diff --git a/app/src/main/res/drawable-xxxhdpi/shikimori.webp b/app/src/main/res/drawable-xxxhdpi/tracker_shikimori.webp similarity index 100% rename from app/src/main/res/drawable-xxxhdpi/shikimori.webp rename to app/src/main/res/drawable-xxxhdpi/tracker_shikimori.webp diff --git a/app/src/main/res/layout/track_item.xml b/app/src/main/res/layout/track_item.xml index b15dcb88e..029ca35fd 100644 --- a/app/src/main/res/layout/track_item.xml +++ b/app/src/main/res/layout/track_item.xml @@ -25,7 +25,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" - tools:src="@drawable/mal" /> + tools:src="@drawable/tracker_mal" />