mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-09 19:55:11 +01:00
appending ic_ to the icon drawables
This commit is contained in:
parent
13ab4655b3
commit
7fa0280e91
@ -242,7 +242,7 @@ class LibraryController(
|
||||
!adapter.isHeader(adapter.getItem(position)) &&
|
||||
position != adapter.itemCount - 1) null
|
||||
else if (letter != null) FastScrollItemIndicator.Text(letter)
|
||||
else FastScrollItemIndicator.Icon(R.drawable.star)
|
||||
else FastScrollItemIndicator.Icon(R.drawable.ic_star_24dp)
|
||||
})
|
||||
fast_scroller.useDefaultScroller = false
|
||||
fast_scroller.itemIndicatorSelectedCallbacks += object :
|
||||
|
@ -363,7 +363,7 @@ class MangaDetailsController : BaseController,
|
||||
when {
|
||||
presenter.scrollType == 0 -> null
|
||||
letter != null -> FastScrollItemIndicator.Text(letter)
|
||||
else -> FastScrollItemIndicator.Icon(R.drawable.star)
|
||||
else -> FastScrollItemIndicator.Icon(R.drawable.ic_star_24dp)
|
||||
}
|
||||
})
|
||||
fast_scroller.useDefaultScroller = false
|
||||
|
@ -80,8 +80,8 @@ class ChapterHolder(
|
||||
if (front_view.translationX == 0f) {
|
||||
read.setImageDrawable(
|
||||
ContextCompat.getDrawable(
|
||||
read.context, if (item.read) R.drawable.eye_off
|
||||
else R.drawable.eye
|
||||
read.context, if (item.read) R.drawable.ic_eye_off_24dp
|
||||
else R.drawable.ic_eye_24dp
|
||||
)
|
||||
)
|
||||
bookmark.setImageDrawable(
|
||||
|
@ -61,8 +61,8 @@ class RecentChapterHolder(private val view: View, private val adapter: RecentCha
|
||||
if (front_view.translationX == 0f) {
|
||||
read.setImageDrawable(
|
||||
ContextCompat.getDrawable(
|
||||
read.context, if (item.read) R.drawable.eye_off
|
||||
else R.drawable.eye
|
||||
read.context, if (item.read) R.drawable.ic_eye_off_24dp
|
||||
else R.drawable.ic_eye_24dp
|
||||
)
|
||||
)
|
||||
}
|
||||
|
@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/browse_24dp" android:state_checked="true" />
|
||||
<item android:drawable="@drawable/browse_outline_24dp" android:state_checked="false" />
|
||||
</selector>
|
5
app/src/main/res/drawable/ic_browse_selector_24dp.xml
Normal file
5
app/src/main/res/drawable/ic_browse_selector_24dp.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/ic_browse_24dp" android:state_checked="true" />
|
||||
<item android:drawable="@drawable/ic_browse_outline_24dp" android:state_checked="false" />
|
||||
</selector>
|
5
app/src/main/res/drawable/ic_library_selector_24dp.xml
Normal file
5
app/src/main/res/drawable/ic_library_selector_24dp.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/ic_library_24dp" android:state_checked="true" />
|
||||
<item android:drawable="@drawable/ic_library_outline_24dp" android:state_checked="false" />
|
||||
</selector>
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/ic_recent_read_24dp" android:state_checked="true" />
|
||||
<item android:drawable="@drawable/ic_recent_read_outline_24dp" android:state_checked="false" />
|
||||
</selector>
|
@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/library_24dp" android:state_checked="true" />
|
||||
<item android:drawable="@drawable/library_outline_24dp" android:state_checked="false" />
|
||||
</selector>
|
@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/recent_read_24dp" android:state_checked="true" />
|
||||
<item android:drawable="@drawable/recent_read_outline_24dp" android:state_checked="false" />
|
||||
</selector>
|
@ -23,7 +23,7 @@
|
||||
android:tint="@color/md_white_1000"
|
||||
android:layout_gravity="end|center"
|
||||
android:layout_marginEnd="21dp"
|
||||
android:src="@drawable/eye" />
|
||||
android:src="@drawable/ic_eye_24dp" />
|
||||
</FrameLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
|
@ -25,7 +25,7 @@
|
||||
android:tint="@color/md_white_1000"
|
||||
android:layout_gravity="end|center"
|
||||
android:layout_marginEnd="21dp"
|
||||
android:src="@drawable/eye" />
|
||||
android:src="@drawable/ic_eye_24dp" />
|
||||
</FrameLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
|
@ -4,15 +4,15 @@
|
||||
<item
|
||||
android:checked="true"
|
||||
android:id="@+id/nav_library"
|
||||
android:icon="@drawable/library_selector_24dp"
|
||||
android:icon="@drawable/ic_library_selector_24dp"
|
||||
android:title="@string/library" />
|
||||
<item
|
||||
android:id="@+id/nav_recents"
|
||||
android:icon="@drawable/recent_read_selector_24dp"
|
||||
android:icon="@drawable/ic_recent_read_selector_24dp"
|
||||
android:title="@string/recents" />
|
||||
<item
|
||||
android:id="@+id/nav_browse"
|
||||
android:icon="@drawable/browse_selector_24dp"
|
||||
android:icon="@drawable/ic_browse_selector_24dp"
|
||||
android:title="@string/browse" />
|
||||
</group>
|
||||
</menu>
|
||||
|
Loading…
Reference in New Issue
Block a user