mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-17 16:49:18 +01:00
Added tickers in the reader page slider
Default setting is off, under the reader page
This commit is contained in:
parent
5f378e28b6
commit
51910dc65a
@ -153,6 +153,8 @@ class PreferencesHelper(val context: Context) {
|
||||
|
||||
fun showNavigationOverlayOnStart() = flowPrefs.getBoolean("reader_navigation_overlay_on_start", false)
|
||||
|
||||
fun showSliderTickers() = flowPrefs.getBoolean("reader_slider_tickers", false)
|
||||
|
||||
fun readerHideThreshold() = flowPrefs.getEnum("reader_hide_threshold", Values.ReaderHideThreshold.LOW)
|
||||
|
||||
fun portraitColumns() = flowPrefs.getInt("pref_library_columns_portrait_key", 0)
|
||||
|
@ -640,6 +640,7 @@ class ReaderActivity : BaseRxActivity<ReaderPresenter>() {
|
||||
binding.toolbar.title = manga.title
|
||||
|
||||
binding.pageSlider.isRTL = newViewer is R2LPagerViewer
|
||||
binding.pageSlider.isTickVisible = preferences.showSliderTickers().get()
|
||||
if (newViewer is R2LPagerViewer) {
|
||||
binding.leftChapter.setTooltip(R.string.action_next_chapter)
|
||||
binding.rightChapter.setTooltip(R.string.action_previous_chapter)
|
||||
|
@ -57,6 +57,11 @@ class SettingsReaderController : SettingsController() {
|
||||
titleRes = R.string.pref_show_navigation_mode
|
||||
summaryRes = R.string.pref_show_navigation_mode_summary
|
||||
}
|
||||
switchPreference {
|
||||
bindTo(preferences.showSliderTickers())
|
||||
titleRes = R.string.pref_show_slider_tickers
|
||||
summaryRes = R.string.pref_show_slider_tickers_summary
|
||||
}
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
switchPreference {
|
||||
bindTo(preferences.trueColor())
|
||||
|
@ -293,6 +293,8 @@
|
||||
<string name="pref_fullscreen">Fullscreen</string>
|
||||
<string name="pref_show_navigation_mode">Show tap zones overlay</string>
|
||||
<string name="pref_show_navigation_mode_summary">Briefly show when reader is opened</string>
|
||||
<string name="pref_show_slider_tickers">Show slider tickers</string>
|
||||
<string name="pref_show_slider_tickers_summary">Show tickers representing pages in the page slider</string>
|
||||
<string name="pref_dual_page_split">Dual page split</string>
|
||||
<string name="pref_dual_page_invert">Invert dual page split placement</string>
|
||||
<string name="pref_dual_page_invert_summary">If the placement of the dual page split doesn\'t match reading direction</string>
|
||||
|
Loading…
Reference in New Issue
Block a user