Skip to content

Optional dark background for HTML view#140

Open
laarmen wants to merge 2 commits into
akissinger:masterfrom
laarmen:background-html-fix
Open

Optional dark background for HTML view#140
laarmen wants to merge 2 commits into
akissinger:masterfrom
laarmen:background-html-fix

Conversation

@laarmen

@laarmen laarmen commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

We broke HTML view a little bit when I merge #135 as it takes on the new background color but keeps a dark text.

This fixes it in two manners:

  • We can use the built-in dark mode for the HTML view
  • We change the background color more selectively

laarmen added 2 commits July 1, 2026 14:42
We still need the background toggling because even in dark mode it'll
use a white background when there is no content.
In akissinger#135 we forced the background color to the theme one for the email
body view to avoid a white flash when first entering a thread view
before it switches to plain text view.

However, it kinda broke the HTML view as most emails out there assume a
default white background, making them unreadable if you're using a dark
theme.
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.

1 participant