mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-24 00:11:50 +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)) &&
|
!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 :
|
||||||
|
@ -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
|
||||||
|
@ -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(
|
||||||
|
@ -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
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -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: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
|
||||||
|
@ -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
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user