Skip to content

feat: add page shadow reader setting#644

Merged
everpcpc merged 1 commit intomainfrom
codex/page-shadow-setting
Mar 10, 2026
Merged

feat: add page shadow reader setting#644
everpcpc merged 1 commit intomainfrom
codex/page-shadow-setting

Conversation

@everpcpc
Copy link
Copy Markdown
Owner

Problem

Dual-page spreads in Cover and Scroll modes always rendered page shadows, which introduced a visible seam and broke seamless stitched pages. The page-number toggle copy also read more strongly than necessary.

Approach

Add a persisted showPageShadow reader preference that defaults to enabled, expose it in both the DIVINA defaults and the in-reader settings, and thread the flag through ReaderRenderConfig into the iOS/macOS native page rendering paths so shadow opacity and shadow paths are disabled consistently when the option is turned off.

Scope

  • add the new page shadow setting and localized strings
  • rename Always Show Page Number to Show Page Number
  • keep formatter output aligned in the touched reader files

Validation

  • make format
  • make build
  • make localize
  • ./misc/translate.py list

Closes #642

Add a persisted reader preference to disable page shadows for seamless dual-page spreads.

Wire the flag through reader render config and the iOS/macOS page rendering paths, rename the page-number toggle copy, and keep localization plus formatter output in sync.
@everpcpc everpcpc merged commit 4e6ab23 into main Mar 10, 2026
3 checks passed
@everpcpc everpcpc deleted the codex/page-shadow-setting branch March 10, 2026 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] optimize double-page display in Cover and Scroll modes

1 participant