From b7811085a30a9f9e08143cd4d15bc18a8cf04b4a Mon Sep 17 00:00:00 2001 From: Grovy311 Date: Sat, 26 Sep 2026 18:04:54 +0200 Subject: [PATCH] Keep print margins white in dark mode The dark theme sets color-scheme: dark on the root element; Chrome then paints the page margins of printed pages dark, even with a white background. The print view forces the light scheme and a white root background while printing. Co-Authored-By: Claude Opus 5.5 --- src/frontend/print/print-document.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/frontend/print/print-document.css b/src/frontend/print/print-document.css index 9fa3b79..e814293 100644 --- a/src/frontend/print/print-document.css +++ b/src/frontend/print/print-document.css @@ -450,6 +450,11 @@ span.pd-tb-logo-image { .print-view { background: #fff !important; } + /* The dark theme sets color-scheme: dark on the root; Chrome then paints + the page margins dark. Printing always uses the light scheme. */ + html:has(.print-view) { + color-scheme: light !important; + } .pd-toolbar, .pd-sheet-footer { display: none !important;