mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 01:35:09 +01:00
Renaming arrow down/up
This commit is contained in:
parent
f98d0238c8
commit
516ff61abd
@ -30,7 +30,7 @@ class DownloadButton @JvmOverloads constructor(context: Context, attrs: Attribut
|
||||
private val borderCircle = ContextCompat.getDrawable(context,
|
||||
R.drawable.border_circle)?.mutate()
|
||||
private val downloadDrawable = ContextCompat.getDrawable(context,
|
||||
R.drawable.ic_arrow_down_24dp)?.mutate()
|
||||
R.drawable.ic_arrow_downward_24dp)?.mutate()
|
||||
private val checkDrawable = ContextCompat.getDrawable(context,
|
||||
R.drawable.ic_check_24dp)?.mutate()
|
||||
private var isAnimating = false
|
||||
|
@ -99,8 +99,8 @@ class LibraryHeaderHolder(val view: View, private val adapter: LibraryCategoryAd
|
||||
val sortingMode = category.sortingMode()
|
||||
val sortDrawable = when {
|
||||
sortingMode == LibrarySort.DRAG_AND_DROP || sortingMode == null -> R.drawable.ic_sort_24dp
|
||||
if (sortingMode == LibrarySort.DATE_ADDED || sortingMode == LibrarySort.LATEST_CHAPTER || sortingMode == LibrarySort.LAST_READ) !isAscending else isAscending -> R.drawable.ic_arrow_down_24dp
|
||||
else -> R.drawable.ic_arrow_up_24dp
|
||||
if (sortingMode == LibrarySort.DATE_ADDED || sortingMode == LibrarySort.LATEST_CHAPTER || sortingMode == LibrarySort.LAST_READ) !isAscending else isAscending -> R.drawable.ic_arrow_downward_24dp
|
||||
else -> R.drawable.ic_arrow_upward_24dp
|
||||
}
|
||||
|
||||
sortText.setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, sortDrawable, 0)
|
||||
@ -207,8 +207,8 @@ class LibraryHeaderHolder(val view: View, private val adapter: LibraryCategoryAd
|
||||
if (sortingMode == LibrarySort.DATE_ADDED ||
|
||||
sortingMode == LibrarySort.LATEST_CHAPTER ||
|
||||
sortingMode == LibrarySort.LAST_READ) !isAscending else isAscending ->
|
||||
R.drawable.ic_arrow_down_24dp
|
||||
else -> R.drawable.ic_arrow_up_24dp
|
||||
R.drawable.ic_arrow_downward_24dp
|
||||
else -> R.drawable.ic_arrow_upward_24dp
|
||||
}
|
||||
|
||||
private fun onCatSortClicked(category: Category, menuId: Int?) {
|
||||
|
@ -35,9 +35,9 @@ class SortItem(val name: String, val group: SortGroup) : AbstractSectionableItem
|
||||
val i = filter.values.indexOf(name)
|
||||
|
||||
fun getIcon() = when (filter.state) {
|
||||
Filter.Sort.Selection(i, false) -> VectorDrawableCompat.create(view.resources, R.drawable.ic_arrow_down_32dp, null)
|
||||
Filter.Sort.Selection(i, false) -> VectorDrawableCompat.create(view.resources, R.drawable.ic_arrow_downward_32dp, null)
|
||||
?.apply { setTint(view.context.getResourceColor(R.attr.colorAccent)) }
|
||||
Filter.Sort.Selection(i, true) -> VectorDrawableCompat.create(view.resources, R.drawable.ic_arrow_up_32dp, null)
|
||||
Filter.Sort.Selection(i, true) -> VectorDrawableCompat.create(view.resources, R.drawable.ic_arrow_upward_32dp, null)
|
||||
?.apply { setTint(view.context.getResourceColor(R.attr.colorAccent)) }
|
||||
else -> ContextCompat.getDrawable(view.context, R.drawable.empty_drawable_32dp)
|
||||
}
|
||||
|
@ -45,5 +45,5 @@
|
||||
android:layout_height="30dp"
|
||||
android:background="@drawable/round_ripple"
|
||||
android:padding="5dp"
|
||||
android:src="@drawable/ic_arrow_down_24dp" />
|
||||
android:src="@drawable/ic_arrow_downward_24dp" />
|
||||
</eu.kanade.tachiyomi.ui.download.DownloadButton>
|
@ -31,5 +31,5 @@
|
||||
android:tint="@color/colorAccent"
|
||||
android:visibility="invisible"
|
||||
tools:visibility="visible"
|
||||
android:src="@drawable/ic_arrow_up_24dp" />
|
||||
android:src="@drawable/ic_arrow_upward_24dp" />
|
||||
</LinearLayout>
|
Loading…
Reference in New Issue
Block a user