[PATCH] nmbug: notmuch-report: set both background and foreground colors

Subject: [PATCH] nmbug: notmuch-report: set both background and foreground colors

Date: Sun, 20 Dec 2020 22:04:23 +0200

To: notmuch@notmuchmail.org

Cc: tomi.ollila@iki.fi

From: Tomi Ollila


Whenever setting background color, set also corresponding
foreground color. Don't expect default foreground color to
be #000 (or something close); user may have changed it.
---

I have set default background color #000 and default foreground
color #ddd.

Just used firefox style editor to add those lines to
nmbug.tethera.net output and it fixed the problem I had with
it (black, instead of bright grey on bright backrounds). Body
background on that site is black for me, which works very well.

 devel/nmbug/notmuch-report | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/devel/nmbug/notmuch-report b/devel/nmbug/notmuch-report
index 18a0bc70..9a6a31cc 100755
--- a/devel/nmbug/notmuch-report
+++ b/devel/nmbug/notmuch-report
@@ -370,9 +370,11 @@ header_template = config['meta'].get('header', '''<!DOCTYPE html>
       border-bottom-right-radius: {border_radius};
     }}
     tbody:nth-child(4n+1) tr td {{
+      color: #000;
       background-color: #ffd96e;
     }}
     tbody:nth-child(4n+3) tr td {{
+      color: #000;
       background-color: #bce;
     }}
     hr {{
-- 
2.29.2
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: