Skip to content

Commit 923496e

Browse files
committed
Fix debugger background color
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.
1 parent 1d28cd6 commit 923496e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Debugger/Main.elm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ popoutView model =
506506
, style "height" "100%"
507507
, style "font-family" "monospace"
508508
, style "display" "flex"
509+
, style "background-color" "white"
509510
, style "flex-direction" (toFlexDirection model.layout)
510511
]
511512
)

0 commit comments

Comments
 (0)