From 64ba127e7d43b1d7e6d58a6f5c9b2bd5fe0543f7 Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Sat, 25 Apr 2020 22:27:20 -0400 Subject: [PATCH] Added Local Source icon (#2961) --- .../kanade/tachiyomi/ui/source/SourceHolder.kt | 8 ++++++-- .../main/res/mipmap-hdpi/ic_local_source.webp | Bin 0 -> 882 bytes .../main/res/mipmap-mdpi/ic_local_source.webp | Bin 0 -> 674 bytes .../main/res/mipmap-xhdpi/ic_local_source.webp | Bin 0 -> 1046 bytes .../main/res/mipmap-xxhdpi/ic_local_source.webp | Bin 0 -> 1476 bytes .../main/res/mipmap-xxxhdpi/ic_local_source.webp | Bin 0 -> 1774 bytes 6 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 app/src/main/res/mipmap-hdpi/ic_local_source.webp create mode 100644 app/src/main/res/mipmap-mdpi/ic_local_source.webp create mode 100644 app/src/main/res/mipmap-xhdpi/ic_local_source.webp create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_local_source.webp create mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_local_source.webp diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/source/SourceHolder.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/source/SourceHolder.kt index 43c9882dda..55601923aa 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/source/SourceHolder.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/source/SourceHolder.kt @@ -2,6 +2,7 @@ package eu.kanade.tachiyomi.ui.source import android.view.View import eu.kanade.tachiyomi.R +import eu.kanade.tachiyomi.source.LocalSource import eu.kanade.tachiyomi.source.icon import eu.kanade.tachiyomi.ui.base.holder.BaseFlexibleViewHolder import eu.kanade.tachiyomi.ui.base.holder.SlicedHolder @@ -46,8 +47,11 @@ class SourceHolder(view: View, override val adapter: SourceAdapter) : // Set circle letter image. itemView.post { val icon = source.icon() - if (icon != null) image.setImageDrawable(icon) - else image.roundTextIcon(source.name) + when { + icon != null -> image.setImageDrawable(icon) + item.source.id == LocalSource.ID -> image.setImageResource(R.mipmap.ic_local_source) + else -> image.roundTextIcon(source.name) + } } source_browse.setText(R.string.browse) diff --git a/app/src/main/res/mipmap-hdpi/ic_local_source.webp b/app/src/main/res/mipmap-hdpi/ic_local_source.webp new file mode 100644 index 0000000000000000000000000000000000000000..87baab9bdfbff78b567c3800e9f1fe54fc301fbb GIT binary patch literal 882 zcmV-&1C9JrNk&F$0{{S5MM6+kP&il$0000G0000-002h-06|PpNVfn000D5K?SIoG z|1i7vZq@cE?twyc0X(XENmNe*j)%)YtMlNJKIvAChzUTyTMUng?|`9hc}w9vs}5Xb z5F|7co+iP7a6l`}9yDwL6PE4tQBqrG0)0szg)VhqDxR{3Jr&tX=f^ph{`}a|N1ge zZQ{I$cn1@d2lq{_mw;Ay7gvV98}*zGE#IO$4O*lY!Fd|{ z!^Z%C0RH~P)I|m>|MTrUoe#*b%x6Gd?&&-alKc9W$?yNky7kr6c1B$^qUtjh@;h0Q7J5r+kHI3H|vD8MKv{nAd+SY7Y zpagDdJ#^FAvg*_0%~|t&i)-NW>x1^Ve>Wfbqd)1K` zyh2fpV%zyjeqgd^E`J_ajCA#HXf9|Ys#SiC5DY7#se0}j{-hfChlMjn*nxbC#Bxgr zURha-{M>&9N&W5|X-2!1J0+_fJOuv+d=^w$tq$nazZ>Qy7-ugp{k$G|x+}~;m9Rwr z^@4pHU-$UDizHp|@^`P`U0O(clSKeIdIQa+=K%9*e}=kb1G4GO&DJ*&qVYN5l(G~5 zXovh5V!^Pt8QC8bD$uk1%z~9!~Y)4r2qMy9AI>k@VXV)Vi}hK)cXNJq=rv-xk~?L_<;XUjTxXlumKGJ@R8B* IMEn;30N4DVX#fBK literal 0 HcmV?d00001 diff --git a/app/src/main/res/mipmap-mdpi/ic_local_source.webp b/app/src/main/res/mipmap-mdpi/ic_local_source.webp new file mode 100644 index 0000000000000000000000000000000000000000..d2104a55e0097fd2d08e96c96faffa96c47e9d05 GIT binary patch literal 674 zc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A6wG_|N}7it!)kKhN8^St0_t)m`hRfr}ev zfb_Z~zag%Yyip{zdKNz2gxpOj3iF#zTX-#xj?^7N)fvsIcUKU1d9m@~_!L397egPB zD{9qu5wakuYqf{TC_A7SR%{1|2RIPvQ%P3_vQEm5U-t}%E#nP4eQx+vi*WnIs5>Z< zo*gA8{xgN4s$u~cn<8w@lS`ysZg=X!Vurj%p6n9E=b`>IXb>ROGl!uY zwD+;X2AmVBzMlUDAM#82`}>(eO*K|U2hP|j>}GToty&ZQrWR?O&_sbSN_w=Cl;uF( zSJwW&b3esj4F`;0CRKfxxQ%7UM~v|oFYAx|8)!}d6#tBnxuX2DA!dSB))KgNe|lk? QFy#T!Tb09Gilr)m01j02{r~^~ literal 0 HcmV?d00001 diff --git a/app/src/main/res/mipmap-xxhdpi/ic_local_source.webp b/app/src/main/res/mipmap-xxhdpi/ic_local_source.webp new file mode 100644 index 0000000000000000000000000000000000000000..3e5d4498642fd9592dffe52248d7f4039b5451f0 GIT binary patch literal 1476 zcmV;#1v~muNk&Gz1pok7MM6+kP&il$0000G0001w0055w06|PpNUZ??01c3A+qP*t zbFTeRdM~zZ+bS6~*7Fbflhj$WZCiEQDLtGuBJsZdVc%N=Cd!G0VSb~He*#Sau|9{TF|iWs7p!#gDstpY}U?L zv2(LSibpWaoQs^cU9%!1=}2o zM1VFXJD6}$E<`5Dj``{ONRlFfB=Q>|iHbuYM=$|GY$C^mkdWURRF3}p|G)qL`~SC7 zu?X2If|vk$&?P(fI}-_o%cHY%sT;sp006tM9k3^%QA(NXPNH_%qv$t?y039sQ=-U1P z>I0Qm)CZUkIIlZP=zNGDAa+Il_Q+4#*nu3*IP=vcC=tUMeZi+oW$C_Ir>D5K2bfu?RFYqAetPzb>TAB00EqPyd z@5C1|{?RG75hKq1eNHfX73d_@Lbl%K1)8<;VL+WEs9QV{p-a;7;KSRWWp2JoqtB@} zGFQz-td~{%v7*4}diFHK4D5Y%I&^Z=ou2*D(am#b+73m$|I?1?D?0&)MUOo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