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

classic Classic list List threaded Threaded
2 messages Options
Tomi Ollila-2 Tomi Ollila-2
Reply | Threaded
Open this post in threaded view
|

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

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 -- [hidden email]
To unsubscribe send an email to [hidden email]
David Bremner-2 David Bremner-2
Reply | Threaded
Open this post in threaded view
|

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

Tomi Ollila <[hidden email]> writes:

> 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.

applied, and deployed to nmbug.notmuchmail.org

d
_______________________________________________
notmuch mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]