unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] nmbug: notmuch-report: set both background and foreground colors
@ 2020-12-20 20:04 Tomi Ollila
  2021-01-09 15:37 ` David Bremner
  0 siblings, 1 reply; 2+ messages in thread
From: Tomi Ollila @ 2020-12-20 20:04 UTC (permalink / raw)
  To: notmuch; +Cc: 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] nmbug: notmuch-report: set both background and foreground colors
  2020-12-20 20:04 [PATCH] nmbug: notmuch-report: set both background and foreground colors Tomi Ollila
@ 2021-01-09 15:37 ` David Bremner
  0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2021-01-09 15:37 UTC (permalink / raw)
  To: Tomi Ollila, notmuch; +Cc: tomi.ollila

Tomi Ollila <tomi.ollila@iki.fi> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-09 15:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-20 20:04 [PATCH] nmbug: notmuch-report: set both background and foreground colors Tomi Ollila
2021-01-09 15:37 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).