Add toggle to invert page color in reader color filter settings (#5713)

This commit is contained in:
Hunter Nickel
2021-08-15 08:58:01 -06:00
committed by GitHub
parent 2b9dbfb390
commit 4c8dfd0c0c
6 changed files with 39 additions and 8 deletions

View File

@@ -53,6 +53,8 @@ object PreferenceKeys {
const val grayscale = "pref_grayscale"
const val invertedColors = "pref_inverted_colors"
const val defaultReadingMode = "pref_default_reading_mode_key"
const val defaultOrientationType = "pref_default_orientation_type_key"

View File

@@ -129,6 +129,8 @@ class PreferencesHelper(val context: Context) {
fun grayscale() = flowPrefs.getBoolean(Keys.grayscale, false)
fun invertedColors() = flowPrefs.getBoolean(Keys.invertedColors, false)
fun defaultReadingMode() = prefs.getInt(Keys.defaultReadingMode, ReadingModeType.RIGHT_TO_LEFT.flagValue)
fun defaultOrientationType() = prefs.getInt(Keys.defaultOrientationType, OrientationType.FREE.flagValue)