diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt index d30bf879bf..e1c71eea73 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt @@ -128,7 +128,8 @@ class ReaderActivity : BaseRxActivity() setTheme( when (preferences.readerTheme().get()) { 0 -> R.style.Theme_Reader_Light - else -> R.style.Theme_Reader + 2 -> R.style.Theme_Reader_Dark_Grey + else -> R.style.Theme_Reader_Dark } ) super.onCreate(savedInstanceState) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt index b69a6e5034..00839dc561 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt @@ -81,7 +81,7 @@ class ReaderSettingsSheet(private val activity: ReaderActivity) : BottomSheetDia viewer.setSelection(activity.presenter.manga?.viewer ?: 0, false) rotation_mode.bindToPreference(preferences.rotation(), 1) - background_color.bindToPreference(preferences.readerTheme()) + background_color.bindToIntPreference(preferences.readerTheme(), R.array.reader_themes_values) show_page_number.bindToPreference(preferences.showPageNumber()) fullscreen.bindToPreference(preferences.fullscreen()) cutout_short.bindToPreference(preferences.cutoutShort()) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsReaderController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsReaderController.kt index c8900a9f4a..b341fba317 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsReaderController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsReaderController.kt @@ -68,8 +68,8 @@ class SettingsReaderController : SettingsController() { intListPreference { key = Keys.readerTheme titleRes = R.string.pref_reader_theme - entriesRes = arrayOf(R.string.white_background, R.string.black_background) - entryValues = arrayOf("0", "1") + entriesRes = arrayOf(R.string.black_background, R.string.gray_background, R.string.white_background) + entryValues = arrayOf("1", "2", "0") defaultValue = "1" summary = "%s" } diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index af08b8abc9..cc83d497ed 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -24,13 +24,15 @@ - @string/white_background @string/black_background + @string/gray_background + @string/white_background - 0 1 + 2 + 0 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ba7c51562d..9af80d36e5 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -240,6 +240,7 @@ Long tap dialog Background color White + Gray Black Default viewer Default diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 6d27d0d80f..e48c2f70e4 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -217,13 +217,13 @@ @style/Theme.Widget.BasicSwitch - - +