feat: add e-ink mode setting with tap-to-scroll - #178
Open
dalekirkwood wants to merge 1 commit into
Open
Conversation
dalekirkwood
force-pushed
the
feat/eink-mode
branch
from
July 26, 2026 07:31
0db82f4 to
df1a520
Compare
Adds a manual e-ink mode toggle under UI settings. When enabled: - Navigation transitions are disabled (instant screen changes) - Header image crossfade is disabled (avoids ghosting on load) - Tap zones activate in the reader: tap the bottom half of the screen to page down one viewport, tap the top half to page up. Uses non-animated scrollTo for clean e-ink refreshes. The setting is off by default, so existing users see no behavior change. Follows the existing scroll-to-progress toggle pattern.
dalekirkwood
force-pushed
the
feat/eink-mode
branch
from
July 26, 2026 07:37
df1a520 to
20f20a7
Compare
This was referenced Jul 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a manual e-ink mode toggle under UI Settings. When enabled:
scrollTofor clean e-ink refreshes (no ghosting from animation frames).font-weight: 500for thicker rendering, black underlined links, no colored elements.The setting is off by default: existing users see zero behavior change.
Implementation
Follows the existing
scrollToProgressEnabledtoggle pattern:SettingsDataStore+SettingsDataStoreImpl: neweInkModepref (SharedPreferences-backed, with reactiveStateFlow)UiSettingsViewModel/UiSettingsScreen: newSwitchrowBookmarkDetailScreen: invisible overlayBoxon top of the content intercepts taps (WebView consumes touches, so the overlay must sit above it);verticalScroll(scrollState, enabled = !eInkMode)disables drag-scrollingMainActivity: conditionalNavHosttransitions;ReadeckAppThemeacceptseInkModeto switch color schemehtml_template_eink.html: new Sakura.css variant stripped of all colorBookmarkDetailViewModel: template flow switches to e-ink template when mode is onKnown limitations
BookmarkDetailViewModelreads eInkMode once in init (non-reactive), consistent with the existingscrollToProgressEnabledpattern. Toggling the setting while reading an article takes effect on next article open.Test plan
./gradlew compileGithubReleaseDebugKotlinpasses./gradlew testGithubReleaseDebugUnitTestall tests passFiles changed
14 files, +427/-42 lines. No new modules, no new dependencies.