Skip to content

fix: show epub content in dark theme in chromium - #3888

Merged
AlexAndBear merged 3 commits into
mainfrom
fix/epub-dark-theme-background
Oct 19, 2026
Merged

AlexAndBear merged 3 commits into
mainfrom
fix/epub-dark-theme-background

Conversation

@AlexAndBear

@AlexAndBear AlexAndBear commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

Description

Since the root got color-scheme: dark, Chromium paints an opaque white backdrop behind the book iframe, which the dark theme's invert filter doesn't reach. The book iframes now keep a light color scheme, so the backdrop stays transparent and the inverted text shows on the app surface again (this also removes the black box Firefox and WebKit showed).

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: browser: dark theme in Chromium, Firefox and WebKit shows white text on the app surface (page turns, chapters, search, font size, slider, mobile); light theme unchanged

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear
AlexAndBear merged commit 2713ac3 into main Oct 19, 2026
27 checks passed
@AlexAndBear
AlexAndBear deleted the fix/epub-dark-theme-background branch October 19, 2026 09:00
@openclouders openclouders mentioned this pull request Oct 19, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EPUB reader shows a blank white page in the dark theme in Chromium

2 participants