Skip to content

Fix debugger background color #136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lydell
Copy link

@lydell lydell commented Jun 1, 2025

When using Firefox in dark mode, about:blank has a dark background instead of white. The debugger popup window uses about:blank, and as such we get the dark background in the debugger. The text is hard to read then.

When a web page does not set the page background color, it is up to the user agent to decide the background color. Firefox lets you configure this background color. So it is a good idea to set the page background color anyway.

Ideally, we’d have a dark mode for the debugger too, but that is out of scope for this PR.

Before After
Screenshot 2025-06-01 at 22 24 25 Screenshot 2025-06-01 at 22 26 45

Note to those following along: This PR is included in https://github.com/lydell/browser/tree/safe, which is part of https://github.com/lydell/elm-safe-virtual-dom, but it has nothing to do with “safe virtual DOM” really, it’s just in there because it’s convenient.

When using Firefox in dark mode, `about:blank` has a dark background
instead of white. The debugger popup window uses `about:blank`, and
as such we get the dark background in the debugger. The text is hard to
read then.

When a web page does not set the page background color, it is up to the
user agent to decide the background color. Firefox lets you configure
this background color. So it is a good idea to set the page background
color anyway.

Ideally, we’d have a dark mode for the debugger too, but that is out of
scope for this commit.
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