From 923496ea4097c372a4b550b809f5a38633005263 Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Sun, 9 Feb 2025 20:51:01 +0100 Subject: [PATCH] Fix debugger background color MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/Debugger/Main.elm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Debugger/Main.elm b/src/Debugger/Main.elm index 0a7e67b..7fe43cc 100755 --- a/src/Debugger/Main.elm +++ b/src/Debugger/Main.elm @@ -506,6 +506,7 @@ popoutView model = , style "height" "100%" , style "font-family" "monospace" , style "display" "flex" + , style "background-color" "white" , style "flex-direction" (toFlexDirection model.layout) ] )