Feature Wake Lock Screen while reading (#1126)

* Feature wakeLock

* Fix style

* Fix

* Fix

* Fix

---------

Co-authored-by: Vicente <vicente@per>
This commit is contained in:
vtorres-t
2026-07-20 17:35:36 +02:00
committed by GitHub
parent 147ecdcd7b
commit 06f0768395
8 changed files with 76 additions and 0 deletions

View File

@@ -153,6 +153,7 @@ const GLOBAL_READER_SETTING_OBJECT: Record<keyof IReaderSettingsGlobal, undefine
shouldShowTapZoneLayoutPreview: undefined,
shouldInformAboutMissingChapter: undefined,
shouldInformAboutScanlatorChange: undefined,
shouldWakeLockScreen: undefined,
scrollAmount: undefined,
shouldUseInfiniteScroll: undefined,
shouldShowTransitionPage: undefined,
@@ -242,6 +243,7 @@ export const DEFAULT_READER_SETTINGS: IReaderSettings = {
shouldShowTapZoneLayoutPreview: true,
shouldInformAboutMissingChapter: true,
shouldInformAboutScanlatorChange: true,
shouldWakeLockScreen: true,
scrollAmount: ReaderScrollAmount.LARGE,
shouldUseInfiniteScroll: true,
shouldShowTransitionPage: true,

View File

@@ -136,6 +136,11 @@ export const ReaderBehaviourSettings = ({
checked={settings.shouldInformAboutScanlatorChange}
onChange={(_, checked) => updateSetting('shouldInformAboutScanlatorChange', checked)}
/>
<CheckboxInput
label={t`Keep screen on`}
checked={settings.shouldWakeLockScreen}
onChange={(_, checked) => updateSetting('shouldWakeLockScreen', checked)}
/>
<ReaderSettingAutoScroll
autoScroll={settings.autoScroll}
setAutoScroll={(...args) => updateSetting('autoScroll', ...args)}