Add up arrow eye icons for those who sort by ascending chapters

This commit is contained in:
Jays2Kings 2021-05-10 14:23:28 -04:00
parent 4c06966870
commit 8ead904def
3 changed files with 27 additions and 3 deletions

View File

@ -664,16 +664,16 @@ class MangaDetailsController :
override fun onItemLongClick(position: Int) {
val adapter = adapter ?: return
val item = (adapter.getItem(position) as? ChapterItem) ?: return
// val itemView = getHolder(item)?.itemView ?: return
val descending = presenter.sortDescending()
val items = listOf(
MaterialMenuSheet.MenuSheetItem(
0,
R.drawable.ic_eye_down_24dp,
if (descending) R.drawable.ic_eye_down_24dp else R.drawable.ic_eye_up_24dp,
R.string.mark_previous_as_read
),
MaterialMenuSheet.MenuSheetItem(
1,
R.drawable.ic_eye_off_down_24dp,
if (descending) R.drawable.ic_eye_off_down_24dp else R.drawable.ic_eye_off_up_24dp,
R.string.mark_previous_as_unread
),
MaterialMenuSheet.MenuSheetItem(

View File

@ -0,0 +1,15 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FF000000"
android:pathData="M12,9c1.7,0 3,1.3 3,3s-1.3,3 -3,3s-3,-1.3 -3,-3S10.3,9 12,9"/>
<path
android:fillColor="#FF000000"
android:pathData="M12,17c0.5,0 1,-0.1 1.4,-0.2C13.1,17.5 13,18.2 13,19v0.5h-1c-5,0 -9.3,-3.1 -11,-7.5c1.7,-4.4 6,-7.5 11,-7.5s9.3,3.1 11,7.5c-0.2,0.6 -0.6,1.3 -0.9,1.9c-0.9,-0.5 -2,-0.9 -3.1,-0.9c-0.8,0 -1.5,0.1 -2.2,0.4C16.9,13 17,12.5 17,12c0,-2.8 -2.2,-5 -5,-5s-5,2.2 -5,5S9.2,17 12,17z"/>
<path
android:fillColor="#FF000000"
android:pathData="M12,9c-0.1,0 -0.1,0 -0.2,0l3.2,3.2c0,0 0,-0.1 0,-0.2C15,10.3 13.7,9 12,9zM12,7c2.8,0 5,2.2 5,5c0,0.5 -0.1,1 -0.2,1.4c0.7,-0.3 1.4,-0.4 2.2,-0.4c1.1,0 2.2,0.3 3.1,0.8c0.4,-0.6 0.7,-1.2 0.9,-1.8c-1.7,-4.4 -6,-7.5 -11,-7.5c-1.4,0 -2.7,0.2 -4,0.7l2.2,2.1C10.7,7.1 11.3,7 12,7zM13,19c0,-0.8 0.2,-1.5 0.4,-2.2C12.9,16.9 12.5,17 12,17c-2.8,0 -5,-2.2 -5,-5c0,-0.8 0.2,-1.5 0.5,-2.2L9,11.3c0,0.3 0,0.5 0,0.7c0,1.7 1.3,3 3,3c0.2,0 0.4,0 0.7,-0.1l1.1,1.1c0.3,-0.5 0.7,-1 1.1,-1.4L3.3,3L2,4.3l2.3,2.3L4.7,7C3.1,8.3 1.8,10 1,12c1.7,4.4 6,7.5 11,7.5c0.3,0 0.7,0 1,0C13,19.3 13,19.2 13,19zM19.8,23.1H18V19l-1.6,1.6l-1.1,-1.1l3.6,-3.6l3.6,3.6l-1.1,1.1L19.8,19V23.1z"/>
</vector>

View File

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FF000000"
android:pathData="M12,9c1.7,0 3,1.3 3,3s-1.3,3 -3,3s-3,-1.3 -3,-3S10.3,9 12,9M12,17c0.5,0 1,-0.1 1.4,-0.2C13.1,17.5 13,18.2 13,19v0.5h-1c-5,0 -9.3,-3.1 -11,-7.5c1.7,-4.4 6,-7.5 11,-7.5s9.3,3.1 11,7.5c-0.2,0.6 -0.6,1.3 -0.9,1.9c-0.9,-0.5 -2,-0.9 -3.1,-0.9c-0.8,0 -1.5,0.1 -2.2,0.4C16.9,13 17,12.5 17,12c0,-2.8 -2.2,-5 -5,-5s-5,2.2 -5,5S9.2,17 12,17zM19.8,23.1H18V19l-1.6,1.6l-1.1,-1.1l3.6,-3.6l3.6,3.6l-1.1,1.1L19.8,19V23.1z"/>
</vector>