]> git.notmuchmail.org Git - notmuch/commitdiff
nmbug: notmuch-report: set both background and foreground colors
authorTomi Ollila <tomi.ollila@iki.fi>
Sun, 20 Dec 2020 20:04:23 +0000 (22:04 +0200)
committerDavid Bremner <david@tethera.net>
Sat, 9 Jan 2021 15:29:07 +0000 (11:29 -0400)
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.

devel/nmbug/notmuch-report

index 18a0bc70c6aaebe0abe97ad04a9692ee0d846b0d..9a6a31cc6a1ba07f9d7b10567dfcf5a558d70670 100755 (executable)
@@ -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 {{