appending ic_ to the icon drawables

This commit is contained in:
Jay 2020-04-13 23:18:00 -04:00
parent 13ab4655b3
commit 7fa0280e91
22 changed files with 26 additions and 26 deletions

View File

@ -242,7 +242,7 @@ class LibraryController(
!adapter.isHeader(adapter.getItem(position)) && !adapter.isHeader(adapter.getItem(position)) &&
position != adapter.itemCount - 1) null position != adapter.itemCount - 1) null
else if (letter != null) FastScrollItemIndicator.Text(letter) 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.useDefaultScroller = false
fast_scroller.itemIndicatorSelectedCallbacks += object : fast_scroller.itemIndicatorSelectedCallbacks += object :

View File

@ -363,7 +363,7 @@ class MangaDetailsController : BaseController,
when { when {
presenter.scrollType == 0 -> null presenter.scrollType == 0 -> null
letter != null -> FastScrollItemIndicator.Text(letter) 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.useDefaultScroller = false

View File

@ -80,8 +80,8 @@ class ChapterHolder(
if (front_view.translationX == 0f) { if (front_view.translationX == 0f) {
read.setImageDrawable( read.setImageDrawable(
ContextCompat.getDrawable( ContextCompat.getDrawable(
read.context, if (item.read) R.drawable.eye_off read.context, if (item.read) R.drawable.ic_eye_off_24dp
else R.drawable.eye else R.drawable.ic_eye_24dp
) )
) )
bookmark.setImageDrawable( bookmark.setImageDrawable(

View File

@ -61,8 +61,8 @@ class RecentChapterHolder(private val view: View, private val adapter: RecentCha
if (front_view.translationX == 0f) { if (front_view.translationX == 0f) {
read.setImageDrawable( read.setImageDrawable(
ContextCompat.getDrawable( ContextCompat.getDrawable(
read.context, if (item.read) R.drawable.eye_off read.context, if (item.read) R.drawable.ic_eye_off_24dp
else R.drawable.eye else R.drawable.ic_eye_24dp
) )
) )
} }

View File

@ -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>

View 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>

View 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>

View 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_recent_read_24dp" android:state_checked="true" />
<item android:drawable="@drawable/ic_recent_read_outline_24dp" android:state_checked="false" />
</selector>

View File

@ -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>

View File

@ -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>

View File

@ -23,7 +23,7 @@
android:tint="@color/md_white_1000" android:tint="@color/md_white_1000"
android:layout_gravity="end|center" android:layout_gravity="end|center"
android:layout_marginEnd="21dp" android:layout_marginEnd="21dp"
android:src="@drawable/eye" /> android:src="@drawable/ic_eye_24dp" />
</FrameLayout> </FrameLayout>
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout

View File

@ -25,7 +25,7 @@
android:tint="@color/md_white_1000" android:tint="@color/md_white_1000"
android:layout_gravity="end|center" android:layout_gravity="end|center"
android:layout_marginEnd="21dp" android:layout_marginEnd="21dp"
android:src="@drawable/eye" /> android:src="@drawable/ic_eye_24dp" />
</FrameLayout> </FrameLayout>
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout

View File

@ -4,15 +4,15 @@
<item <item
android:checked="true" android:checked="true"
android:id="@+id/nav_library" android:id="@+id/nav_library"
android:icon="@drawable/library_selector_24dp" android:icon="@drawable/ic_library_selector_24dp"
android:title="@string/library" /> android:title="@string/library" />
<item <item
android:id="@+id/nav_recents" android:id="@+id/nav_recents"
android:icon="@drawable/recent_read_selector_24dp" android:icon="@drawable/ic_recent_read_selector_24dp"
android:title="@string/recents" /> android:title="@string/recents" />
<item <item
android:id="@+id/nav_browse" android:id="@+id/nav_browse"
android:icon="@drawable/browse_selector_24dp" android:icon="@drawable/ic_browse_selector_24dp"
android:title="@string/browse" /> android:title="@string/browse" />
</group> </group>
</menu> </menu>