mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-14 05:15:10 +01:00
Refactoring vectors to remove _white/_black from the names
This commit is contained in:
parent
7ccf5b6d4d
commit
4230afecaa
@ -453,7 +453,7 @@ class BackupRestoreService : Service() {
|
|||||||
val resultNotification = NotificationCompat.Builder(this, Notifications.CHANNEL_BACKUP_RESTORE)
|
val resultNotification = NotificationCompat.Builder(this, Notifications.CHANNEL_BACKUP_RESTORE)
|
||||||
.setContentTitle(getString(R.string.restore_error))
|
.setContentTitle(getString(R.string.restore_error))
|
||||||
.setContentText(errorMessage)
|
.setContentText(errorMessage)
|
||||||
.setSmallIcon(R.drawable.ic_error_grey)
|
.setSmallIcon(R.drawable.ic_error_24dp)
|
||||||
.setPriority(NotificationCompat.PRIORITY_HIGH)
|
.setPriority(NotificationCompat.PRIORITY_HIGH)
|
||||||
.setColor(ContextCompat.getColor(this, R.color.md_red_500))
|
.setColor(ContextCompat.getColor(this, R.color.md_red_500))
|
||||||
notificationManager.notify(Notifications.ID_RESTORE_ERROR, resultNotification.build())
|
notificationManager.notify(Notifications.ID_RESTORE_ERROR, resultNotification.build())
|
||||||
|
@ -159,7 +159,7 @@ class LibraryUpdateNotifier(private val context: Context) {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
addAction(
|
addAction(
|
||||||
R.drawable.ic_glasses_black_24dp, context.getString(R.string.mark_as_read),
|
R.drawable.ic_eye_24dp, context.getString(R.string.mark_as_read),
|
||||||
NotificationReceiver.markAsReadPendingBroadcast(
|
NotificationReceiver.markAsReadPendingBroadcast(
|
||||||
context,
|
context,
|
||||||
manga, chapters, Notifications.ID_NEW_CHAPTERS
|
manga, chapters, Notifications.ID_NEW_CHAPTERS
|
||||||
|
@ -52,7 +52,7 @@ class CategoryHolder(view: View, val adapter: CategoryAdapter) : BaseFlexibleVie
|
|||||||
if (createCategory) {
|
if (createCategory) {
|
||||||
title.setTextColor(ContextCompat.getColor(itemView.context, R.color.text_color_hint))
|
title.setTextColor(ContextCompat.getColor(itemView.context, R.color.text_color_hint))
|
||||||
regularDrawable = ContextCompat.getDrawable(itemView.context, R.drawable
|
regularDrawable = ContextCompat.getDrawable(itemView.context, R.drawable
|
||||||
.ic_add_white_24dp)
|
.ic_add_24dp)
|
||||||
image.gone()
|
image.gone()
|
||||||
edit_button.setImageDrawable(null)
|
edit_button.setImageDrawable(null)
|
||||||
edit_text.setText("")
|
edit_text.setText("")
|
||||||
@ -60,7 +60,7 @@ class CategoryHolder(view: View, val adapter: CategoryAdapter) : BaseFlexibleVie
|
|||||||
} else {
|
} else {
|
||||||
title.setTextColor(ContextCompat.getColor(itemView.context, R.color.textColorPrimary))
|
title.setTextColor(ContextCompat.getColor(itemView.context, R.color.textColorPrimary))
|
||||||
regularDrawable = ContextCompat.getDrawable(itemView.context, R.drawable
|
regularDrawable = ContextCompat.getDrawable(itemView.context, R.drawable
|
||||||
.ic_drag_handle_black_24dp)
|
.ic_drag_handle_24dp)
|
||||||
image.visible()
|
image.visible()
|
||||||
edit_text.setText(title.text)
|
edit_text.setText(title.text)
|
||||||
}
|
}
|
||||||
@ -74,7 +74,7 @@ class CategoryHolder(view: View, val adapter: CategoryAdapter) : BaseFlexibleVie
|
|||||||
edit_text.inputType = InputType.TYPE_TEXT_FLAG_AUTO_CORRECT
|
edit_text.inputType = InputType.TYPE_TEXT_FLAG_AUTO_CORRECT
|
||||||
edit_text.requestFocus()
|
edit_text.requestFocus()
|
||||||
edit_text.selectAll()
|
edit_text.selectAll()
|
||||||
edit_button.setImageDrawable(ContextCompat.getDrawable(itemView.context, R.drawable.ic_check_white_24dp))
|
edit_button.setImageDrawable(ContextCompat.getDrawable(itemView.context, R.drawable.ic_check_24dp))
|
||||||
edit_button.drawable.mutate().setTint(itemView.context.getResourceColor(R.attr.colorAccent))
|
edit_button.drawable.mutate().setTint(itemView.context.getResourceColor(R.attr.colorAccent))
|
||||||
showKeyboard()
|
showKeyboard()
|
||||||
if (!createCategory) {
|
if (!createCategory) {
|
||||||
@ -90,7 +90,7 @@ class CategoryHolder(view: View, val adapter: CategoryAdapter) : BaseFlexibleVie
|
|||||||
} else {
|
} else {
|
||||||
if (!createCategory) {
|
if (!createCategory) {
|
||||||
setDragHandleView(reorder)
|
setDragHandleView(reorder)
|
||||||
edit_button.setImageDrawable(ContextCompat.getDrawable(itemView.context, R.drawable.ic_edit_white_24dp))
|
edit_button.setImageDrawable(ContextCompat.getDrawable(itemView.context, R.drawable.ic_edit_24dp))
|
||||||
} else {
|
} else {
|
||||||
edit_button.setImageDrawable(null)
|
edit_button.setImageDrawable(null)
|
||||||
reorder.setOnTouchListener { _, _ -> true }
|
reorder.setOnTouchListener { _, _ -> true }
|
||||||
|
@ -163,7 +163,7 @@ class DownloadBottomSheet @JvmOverloads constructor(
|
|||||||
setBottomSheet()
|
setBottomSheet()
|
||||||
if (presenter.downloadQueue.isEmpty()) {
|
if (presenter.downloadQueue.isEmpty()) {
|
||||||
empty_view?.show(
|
empty_view?.show(
|
||||||
R.drawable.ic_file_download_black_128dp,
|
R.drawable.ic_file_download_24dp,
|
||||||
R.string.nothing_is_downloading)
|
R.string.nothing_is_downloading)
|
||||||
} else {
|
} else {
|
||||||
empty_view?.hide()
|
empty_view?.hide()
|
||||||
|
@ -30,9 +30,9 @@ class DownloadButton @JvmOverloads constructor(context: Context, attrs: Attribut
|
|||||||
private val borderCircle = ContextCompat.getDrawable(context,
|
private val borderCircle = ContextCompat.getDrawable(context,
|
||||||
R.drawable.border_circle)?.mutate()
|
R.drawable.border_circle)?.mutate()
|
||||||
private val downloadDrawable = ContextCompat.getDrawable(context,
|
private val downloadDrawable = ContextCompat.getDrawable(context,
|
||||||
R.drawable.ic_arrow_down_white_24dp)?.mutate()
|
R.drawable.ic_arrow_down_24dp)?.mutate()
|
||||||
private val checkDrawable = ContextCompat.getDrawable(context,
|
private val checkDrawable = ContextCompat.getDrawable(context,
|
||||||
R.drawable.ic_check_white_24dp)?.mutate()
|
R.drawable.ic_check_24dp)?.mutate()
|
||||||
private var isAnimating = false
|
private var isAnimating = false
|
||||||
private var iconAnimation: ObjectAnimator? = null
|
private var iconAnimation: ObjectAnimator? = null
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ class DownloadHolder(private val view: View, val adapter: DownloadAdapter) :
|
|||||||
|
|
||||||
migration_menu.visibleIf(adapterPosition != 0 || adapterPosition != adapter.itemCount - 1)
|
migration_menu.visibleIf(adapterPosition != 0 || adapterPosition != adapter.itemCount - 1)
|
||||||
migration_menu.setVectorCompat(
|
migration_menu.setVectorCompat(
|
||||||
R.drawable.ic_more_vert_black_24dp, view.context
|
R.drawable.ic_more_vert_24dp, view.context
|
||||||
.getResourceColor(android.R.attr.textColorPrimary))
|
.getResourceColor(android.R.attr.textColorPrimary))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -710,7 +710,7 @@ class LibraryController(
|
|||||||
empty_view?.hide()
|
empty_view?.hide()
|
||||||
} else {
|
} else {
|
||||||
empty_view?.show(
|
empty_view?.show(
|
||||||
R.drawable.ic_book_black_128dp,
|
R.drawable.ic_book_24dp,
|
||||||
if (filter_bottom_sheet.hasActiveFilters()) R.string.no_matches_for_filters
|
if (filter_bottom_sheet.hasActiveFilters()) R.string.no_matches_for_filters
|
||||||
else R.string.library_is_empty_add_from_browse
|
else R.string.library_is_empty_add_from_browse
|
||||||
)
|
)
|
||||||
|
@ -26,10 +26,10 @@ object LibraryGroup {
|
|||||||
return when (type) {
|
return when (type) {
|
||||||
BY_STATUS -> R.drawable.ic_progress_clock_24dp
|
BY_STATUS -> R.drawable.ic_progress_clock_24dp
|
||||||
BY_TAG -> R.drawable.ic_style_24dp
|
BY_TAG -> R.drawable.ic_style_24dp
|
||||||
BY_TRACK_STATUS -> R.drawable.ic_sync_black_24dp
|
BY_TRACK_STATUS -> R.drawable.ic_sync_24dp
|
||||||
BY_SOURCE -> R.drawable.ic_browse_24dp
|
BY_SOURCE -> R.drawable.ic_browse_24dp
|
||||||
UNGROUPED -> R.drawable.ic_ungroup_24dp
|
UNGROUPED -> R.drawable.ic_ungroup_24dp
|
||||||
else -> R.drawable.ic_label_outline_white_24dp
|
else -> R.drawable.ic_label_outline_24dp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -98,9 +98,9 @@ class LibraryHeaderHolder(val view: View, private val adapter: LibraryCategoryAd
|
|||||||
val isAscending = category.isAscending()
|
val isAscending = category.isAscending()
|
||||||
val sortingMode = category.sortingMode()
|
val sortingMode = category.sortingMode()
|
||||||
val sortDrawable = when {
|
val sortDrawable = when {
|
||||||
sortingMode == LibrarySort.DRAG_AND_DROP || sortingMode == null -> R.drawable.ic_sort_white_24dp
|
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_white_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_white_24dp
|
else -> R.drawable.ic_arrow_up_24dp
|
||||||
}
|
}
|
||||||
|
|
||||||
sortText.setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, sortDrawable, 0)
|
sortText.setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, sortDrawable, 0)
|
||||||
@ -175,7 +175,7 @@ class LibraryHeaderHolder(val view: View, private val adapter: LibraryCategoryAd
|
|||||||
items.add(
|
items.add(
|
||||||
MaterialMenuSheet.MenuSheetItem(
|
MaterialMenuSheet.MenuSheetItem(
|
||||||
LibrarySort.DRAG_AND_DROP,
|
LibrarySort.DRAG_AND_DROP,
|
||||||
R.drawable.ic_label_outline_white_24dp,
|
R.drawable.ic_label_outline_24dp,
|
||||||
R.string.category
|
R.string.category
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -203,12 +203,12 @@ class LibraryHeaderHolder(val view: View, private val adapter: LibraryCategoryAd
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun getSortRes(sortingMode: Int?, isAscending: Boolean): Int = when {
|
private fun getSortRes(sortingMode: Int?, isAscending: Boolean): Int = when {
|
||||||
sortingMode == LibrarySort.DRAG_AND_DROP -> R.drawable.ic_check_white_24dp
|
sortingMode == LibrarySort.DRAG_AND_DROP -> R.drawable.ic_check_24dp
|
||||||
if (sortingMode == LibrarySort.DATE_ADDED ||
|
if (sortingMode == LibrarySort.DATE_ADDED ||
|
||||||
sortingMode == LibrarySort.LATEST_CHAPTER ||
|
sortingMode == LibrarySort.LATEST_CHAPTER ||
|
||||||
sortingMode == LibrarySort.LAST_READ) !isAscending else isAscending ->
|
sortingMode == LibrarySort.LAST_READ) !isAscending else isAscending ->
|
||||||
R.drawable.ic_arrow_down_white_24dp
|
R.drawable.ic_arrow_down_24dp
|
||||||
else -> R.drawable.ic_arrow_up_white_24dp
|
else -> R.drawable.ic_arrow_up_24dp
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun onCatSortClicked(category: Category, menuId: Int?) {
|
private fun onCatSortClicked(category: Category, menuId: Int?) {
|
||||||
@ -246,7 +246,7 @@ class LibraryHeaderHolder(val view: View, private val adapter: LibraryCategoryAd
|
|||||||
val allSelected = adapter.libraryListener.allSelected(adapterPosition)
|
val allSelected = adapter.libraryListener.allSelected(adapterPosition)
|
||||||
val drawable = ContextCompat.getDrawable(
|
val drawable = ContextCompat.getDrawable(
|
||||||
contentView.context,
|
contentView.context,
|
||||||
if (allSelected) R.drawable.ic_check_circle_white_24dp else R.drawable.ic_radio_button_unchecked_white_24dp
|
if (allSelected) R.drawable.ic_check_circle_24dp else R.drawable.ic_radio_button_unchecked_24dp
|
||||||
)
|
)
|
||||||
val tintedDrawable = drawable?.mutate()
|
val tintedDrawable = drawable?.mutate()
|
||||||
tintedDrawable?.setTint(
|
tintedDrawable?.setTint(
|
||||||
|
@ -145,7 +145,7 @@ open class MainActivity : BaseActivity(), DownloadServiceListener {
|
|||||||
drawerArrow = DrawerArrowDrawable(this)
|
drawerArrow = DrawerArrowDrawable(this)
|
||||||
drawerArrow?.color = getResourceColor(R.attr.actionBarTintColor)
|
drawerArrow?.color = getResourceColor(R.attr.actionBarTintColor)
|
||||||
searchDrawable = ContextCompat.getDrawable(
|
searchDrawable = ContextCompat.getDrawable(
|
||||||
this, R.drawable.ic_search_white_24dp
|
this, R.drawable.ic_search_24dp
|
||||||
)
|
)
|
||||||
dismissDrawable = ContextCompat.getDrawable(
|
dismissDrawable = ContextCompat.getDrawable(
|
||||||
this, R.drawable.ic_close_24dp
|
this, R.drawable.ic_close_24dp
|
||||||
|
@ -169,7 +169,7 @@ class MangaHeaderHolder(
|
|||||||
with(favorite_button) {
|
with(favorite_button) {
|
||||||
icon = ContextCompat.getDrawable(
|
icon = ContextCompat.getDrawable(
|
||||||
itemView.context, when {
|
itemView.context, when {
|
||||||
item.isLocked -> R.drawable.ic_lock_white_24dp
|
item.isLocked -> R.drawable.ic_lock_24dp
|
||||||
manga.favorite -> R.drawable.ic_heart_24dp
|
manga.favorite -> R.drawable.ic_heart_24dp
|
||||||
else -> R.drawable.ic_heart_outline_24dp
|
else -> R.drawable.ic_heart_outline_24dp
|
||||||
}
|
}
|
||||||
@ -199,7 +199,7 @@ class MangaHeaderHolder(
|
|||||||
|
|
||||||
icon = ContextCompat.getDrawable(
|
icon = ContextCompat.getDrawable(
|
||||||
itemView.context,
|
itemView.context,
|
||||||
if (tracked) R.drawable.ic_check_white_24dp else R.drawable.ic_sync_black_24dp
|
if (tracked) R.drawable.ic_check_24dp else R.drawable.ic_sync_24dp
|
||||||
)
|
)
|
||||||
checked(tracked)
|
checked(tracked)
|
||||||
}
|
}
|
||||||
@ -291,7 +291,7 @@ class MangaHeaderHolder(
|
|||||||
|
|
||||||
icon = ContextCompat.getDrawable(
|
icon = ContextCompat.getDrawable(
|
||||||
itemView.context, if (tracked) R.drawable
|
itemView.context, if (tracked) R.drawable
|
||||||
.ic_check_white_24dp else R.drawable.ic_sync_black_24dp
|
.ic_check_24dp else R.drawable.ic_sync_24dp
|
||||||
)
|
)
|
||||||
checked(tracked)
|
checked(tracked)
|
||||||
}
|
}
|
||||||
|
@ -453,7 +453,7 @@ class MigrationListController(bundle: Bundle? = null) : BaseController(bundle),
|
|||||||
|
|
||||||
if (adapter?.itemCount == 1) {
|
if (adapter?.itemCount == 1) {
|
||||||
menuMigrate.icon = VectorDrawableCompat.create(
|
menuMigrate.icon = VectorDrawableCompat.create(
|
||||||
resources!!, R.drawable.ic_done_white_24dp, null
|
resources!!, R.drawable.ic_done_24dp, null
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ class MigrationProcessHolder(
|
|||||||
val source = item.manga.mangaSource()
|
val source = item.manga.mangaSource()
|
||||||
|
|
||||||
migration_menu.setVectorCompat(
|
migration_menu.setVectorCompat(
|
||||||
R.drawable.ic_more_vert_black_24dp, view.context.getResourceColor(android.R.attr.textColorPrimary)
|
R.drawable.ic_more_vert_24dp, view.context.getResourceColor(android.R.attr.textColorPrimary)
|
||||||
)
|
)
|
||||||
skip_manga.setVectorCompat(
|
skip_manga.setVectorCompat(
|
||||||
R.drawable.ic_close_24dp, view.context.getResourceColor(
|
R.drawable.ic_close_24dp, view.context.getResourceColor(
|
||||||
|
@ -161,7 +161,7 @@ class RecentChaptersController(bundle: Bundle? = null) : BaseController(bundle),
|
|||||||
if (size > 0) {
|
if (size > 0) {
|
||||||
empty_view?.hide()
|
empty_view?.hide()
|
||||||
} else {
|
} else {
|
||||||
empty_view?.show(R.drawable.ic_update_black_128dp, R.string.no_recent_chapters)
|
empty_view?.show(R.drawable.ic_update_24dp, R.string.no_recent_chapters)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,9 +16,9 @@ import eu.kanade.tachiyomi.data.backup.BackupRestoreService
|
|||||||
import eu.kanade.tachiyomi.data.database.models.History
|
import eu.kanade.tachiyomi.data.database.models.History
|
||||||
import eu.kanade.tachiyomi.data.database.models.Manga
|
import eu.kanade.tachiyomi.data.database.models.Manga
|
||||||
import eu.kanade.tachiyomi.ui.base.controller.BaseController
|
import eu.kanade.tachiyomi.ui.base.controller.BaseController
|
||||||
import eu.kanade.tachiyomi.ui.source.browse.ProgressItem
|
|
||||||
import eu.kanade.tachiyomi.ui.manga.MangaDetailsController
|
import eu.kanade.tachiyomi.ui.manga.MangaDetailsController
|
||||||
import eu.kanade.tachiyomi.ui.reader.ReaderActivity
|
import eu.kanade.tachiyomi.ui.reader.ReaderActivity
|
||||||
|
import eu.kanade.tachiyomi.ui.source.browse.ProgressItem
|
||||||
import eu.kanade.tachiyomi.util.system.launchUI
|
import eu.kanade.tachiyomi.util.system.launchUI
|
||||||
import eu.kanade.tachiyomi.util.system.toast
|
import eu.kanade.tachiyomi.util.system.toast
|
||||||
import eu.kanade.tachiyomi.util.view.RecyclerWindowInsetsListener
|
import eu.kanade.tachiyomi.util.view.RecyclerWindowInsetsListener
|
||||||
@ -128,7 +128,7 @@ class RecentlyReadController(bundle: Bundle? = null) : BaseController(bundle),
|
|||||||
if (size > 0) {
|
if (size > 0) {
|
||||||
empty_view?.hide()
|
empty_view?.hide()
|
||||||
} else {
|
} else {
|
||||||
empty_view.show(R.drawable.ic_history_white_128dp, R.string
|
empty_view.show(R.drawable.ic_history_24dp, R.string
|
||||||
.no_recently_read_manga)
|
.no_recently_read_manga)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ class SettingsMainController : SettingsController() {
|
|||||||
val tintColor = context.getResourceColor(R.attr.colorAccent)
|
val tintColor = context.getResourceColor(R.attr.colorAccent)
|
||||||
|
|
||||||
preference {
|
preference {
|
||||||
iconRes = R.drawable.ic_tune_white_24dp
|
iconRes = R.drawable.ic_tune_24dp
|
||||||
iconTint = tintColor
|
iconTint = tintColor
|
||||||
titleRes = R.string.general
|
titleRes = R.string.general
|
||||||
onClick { navigateTo(SettingsGeneralController()) }
|
onClick { navigateTo(SettingsGeneralController()) }
|
||||||
@ -41,7 +41,7 @@ class SettingsMainController : SettingsController() {
|
|||||||
onClick { navigateTo(SettingsReaderController()) }
|
onClick { navigateTo(SettingsReaderController()) }
|
||||||
}
|
}
|
||||||
preference {
|
preference {
|
||||||
iconRes = R.drawable.ic_file_download_black_24dp
|
iconRes = R.drawable.ic_file_download_24dp
|
||||||
iconTint = tintColor
|
iconTint = tintColor
|
||||||
titleRes = R.string.downloads
|
titleRes = R.string.downloads
|
||||||
onClick { navigateTo(SettingsDownloadController()) }
|
onClick { navigateTo(SettingsDownloadController()) }
|
||||||
@ -53,25 +53,25 @@ class SettingsMainController : SettingsController() {
|
|||||||
onClick { navigateTo(SettingsBrowseController()) }
|
onClick { navigateTo(SettingsBrowseController()) }
|
||||||
}
|
}
|
||||||
preference {
|
preference {
|
||||||
iconRes = R.drawable.ic_sync_black_24dp
|
iconRes = R.drawable.ic_sync_24dp
|
||||||
iconTint = tintColor
|
iconTint = tintColor
|
||||||
titleRes = R.string.tracking
|
titleRes = R.string.tracking
|
||||||
onClick { navigateTo(SettingsTrackingController()) }
|
onClick { navigateTo(SettingsTrackingController()) }
|
||||||
}
|
}
|
||||||
preference {
|
preference {
|
||||||
iconRes = R.drawable.ic_backup_black_24dp
|
iconRes = R.drawable.ic_backup_24dp
|
||||||
iconTint = tintColor
|
iconTint = tintColor
|
||||||
titleRes = R.string.backup
|
titleRes = R.string.backup
|
||||||
onClick { navigateTo(SettingsBackupController()) }
|
onClick { navigateTo(SettingsBackupController()) }
|
||||||
}
|
}
|
||||||
preference {
|
preference {
|
||||||
iconRes = R.drawable.ic_code_black_24dp
|
iconRes = R.drawable.ic_code_24dp
|
||||||
iconTint = tintColor
|
iconTint = tintColor
|
||||||
titleRes = R.string.advanced
|
titleRes = R.string.advanced
|
||||||
onClick { navigateTo(SettingsAdvancedController()) }
|
onClick { navigateTo(SettingsAdvancedController()) }
|
||||||
}
|
}
|
||||||
preference {
|
preference {
|
||||||
iconRes = R.drawable.ic_info_black_24dp
|
iconRes = R.drawable.ic_info_24dp
|
||||||
iconTint = tintColor
|
iconTint = tintColor
|
||||||
titleRes = R.string.about
|
titleRes = R.string.about
|
||||||
onClick { navigateTo(AboutController()) }
|
onClick { navigateTo(AboutController()) }
|
||||||
|
@ -251,9 +251,9 @@ open class BrowseSourceController(bundle: Bundle) :
|
|||||||
// Show next display mode
|
// Show next display mode
|
||||||
menu.findItem(R.id.action_display_mode).apply {
|
menu.findItem(R.id.action_display_mode).apply {
|
||||||
val icon = if (presenter.isListMode)
|
val icon = if (presenter.isListMode)
|
||||||
R.drawable.ic_view_module_white_24dp
|
R.drawable.ic_view_module_24dp
|
||||||
else
|
else
|
||||||
R.drawable.ic_view_list_white_24dp
|
R.drawable.ic_view_list_24dp
|
||||||
setIcon(icon)
|
setIcon(icon)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ class GroupItem(val filter: Filter.Group<*>) : AbstractExpandableHeaderItem<Grou
|
|||||||
holder.icon.setVectorCompat(if (isExpanded)
|
holder.icon.setVectorCompat(if (isExpanded)
|
||||||
R.drawable.ic_expand_more_24dp
|
R.drawable.ic_expand_more_24dp
|
||||||
else
|
else
|
||||||
R.drawable.ic_chevron_right_white_24dp)
|
R.drawable.ic_chevron_right_24dp)
|
||||||
|
|
||||||
holder.itemView.setOnClickListener(holder)
|
holder.itemView.setOnClickListener(holder)
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ class SortGroup(val filter: Filter.Sort) : AbstractExpandableHeaderItem<SortGrou
|
|||||||
holder.icon.setVectorCompat(if (isExpanded)
|
holder.icon.setVectorCompat(if (isExpanded)
|
||||||
R.drawable.ic_expand_more_24dp
|
R.drawable.ic_expand_more_24dp
|
||||||
else
|
else
|
||||||
R.drawable.ic_chevron_right_white_24dp)
|
R.drawable.ic_chevron_right_24dp)
|
||||||
|
|
||||||
holder.itemView.setOnClickListener(holder)
|
holder.itemView.setOnClickListener(holder)
|
||||||
}
|
}
|
||||||
|
@ -35,9 +35,9 @@ class SortItem(val name: String, val group: SortGroup) : AbstractSectionableItem
|
|||||||
val i = filter.values.indexOf(name)
|
val i = filter.values.indexOf(name)
|
||||||
|
|
||||||
fun getIcon() = when (filter.state) {
|
fun getIcon() = when (filter.state) {
|
||||||
Filter.Sort.Selection(i, false) -> VectorDrawableCompat.create(view.resources, R.drawable.ic_arrow_down_white_32dp, null)
|
Filter.Sort.Selection(i, false) -> VectorDrawableCompat.create(view.resources, R.drawable.ic_arrow_down_32dp, null)
|
||||||
?.apply { setTint(view.context.getResourceColor(R.attr.colorAccent)) }
|
?.apply { setTint(view.context.getResourceColor(R.attr.colorAccent)) }
|
||||||
Filter.Sort.Selection(i, true) -> VectorDrawableCompat.create(view.resources, R.drawable.ic_arrow_up_white_32dp, null)
|
Filter.Sort.Selection(i, true) -> VectorDrawableCompat.create(view.resources, R.drawable.ic_arrow_up_32dp, null)
|
||||||
?.apply { setTint(view.context.getResourceColor(R.attr.colorAccent)) }
|
?.apply { setTint(view.context.getResourceColor(R.attr.colorAccent)) }
|
||||||
else -> ContextCompat.getDrawable(view.context, R.drawable.empty_drawable_32dp)
|
else -> ContextCompat.getDrawable(view.context, R.drawable.empty_drawable_32dp)
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ class CoverViewTarget(
|
|||||||
progress?.gone()
|
progress?.gone()
|
||||||
view.scaleType = ImageView.ScaleType.CENTER
|
view.scaleType = ImageView.ScaleType.CENTER
|
||||||
val vector = VectorDrawableCompat.create(
|
val vector = VectorDrawableCompat.create(
|
||||||
view.context.resources, R.drawable.ic_broken_image_grey_24dp, null
|
view.context.resources, R.drawable.ic_broken_image_24dp, null
|
||||||
)
|
)
|
||||||
vector?.setTint(view.context.getResourceColor(android.R.attr.textColorSecondary))
|
vector?.setTint(view.context.getResourceColor(android.R.attr.textColorSecondary))
|
||||||
view.setImageDrawable(vector)
|
view.setImageDrawable(vector)
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
package eu.kanade.tachiyomi.widget.preference
|
package eu.kanade.tachiyomi.widget.preference
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
|
import android.content.res.ColorStateList
|
||||||
|
import android.graphics.Color
|
||||||
import android.util.AttributeSet
|
import android.util.AttributeSet
|
||||||
import androidx.preference.Preference
|
import androidx.preference.Preference
|
||||||
import androidx.preference.PreferenceViewHolder
|
import androidx.preference.PreferenceViewHolder
|
||||||
@ -17,10 +19,12 @@ class LoginPreference @JvmOverloads constructor(context: Context, attrs: Attribu
|
|||||||
override fun onBindViewHolder(holder: PreferenceViewHolder) {
|
override fun onBindViewHolder(holder: PreferenceViewHolder) {
|
||||||
super.onBindViewHolder(holder)
|
super.onBindViewHolder(holder)
|
||||||
|
|
||||||
holder.itemView.image_view.setImageResource(if (getPersistedString("").isNullOrEmpty())
|
holder.itemView.image_view.setImageResource(
|
||||||
android.R.color.transparent
|
if (getPersistedString("").isNullOrEmpty()) android.R.color.transparent
|
||||||
else
|
else R.drawable.ic_done_24dp
|
||||||
R.drawable.ic_done_green_24dp)
|
)
|
||||||
|
holder.itemView.image_view.imageTintList =
|
||||||
|
ColorStateList.valueOf(Color.parseColor("#FF4CAF50"))
|
||||||
}
|
}
|
||||||
|
|
||||||
public override fun notifyChanged() {
|
public override fun notifyChanged() {
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:height="24dp"
|
|
||||||
android:width="24dp"
|
|
||||||
android:viewportWidth="24"
|
|
||||||
android:viewportHeight="24">
|
|
||||||
<path android:fillColor="#FFFFFF" android:pathData="M17,18V5H7V18L12,15.82L17,18M17,3A2,2 0 0,1 19,5V21L12,18L5,21V5C5,3.89 5.9,3 7,3H17M11,7H13V9H15V11H13V13H11V11H9V9H11V7Z" />
|
|
||||||
</vector>
|
|
@ -1,8 +0,0 @@
|
|||||||
<!-- drawable/alert_octagram.xml -->
|
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:height="24dp"
|
|
||||||
android:width="24dp"
|
|
||||||
android:viewportWidth="24"
|
|
||||||
android:viewportHeight="24">
|
|
||||||
<path android:fillColor="#000" android:pathData="M2.2,16.06L3.88,12L2.2,7.94L6.26,6.26L7.94,2.2L12,3.88L16.06,2.2L17.74,6.26L21.8,7.94L20.12,12L21.8,16.06L17.74,17.74L16.06,21.8L12,20.12L7.94,21.8L6.26,17.74L2.2,16.06M13,17V15H11V17H13M13,13V7H11V13H13Z" />
|
|
||||||
</vector>
|
|
@ -1,9 +0,0 @@
|
|||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:width="128dp"
|
|
||||||
android:height="128dp"
|
|
||||||
android:viewportWidth="24.0"
|
|
||||||
android:viewportHeight="24.0">
|
|
||||||
<path
|
|
||||||
android:fillColor="#FF000000"
|
|
||||||
android:pathData="M18,2H6c-1.1,0 -2,0.9 -2,2v16c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2V4c0,-1.1 -0.9,-2 -2,-2zM6,4h5v8l-2.5,-1.5L6,12V4z"/>
|
|
||||||
</vector>
|
|
@ -1,12 +0,0 @@
|
|||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:width="24dp"
|
|
||||||
android:height="24dp"
|
|
||||||
android:viewportWidth="24.0"
|
|
||||||
android:viewportHeight="24.0">
|
|
||||||
<path
|
|
||||||
android:pathData="M11.9,16.6l-4.6,-4.6l4.6,-4.6l-1.4,-1.4l-6,6l6,6z"
|
|
||||||
android:fillColor="#FF000000" />
|
|
||||||
<path
|
|
||||||
android:pathData="M18.9,16.6l-4.6,-4.6l4.6,-4.6l-1.4,-1.4l-6,6l6,6z"
|
|
||||||
android:fillColor="#FF000000" />
|
|
||||||
</vector>
|
|
@ -1,12 +0,0 @@
|
|||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:width="24dp"
|
|
||||||
android:height="24dp"
|
|
||||||
android:viewportWidth="24.0"
|
|
||||||
android:viewportHeight="24.0">
|
|
||||||
<path
|
|
||||||
android:pathData="M12.1,16.6l4.6,-4.6l-4.6,-4.6l1.4,-1.4l6,6l-6,6z"
|
|
||||||
android:fillColor="#FF000000" />
|
|
||||||
<path
|
|
||||||
android:pathData="M5.1,16.6l4.6,-4.6l-4.6,-4.6l1.4,-1.4l6,6l-6,6z"
|
|
||||||
android:fillColor="#FF000000" />
|
|
||||||
</vector>
|
|
@ -1,9 +0,0 @@
|
|||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:width="24dp"
|
|
||||||
android:height="24dp"
|
|
||||||
android:viewportWidth="24.0"
|
|
||||||
android:viewportHeight="24.0">
|
|
||||||
<path
|
|
||||||
android:fillColor="#FF4CAF50"
|
|
||||||
android:pathData="M9,16.2L4.8,12l-1.4,1.4L9,19 21,7l-1.4,-1.4L9,16.2z"/>
|
|
||||||
</vector>
|
|
9
app/src/main/res/drawable/ic_error_24dp.xml
Normal file
9
app/src/main/res/drawable/ic_error_24dp.xml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24.0"
|
||||||
|
android:viewportHeight="24.0">
|
||||||
|
<path
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM13,17h-2v-2h2v2zM13,13h-2L11,7h2v6z" />
|
||||||
|
</vector>
|
@ -1,5 +0,0 @@
|
|||||||
<vector android:height="24dp" android:tint="#898989"
|
|
||||||
android:viewportHeight="24.0" android:viewportWidth="24.0"
|
|
||||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<path android:fillColor="#FF000000" android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM13,17h-2v-2h2v2zM13,13h-2L11,7h2v6z"/>
|
|
||||||
</vector>
|
|
@ -1,5 +1,9 @@
|
|||||||
<vector android:height="24dp" android:tint="#FFFFFF"
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:viewportHeight="24.0" android:viewportWidth="24.0"
|
android:width="24dp"
|
||||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
android:height="24dp"
|
||||||
<path android:fillColor="#FF000000" android:pathData="M12,8l-6,6 1.41,1.41L12,10.83l4.59,4.58L18,14z"/>
|
android:viewportWidth="24.0"
|
||||||
|
android:viewportHeight="24.0">
|
||||||
|
<path
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M12,8l-6,6 1.41,1.41L12,10.83l4.59,4.58L18,14z" />
|
||||||
</vector>
|
</vector>
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:width="24dp"
|
android:width="24dp"
|
||||||
android:height="24dp"
|
android:height="24dp"
|
||||||
|
android:tint="?actionBarTintColor"
|
||||||
android:viewportWidth="24.0"
|
android:viewportWidth="24.0"
|
||||||
android:viewportHeight="24.0">
|
android:viewportHeight="24.0">
|
||||||
<path
|
<path
|
||||||
android:fillColor="#FF000000"
|
android:fillColor="#FF000000"
|
||||||
android:pathData="M10,6L8.59,7.41 13.17,12l-4.58,4.59L10,18l6,-6z" />
|
android:pathData="M19,9h-4V3H9v6H5l7,7 7,-7zM5,18v2h14v-2H5z" />
|
||||||
</vector>
|
</vector>
|
@ -1,9 +0,0 @@
|
|||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:width="128dp"
|
|
||||||
android:height="128dp"
|
|
||||||
android:viewportWidth="24.0"
|
|
||||||
android:viewportHeight="24.0">
|
|
||||||
<path
|
|
||||||
android:fillColor="#FF000000"
|
|
||||||
android:pathData="M19,9h-4V3H9v6H5l7,7 7,-7zM5,18v2h14v-2H5z"/>
|
|
||||||
</vector>
|
|
@ -1,9 +0,0 @@
|
|||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:width="24dp"
|
|
||||||
android:height="24dp"
|
|
||||||
android:viewportWidth="24.0"
|
|
||||||
android:viewportHeight="24.0">
|
|
||||||
<path
|
|
||||||
android:fillColor="#FF000000"
|
|
||||||
android:pathData="M19,9h-4V3H9v6H5l7,7 7,-7zM5,18v2h14v-2H5z"/>
|
|
||||||
</vector>
|
|
@ -1,10 +0,0 @@
|
|||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:width="24dp"
|
|
||||||
android:height="24dp"
|
|
||||||
android:viewportWidth="24.0"
|
|
||||||
android:viewportHeight="24.0"
|
|
||||||
android:tint="?attr/actionBarTintColor">
|
|
||||||
<path
|
|
||||||
android:fillColor="#FFFFFFFF"
|
|
||||||
android:pathData="M19,9h-4V3H9v6H5l7,7 7,-7zM5,18v2h14v-2H5z"/>
|
|
||||||
</vector>
|
|
@ -1,9 +0,0 @@
|
|||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:width="24dp"
|
|
||||||
android:height="24dp"
|
|
||||||
android:viewportWidth="24.0"
|
|
||||||
android:viewportHeight="24.0">
|
|
||||||
<path
|
|
||||||
android:fillColor="#FF000000"
|
|
||||||
android:pathData="M3,10C2.76,10 2.55,10.09 2.41,10.25C2.27,10.4 2.21,10.62 2.24,10.86L2.74,13.85C2.82,14.5 3.4,15 4,15H7C7.64,15 8.36,14.44 8.5,13.82L9.56,10.63C9.6,10.5 9.57,10.31 9.5,10.19C9.39,10.07 9.22,10 9,10H3M7,17H4C2.38,17 0.96,15.74 0.76,14.14L0.26,11.15C0.15,10.3 0.39,9.5 0.91,8.92C1.43,8.34 2.19,8 3,8H9C9.83,8 10.58,8.35 11.06,8.96C11.17,9.11 11.27,9.27 11.35,9.45C11.78,9.36 12.22,9.36 12.64,9.45C12.72,9.27 12.82,9.11 12.94,8.96C13.41,8.35 14.16,8 15,8H21C21.81,8 22.57,8.34 23.09,8.92C23.6,9.5 23.84,10.3 23.74,11.11L23.23,14.18C23.04,15.74 21.61,17 20,17H17C15.44,17 13.92,15.81 13.54,14.3L12.64,11.59C12.26,11.31 11.73,11.31 11.35,11.59L10.43,14.37C10.07,15.82 8.56,17 7,17M15,10C14.78,10 14.61,10.07 14.5,10.19C14.42,10.31 14.4,10.5 14.45,10.7L15.46,13.75C15.64,14.44 16.36,15 17,15H20C20.59,15 21.18,14.5 21.25,13.89L21.76,10.82C21.79,10.62 21.73,10.4 21.59,10.25C21.45,10.09 21.24,10 21,10H15Z"/>
|
|
||||||
</vector>
|
|
10
app/src/main/res/drawable/ic_history_24dp.xml
Normal file
10
app/src/main/res/drawable/ic_history_24dp.xml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:tint="?attr/actionBarTintColor"
|
||||||
|
android:viewportWidth="24.0"
|
||||||
|
android:viewportHeight="24.0">
|
||||||
|
<path
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M13,3c-4.97,0 -9,4.03 -9,9L1,12l3.89,3.89 0.07,0.14L9,12L6,12c0,-3.87 3.13,-7 7,-7s7,3.13 7,7 -3.13,7 -7,7c-1.93,0 -3.68,-0.79 -4.94,-2.06l-1.42,1.42C8.27,19.99 10.51,21 13,21c4.97,0 9,-4.03 9,-9s-4.03,-9 -9,-9zM12,8v5l4.28,2.54 0.72,-1.21 -3.5,-2.08L13.5,8L12,8z" />
|
||||||
|
</vector>
|
@ -1,6 +0,0 @@
|
|||||||
<vector android:height="24dp"
|
|
||||||
android:tint="?attr/actionBarTintColor"
|
|
||||||
android:viewportHeight="24.0" android:viewportWidth="24.0"
|
|
||||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<path android:fillColor="#FF000000" android:pathData="M13,3c-4.97,0 -9,4.03 -9,9L1,12l3.89,3.89 0.07,0.14L9,12L6,12c0,-3.87 3.13,-7 7,-7s7,3.13 7,7 -3.13,7 -7,7c-1.93,0 -3.68,-0.79 -4.94,-2.06l-1.42,1.42C8.27,19.99 10.51,21 13,21c4.97,0 9,-4.03 9,-9s-4.03,-9 -9,-9zM12,8v5l4.28,2.54 0.72,-1.21 -3.5,-2.08L13.5,8L12,8z"/>
|
|
||||||
</vector>
|
|
@ -1,6 +0,0 @@
|
|||||||
<vector android:height="128dp"
|
|
||||||
android:tint="?attr/actionBarTintColor"
|
|
||||||
android:viewportHeight="24.0" android:viewportWidth="24.0"
|
|
||||||
android:width="128dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<path android:fillColor="#FF000000" android:pathData="M13,3c-4.97,0 -9,4.03 -9,9L1,12l3.89,3.89 0.07,0.14L9,12L6,12c0,-3.87 3.13,-7 7,-7s7,3.13 7,7 -3.13,7 -7,7c-1.93,0 -3.68,-0.79 -4.94,-2.06l-1.42,1.42C8.27,19.99 10.51,21 13,21c4.97,0 9,-4.03 9,-9s-4.03,-9 -9,-9zM12,8v5l4.28,2.54 0.72,-1.21 -3.5,-2.08L13.5,8L12,8z"/>
|
|
||||||
</vector>
|
|
@ -5,5 +5,5 @@
|
|||||||
android:viewportHeight="24.0">
|
android:viewportHeight="24.0">
|
||||||
<path
|
<path
|
||||||
android:fillColor="#FF000000"
|
android:fillColor="#FF000000"
|
||||||
android:pathData="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z" />
|
android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM13,17h-2v-6h2v6zM13,9h-2L11,7h2v2z" />
|
||||||
</vector>
|
</vector>
|
@ -1,5 +0,0 @@
|
|||||||
<vector android:height="24dp" android:tint="#000000"
|
|
||||||
android:viewportHeight="24.0" android:viewportWidth="24.0"
|
|
||||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<path android:fillColor="#FF000000" android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM13,17h-2v-6h2v6zM13,9h-2L11,7h2v2z"/>
|
|
||||||
</vector>
|
|
@ -1,10 +0,0 @@
|
|||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:width="24dp"
|
|
||||||
android:height="24dp"
|
|
||||||
android:viewportWidth="24.0"
|
|
||||||
android:viewportHeight="24.0"
|
|
||||||
android:tint="?attr/colorControlNormal">
|
|
||||||
<path
|
|
||||||
android:fillColor="@android:color/white"
|
|
||||||
android:pathData="M8.59,16.34l4.58,-4.59 -4.58,-4.59L10,5.75l6,6 -6,6z"/>
|
|
||||||
</vector>
|
|
@ -1,5 +0,0 @@
|
|||||||
<vector android:height="24dp" android:tint="#FFFFFF"
|
|
||||||
android:viewportHeight="24.0" android:viewportWidth="24.0"
|
|
||||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<path android:fillColor="#FF000000" android:pathData="M6,18l8.5,-6L6,6v12zM16,6v12h2V6h-2z"/>
|
|
||||||
</vector>
|
|
@ -1,9 +0,0 @@
|
|||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:width="24dp"
|
|
||||||
android:height="24dp"
|
|
||||||
android:viewportWidth="24.0"
|
|
||||||
android:viewportHeight="24.0">
|
|
||||||
<path
|
|
||||||
android:fillColor="#FFFFFFFF"
|
|
||||||
android:pathData="M6,6h2v12L6,18zM9.5,12l8.5,6L18,6z"/>
|
|
||||||
</vector>
|
|
@ -1,6 +1,6 @@
|
|||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:width="256dp"
|
android:width="196dp"
|
||||||
android:height="256dp"
|
android:height="196dp"
|
||||||
android:tint="#FFFFFF"
|
android:tint="#FFFFFF"
|
||||||
android:viewportWidth="256"
|
android:viewportWidth="256"
|
||||||
android:viewportHeight="256">
|
android:viewportHeight="256">
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:width="128dp"
|
|
||||||
android:height="128dp"
|
|
||||||
android:viewportWidth="24.0"
|
|
||||||
android:viewportHeight="24.0">
|
|
||||||
<path
|
|
||||||
android:fillColor="#FF000000"
|
|
||||||
android:pathData="M21,10.12h-6.78l2.74,-2.82c-2.73,-2.7 -7.15,-2.8 -9.88,-0.1 -2.73,2.71 -2.73,7.08 0,9.79 2.73,2.71 7.15,2.71 9.88,0C18.32,15.65 19,14.08 19,12.1h2c0,1.98 -0.88,4.55 -2.64,6.29 -3.51,3.48 -9.21,3.48 -12.72,0 -3.5,-3.47 -3.53,-9.11 -0.02,-12.58 3.51,-3.47 9.14,-3.47 12.65,0L21,3v7.12zM12.5,8v4.25l3.5,2.08 -0.72,1.21L11,13V8h1.5z"/>
|
|
||||||
</vector>
|
|
@ -28,7 +28,7 @@
|
|||||||
android:id="@+id/fab"
|
android:id="@+id/fab"
|
||||||
style="@style/Theme.Widget.FAB"
|
style="@style/Theme.Widget.FAB"
|
||||||
android:text="@string/filter"
|
android:text="@string/filter"
|
||||||
app:icon="@drawable/ic_filter_list_white_24dp"/>
|
app:icon="@drawable/ic_filter_list_24dp"/>
|
||||||
|
|
||||||
<eu.kanade.tachiyomi.widget.EmptyView
|
<eu.kanade.tachiyomi.widget.EmptyView
|
||||||
android:id="@+id/empty_view"
|
android:id="@+id/empty_view"
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:srcCompat="@drawable/ic_drag_handle_black_24dp" />
|
app:srcCompat="@drawable/ic_drag_handle_24dp" />
|
||||||
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
@ -25,7 +25,7 @@
|
|||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:tint="@color/gray_button"
|
android:tint="@color/gray_button"
|
||||||
android:src="@drawable/ic_label_outline_white_24dp"
|
android:src="@drawable/ic_label_outline_24dp"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
android:layout_marginEnd="6dp"
|
android:layout_marginEnd="6dp"
|
||||||
app:layout_constraintStart_toEndOf="@+id/reorder"
|
app:layout_constraintStart_toEndOf="@+id/reorder"
|
||||||
@ -38,7 +38,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginEnd="12dp"
|
android:layout_marginEnd="12dp"
|
||||||
android:src="@drawable/ic_edit_white_24dp"
|
android:src="@drawable/ic_edit_24dp"
|
||||||
android:tint="@color/gray_button"
|
android:tint="@color/gray_button"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
android:layout_marginEnd="20dp"
|
android:layout_marginEnd="20dp"
|
||||||
android:background="@null"
|
android:background="@null"
|
||||||
android:padding="5dp"
|
android:padding="5dp"
|
||||||
android:src="@drawable/ic_filter_list_white_24dp"
|
android:src="@drawable/ic_filter_list_24dp"
|
||||||
android:tint="?colorAccent"
|
android:tint="?colorAccent"
|
||||||
app:layout_constraintBottom_toBottomOf="@id/chapters_title"
|
app:layout_constraintBottom_toBottomOf="@id/chapters_title"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
android:id="@+id/image_view"
|
android:id="@+id/image_view"
|
||||||
android:layout_width="128dp"
|
android:layout_width="128dp"
|
||||||
android:layout_height="128dp"
|
android:layout_height="128dp"
|
||||||
tools:src="@drawable/ic_file_download_white_24dp"/>
|
tools:src="@drawable/ic_file_download_24dp"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/text_label"
|
android:id="@+id/text_label"
|
||||||
|
@ -45,5 +45,5 @@
|
|||||||
android:layout_height="30dp"
|
android:layout_height="30dp"
|
||||||
android:background="@drawable/round_ripple"
|
android:background="@drawable/round_ripple"
|
||||||
android:padding="5dp"
|
android:padding="5dp"
|
||||||
android:src="@drawable/ic_arrow_down_white_24dp" />
|
android:src="@drawable/ic_arrow_down_24dp" />
|
||||||
</eu.kanade.tachiyomi.ui.download.DownloadButton>
|
</eu.kanade.tachiyomi.ui.download.DownloadButton>
|
@ -59,7 +59,7 @@
|
|||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:srcCompat="@drawable/ic_drag_handle_black_24dp" />
|
app:srcCompat="@drawable/ic_drag_handle_24dp" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/title"
|
android:id="@+id/title"
|
||||||
@ -126,7 +126,7 @@
|
|||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:srcCompat="@drawable/ic_more_vert_black_24dp" />
|
app:srcCompat="@drawable/ic_more_vert_24dp" />
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
</FrameLayout>
|
</FrameLayout>
|
@ -78,7 +78,7 @@
|
|||||||
android:layout_marginEnd="10dp"
|
android:layout_marginEnd="10dp"
|
||||||
android:text="@string/group_library_by"
|
android:text="@string/group_library_by"
|
||||||
android:textColor="?android:attr/textColorPrimary"
|
android:textColor="?android:attr/textColorPrimary"
|
||||||
app:icon="@drawable/ic_label_outline_white_24dp"
|
app:icon="@drawable/ic_label_outline_24dp"
|
||||||
app:iconTint="?android:attr/textColorPrimary" />
|
app:iconTint="?android:attr/textColorPrimary" />
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
@ -118,7 +118,7 @@
|
|||||||
android:layout_marginStart="10dp"
|
android:layout_marginStart="10dp"
|
||||||
android:text="@string/display_options"
|
android:text="@string/display_options"
|
||||||
android:textColor="?android:attr/textColorPrimary"
|
android:textColor="?android:attr/textColorPrimary"
|
||||||
app:icon="@drawable/ic_tune_white_24dp"
|
app:icon="@drawable/ic_tune_24dp"
|
||||||
app:iconTint="?android:attr/textColorPrimary" />
|
app:iconTint="?android:attr/textColorPrimary" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
android:contentDescription="@string/select_all"
|
android:contentDescription="@string/select_all"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:padding="5dp"
|
android:padding="5dp"
|
||||||
android:src="@drawable/ic_check_circle_white_24dp"
|
android:src="@drawable/ic_check_circle_24dp"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/category_title"
|
app:layout_constraintBottom_toBottomOf="@+id/category_title"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
@ -97,7 +97,7 @@
|
|||||||
android:layout_marginEnd="0dp"
|
android:layout_marginEnd="0dp"
|
||||||
android:background="@drawable/square_ripple"
|
android:background="@drawable/square_ripple"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:drawableEnd="@drawable/ic_sort_white_24dp"
|
android:drawableEnd="@drawable/ic_sort_24dp"
|
||||||
android:drawablePadding="6dp"
|
android:drawablePadding="6dp"
|
||||||
android:drawableTint="@color/gray_button"
|
android:drawableTint="@color/gray_button"
|
||||||
android:ellipsize="start"
|
android:ellipsize="start"
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
android:background="@drawable/round_play_background"
|
android:background="@drawable/round_play_background"
|
||||||
android:contentDescription="@string/start_reading"
|
android:contentDescription="@string/start_reading"
|
||||||
android:padding="6dp"
|
android:padding="6dp"
|
||||||
android:src="@drawable/ic_start_reading_white_24dp"
|
android:src="@drawable/ic_start_reading_24dp"
|
||||||
android:tint="@android:color/white" />
|
android:tint="@android:color/white" />
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
@ -181,7 +181,7 @@
|
|||||||
style="@style/Theme.Widget.Button.RoundedOutline"
|
style="@style/Theme.Widget.Button.RoundedOutline"
|
||||||
android:layout_marginStart="6dp"
|
android:layout_marginStart="6dp"
|
||||||
android:text="@string/tracking"
|
android:text="@string/tracking"
|
||||||
app:icon="@drawable/ic_sync_black_24dp" />
|
app:icon="@drawable/ic_sync_24dp" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/webview_button"
|
android:id="@+id/webview_button"
|
||||||
@ -193,7 +193,7 @@
|
|||||||
android:layout_marginEnd="6dp"
|
android:layout_marginEnd="6dp"
|
||||||
android:contentDescription="@string/open_in_webview"
|
android:contentDescription="@string/open_in_webview"
|
||||||
android:padding="5dp"
|
android:padding="5dp"
|
||||||
android:src="@drawable/ic_open_in_webview_white_24dp"
|
android:src="@drawable/ic_open_in_webview_24dp"
|
||||||
android:tooltipText="@string/open_in_webview" />
|
android:tooltipText="@string/open_in_webview" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
@ -381,7 +381,7 @@
|
|||||||
android:layout_marginEnd="12dp"
|
android:layout_marginEnd="12dp"
|
||||||
android:background="@null"
|
android:background="@null"
|
||||||
android:padding="5dp"
|
android:padding="5dp"
|
||||||
android:src="@drawable/ic_filter_list_white_24dp"
|
android:src="@drawable/ic_filter_list_24dp"
|
||||||
android:tint="?colorAccent"
|
android:tint="?colorAccent"
|
||||||
app:layout_constraintBottom_toBottomOf="@id/chapters_title"
|
app:layout_constraintBottom_toBottomOf="@id/chapters_title"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
@ -31,5 +31,5 @@
|
|||||||
android:tint="@color/colorAccent"
|
android:tint="@color/colorAccent"
|
||||||
android:visibility="invisible"
|
android:visibility="invisible"
|
||||||
tools:visibility="visible"
|
tools:visibility="visible"
|
||||||
android:src="@drawable/ic_arrow_up_white_24dp" />
|
android:src="@drawable/ic_arrow_up_24dp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
@ -152,7 +152,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginEnd="10dp"
|
android:layout_marginEnd="10dp"
|
||||||
android:src="@drawable/ic_arrow_forward_white_24dp"
|
android:src="@drawable/ic_arrow_forward_24dp"
|
||||||
app:layout_anchor="@id/constraint_layout"
|
app:layout_anchor="@id/constraint_layout"
|
||||||
app:layout_anchorGravity="bottom|end"
|
app:layout_anchorGravity="bottom|end"
|
||||||
app:layout_constraintBottom_toBottomOf="@id/fab_guider"
|
app:layout_constraintBottom_toBottomOf="@id/fab_guider"
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
app:layout_constraintHorizontal_bias="0.5"
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
app:layout_constraintStart_toEndOf="@+id/migration_manga_card_from"
|
app:layout_constraintStart_toEndOf="@+id/migration_manga_card_from"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:srcCompat="@drawable/ic_keyboard_arrow_right_black_24dp" />
|
app:srcCompat="@drawable/ic_chevron_right_24dp" />
|
||||||
|
|
||||||
<include
|
<include
|
||||||
android:id="@+id/migration_manga_card_to"
|
android:id="@+id/migration_manga_card_to"
|
||||||
@ -57,7 +57,7 @@
|
|||||||
app:layout_constraintHorizontal_bias="0.5"
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
app:layout_constraintStart_toEndOf="@+id/migration_manga_card_to"
|
app:layout_constraintStart_toEndOf="@+id/migration_manga_card_to"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:srcCompat="@drawable/ic_more_vert_black_24dp"
|
app:srcCompat="@drawable/ic_more_vert_24dp"
|
||||||
android:visibility="invisible"/>
|
android:visibility="invisible"/>
|
||||||
|
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
android:layout_height="@dimen/material_component_lists_single_line_with_avatar_height"
|
android:layout_height="@dimen/material_component_lists_single_line_with_avatar_height"
|
||||||
android:scaleType="center"
|
android:scaleType="center"
|
||||||
android:layout_gravity="end"
|
android:layout_gravity="end"
|
||||||
app:srcCompat="@drawable/ic_drag_handle_black_24dp"
|
app:srcCompat="@drawable/ic_drag_handle_24dp"
|
||||||
android:tint="?android:attr/textColorPrimary"/>
|
android:tint="?android:attr/textColorPrimary"/>
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
@ -23,7 +23,7 @@
|
|||||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||||
android:id="@+id/fab"
|
android:id="@+id/fab"
|
||||||
style="@style/Theme.Widget.FAB"
|
style="@style/Theme.Widget.FAB"
|
||||||
android:src="@drawable/ic_arrow_forward_white_24dp"
|
android:src="@drawable/ic_arrow_forward_24dp"
|
||||||
app:layout_anchor="@id/recycler"
|
app:layout_anchor="@id/recycler"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent" />
|
app:layout_constraintEnd_toEndOf="parent" />
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user