mirror of
https://github.com/mihonapp/mihon.git
synced 2025-06-25 10:37:51 +02:00
Add gray reader background option (closes #3019)
This commit is contained in:
@ -128,7 +128,8 @@ class ReaderActivity : BaseRxActivity<ReaderActivityBinding, ReaderPresenter>()
|
||||
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)
|
||||
|
@ -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())
|
||||
|
@ -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"
|
||||
}
|
||||
|
Reference in New Issue
Block a user