Skip to content

fix(reader): keep EPUB image blend out of dark themes#674

Merged
everpcpc merged 3 commits intomainfrom
codex/fix-readium-blend-dark-mode
Mar 19, 2026
Merged

fix(reader): keep EPUB image blend out of dark themes#674
everpcpc merged 3 commits intomainfrom
codex/fix-readium-blend-dark-mode

Conversation

@everpcpc
Copy link
Copy Markdown
Owner

@everpcpc everpcpc commented Mar 19, 2026

Closes #673

Problem

Upgrading the EPUB reader to Readium CSS v2 introduced the official image blending path, and dark themes could still end up with multiply blending applied to images after theme changes.

Approach

Route image blending through Readium's --USER__blendImages property instead of a custom CSS override. The reader now enables readium-blend-on only for the intended light themes, clears the property as part of the normal Readium property update cycle, and removes the now-unused data-kmreader-theme bridge attribute.

Scope

  • add --USER__blendImages to the tracked Readium property keys
  • set readium-blend-on only for light image-blend themes
  • remove the custom EPUB image blend CSS override
  • remove the unused EPUB data-kmreader-theme injection
  • bump the build version to 371

Validation

  • make build-macos

Replace the custom image blend CSS override with the official Readium CSS v2 --USER__blendImages property. This keeps image blending on the Readium property path, clears the flag during theme changes, and prevents dark themes from inheriting the light-theme multiply blend.
Remove the leftover data-kmreader-theme injection from all EPUB web view CSS bridges now that image blending is driven entirely through Readium properties.
@everpcpc everpcpc merged commit 680bc4f into main Mar 19, 2026
3 checks passed
@everpcpc everpcpc deleted the codex/fix-readium-blend-dark-mode branch March 19, 2026 02:34
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.

[Bug] display in dark mode of epub reader not working properly again

1 participant