mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-24 13:21:48 +01:00
Using webp with a real shadow instead of vector xml for local source icon
This commit is contained in:
parent
7b7222428c
commit
b2ff267028
@ -56,7 +56,7 @@ class SourceHolder(view: View, val adapter: SourceAdapter) :
|
||||
val icon = source.icon()
|
||||
if (icon != null) edit_button.setImageDrawable(source.icon())
|
||||
else if (item.source.id == LocalSource.ID)
|
||||
edit_button.setImageResource(R.drawable.ic_local_source_32dp)
|
||||
edit_button.setImageResource(R.mipmap.ic_local_source)
|
||||
}
|
||||
|
||||
if (source.supportsLatest) {
|
||||
|
@ -1,28 +0,0 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="32dp"
|
||||
android:height="32dp"
|
||||
android:viewportWidth="40"
|
||||
android:viewportHeight="40">
|
||||
<group
|
||||
android:translateX="4.5"
|
||||
android:translateY="4.5">
|
||||
<path
|
||||
android:fillAlpha=".23"
|
||||
android:fillColor="@android:color/black"
|
||||
android:pathData="M2.5,0L29.5,0A2.5,2.5 0,0 1,32 2.5L32,29.5A2.5,2.5 0,0 1,29.5 32L2.5,32A2.5,2.5 0,0 1,0 29.5L0,2.5A2.5,2.5 0,0 1,2.5 0z" />
|
||||
</group>
|
||||
<group
|
||||
android:translateX="4"
|
||||
android:translateY="4">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M2.5,0L29.5,0A2.5,2.5 0,0 1,32 2.5L32,29.5A2.5,2.5 0,0 1,29.5 32L2.5,32A2.5,2.5 0,0 1,0 29.5L0,2.5A2.5,2.5 0,0 1,2.5 0z" />
|
||||
</group>
|
||||
<group
|
||||
android:translateX="8"
|
||||
android:translateY="8">
|
||||
<path
|
||||
android:fillColor="@color/app_color_primary"
|
||||
android:pathData="M12,11.55C9.64,9.35 6.48,8 3,8v11c3.48,0 6.64,1.35 9,3.55 2.36,-2.19 5.52,-3.55 9,-3.55V8c-3.48,0 -6.64,1.35 -9,3.55zM12,8c1.66,0 3,-1.34 3,-3s-1.34,-3 -3,-3 -3,1.34 -3,3 1.34,3 3,3z" />
|
||||
</group>
|
||||
</vector>
|
BIN
app/src/main/res/mipmap-hdpi/ic_local_source.webp
Normal file
BIN
app/src/main/res/mipmap-hdpi/ic_local_source.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 882 B |
BIN
app/src/main/res/mipmap-mdpi/ic_local_source.webp
Normal file
BIN
app/src/main/res/mipmap-mdpi/ic_local_source.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 674 B |
BIN
app/src/main/res/mipmap-xhdpi/ic_local_source.webp
Normal file
BIN
app/src/main/res/mipmap-xhdpi/ic_local_source.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_local_source.webp
Normal file
BIN
app/src/main/res/mipmap-xxhdpi/ic_local_source.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/ic_local_source.webp
Normal file
BIN
app/src/main/res/mipmap-xxxhdpi/ic_local_source.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
Loading…
Reference in New Issue
Block a user