PreferenceKeys.kt 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. package eu.kanade.tachiyomi.data.preference
  2. /**
  3. * This class stores the keys for the preferences in the application.
  4. */
  5. object PreferenceKeys {
  6. const val theme = "pref_theme_key"
  7. const val rotation = "pref_rotation_type_key"
  8. const val enableTransitions = "pref_enable_transitions_key"
  9. const val doubleTapAnimationSpeed = "pref_double_tap_anim_speed"
  10. const val showPageNumber = "pref_show_page_number_key"
  11. const val trueColor = "pref_true_color_key"
  12. const val fullscreen = "fullscreen"
  13. const val keepScreenOn = "pref_keep_screen_on_key"
  14. const val customBrightness = "pref_custom_brightness_key"
  15. const val customBrightnessValue = "custom_brightness_value"
  16. const val colorFilter = "pref_color_filter_key"
  17. const val colorFilterValue = "color_filter_value"
  18. const val colorFilterMode = "color_filter_mode"
  19. const val defaultViewer = "pref_default_viewer_key"
  20. const val imageScaleType = "pref_image_scale_type_key"
  21. const val zoomStart = "pref_zoom_start_key"
  22. const val readerTheme = "pref_reader_theme_key"
  23. const val cropBorders = "crop_borders"
  24. const val cropBordersWebtoon = "crop_borders_webtoon"
  25. const val readWithTapping = "reader_tap"
  26. const val readWithLongTap = "reader_long_tap"
  27. const val readWithVolumeKeys = "reader_volume_keys"
  28. const val readWithVolumeKeysInverted = "reader_volume_keys_inverted"
  29. const val portraitColumns = "pref_library_columns_portrait_key"
  30. const val landscapeColumns = "pref_library_columns_landscape_key"
  31. const val updateOnlyNonCompleted = "pref_update_only_non_completed_key"
  32. const val autoUpdateTrack = "pref_auto_update_manga_sync_key"
  33. const val lastUsedCatalogueSource = "last_catalogue_source"
  34. const val lastUsedCategory = "last_used_category"
  35. const val catalogueAsList = "pref_display_catalogue_as_list"
  36. const val enabledLanguages = "source_languages"
  37. const val backupDirectory = "backup_directory"
  38. const val downloadsDirectory = "download_directory"
  39. const val downloadOnlyOverWifi = "pref_download_only_over_wifi_key"
  40. const val numberOfBackups = "backup_slots"
  41. const val backupInterval = "backup_interval"
  42. const val removeAfterReadSlots = "remove_after_read_slots"
  43. const val removeAfterMarkedAsRead = "pref_remove_after_marked_as_read_key"
  44. const val libraryUpdateInterval = "pref_library_update_interval_key"
  45. const val libraryUpdateRestriction = "library_update_restriction"
  46. const val libraryUpdateCategories = "library_update_categories"
  47. const val libraryUpdatePrioritization = "library_update_prioritization"
  48. const val filterDownloaded = "pref_filter_downloaded_key"
  49. const val filterUnread = "pref_filter_unread_key"
  50. const val filterCompleted = "pref_filter_completed_key"
  51. const val librarySortingMode = "library_sorting_mode"
  52. const val automaticUpdates = "automatic_updates"
  53. const val startScreen = "start_screen"
  54. const val downloadNew = "download_new"
  55. const val downloadNewCategories = "download_new_categories"
  56. const val libraryAsList = "pref_display_library_as_list"
  57. const val lang = "app_language"
  58. const val defaultCategory = "default_category"
  59. const val skipRead = "skip_read"
  60. const val downloadBadge = "display_download_badge"
  61. @Deprecated("Use the preferences of the source")
  62. fun sourceUsername(sourceId: Long) = "pref_source_username_$sourceId"
  63. @Deprecated("Use the preferences of the source")
  64. fun sourcePassword(sourceId: Long) = "pref_source_password_$sourceId"
  65. fun sourceSharedPref(sourceId: Long) = "source_$sourceId"
  66. fun trackUsername(syncId: Int) = "pref_mangasync_username_$syncId"
  67. fun trackPassword(syncId: Int) = "pref_mangasync_password_$syncId"
  68. fun trackToken(syncId: Int) = "track_token_$syncId"
  69. }