123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- package eu.kanade.tachiyomi.data.preference
- /**
- * This class stores the keys for the preferences in the application.
- */
- object PreferenceKeys {
- const val theme = "pref_theme_key"
- const val rotation = "pref_rotation_type_key"
- const val enableTransitions = "pref_enable_transitions_key"
- const val doubleTapAnimationSpeed = "pref_double_tap_anim_speed"
- const val showPageNumber = "pref_show_page_number_key"
- const val trueColor = "pref_true_color_key"
- const val fullscreen = "fullscreen"
- const val keepScreenOn = "pref_keep_screen_on_key"
- const val customBrightness = "pref_custom_brightness_key"
- const val customBrightnessValue = "custom_brightness_value"
- const val colorFilter = "pref_color_filter_key"
- const val colorFilterValue = "color_filter_value"
- const val colorFilterMode = "color_filter_mode"
- const val defaultViewer = "pref_default_viewer_key"
- const val imageScaleType = "pref_image_scale_type_key"
- const val zoomStart = "pref_zoom_start_key"
- const val readerTheme = "pref_reader_theme_key"
- const val cropBorders = "crop_borders"
- const val cropBordersWebtoon = "crop_borders_webtoon"
- const val readWithTapping = "reader_tap"
- const val readWithLongTap = "reader_long_tap"
- const val readWithVolumeKeys = "reader_volume_keys"
- const val readWithVolumeKeysInverted = "reader_volume_keys_inverted"
- const val portraitColumns = "pref_library_columns_portrait_key"
- const val landscapeColumns = "pref_library_columns_landscape_key"
- const val updateOnlyNonCompleted = "pref_update_only_non_completed_key"
- const val autoUpdateTrack = "pref_auto_update_manga_sync_key"
- const val lastUsedCatalogueSource = "last_catalogue_source"
- const val lastUsedCategory = "last_used_category"
- const val catalogueAsList = "pref_display_catalogue_as_list"
- const val enabledLanguages = "source_languages"
- const val backupDirectory = "backup_directory"
- const val downloadsDirectory = "download_directory"
- const val downloadOnlyOverWifi = "pref_download_only_over_wifi_key"
- const val numberOfBackups = "backup_slots"
- const val backupInterval = "backup_interval"
- const val removeAfterReadSlots = "remove_after_read_slots"
- const val removeAfterMarkedAsRead = "pref_remove_after_marked_as_read_key"
- const val libraryUpdateInterval = "pref_library_update_interval_key"
- const val libraryUpdateRestriction = "library_update_restriction"
- const val libraryUpdateCategories = "library_update_categories"
- const val libraryUpdatePrioritization = "library_update_prioritization"
- const val filterDownloaded = "pref_filter_downloaded_key"
- const val filterUnread = "pref_filter_unread_key"
- const val filterCompleted = "pref_filter_completed_key"
- const val librarySortingMode = "library_sorting_mode"
- const val automaticUpdates = "automatic_updates"
- const val startScreen = "start_screen"
- const val downloadNew = "download_new"
- const val downloadNewCategories = "download_new_categories"
- const val libraryAsList = "pref_display_library_as_list"
- const val lang = "app_language"
- const val defaultCategory = "default_category"
- const val skipRead = "skip_read"
- const val downloadBadge = "display_download_badge"
- @Deprecated("Use the preferences of the source")
- fun sourceUsername(sourceId: Long) = "pref_source_username_$sourceId"
- @Deprecated("Use the preferences of the source")
- fun sourcePassword(sourceId: Long) = "pref_source_password_$sourceId"
- fun sourceSharedPref(sourceId: Long) = "source_$sourceId"
- fun trackUsername(syncId: Int) = "pref_mangasync_username_$syncId"
- fun trackPassword(syncId: Int) = "pref_mangasync_password_$syncId"
- fun trackToken(syncId: Int) = "track_token_$syncId"
- }
|