From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 3nI6AWOu318RFwAA0tVLHw (envelope-from ) for ; Sun, 20 Dec 2020 20:04:51 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 0KT4N2Ku319ZfgAAbx9fmQ (envelope-from ) for ; Sun, 20 Dec 2020 20:04:50 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 32CA69403E6 for ; Sun, 20 Dec 2020 20:04:50 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 1966229BF6; Sun, 20 Dec 2020 15:04:46 -0500 (EST) Received: from lahtoruutu.iki.fi (unknown [IPv6:2a0b:5c81:1c1::37]) by mail.notmuchmail.org (Postfix) with ESMTPS id 1B30728535 for ; Sun, 20 Dec 2020 15:04:44 -0500 (EST) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: too) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id B237F1B00084; Sun, 20 Dec 2020 22:04:28 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1608494668; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=5solxo3pHqTAujOBtcOD4ZqvK99BL9X/LhLjYkQoBUI=; b=U6IQ4M4v4+TWFuW4ZcS5WTFZxolbdJw/ROFRkSVrUC7AqdWa3YVG4uJB+WQgvGgtJem88C hQuFatpGYHoQRkxp/084/C5BPsdCbLFnwUBspGAuwasrOYmNyHbkJpC91Xa8ktPxqmBdcn ACL+CTUQdNklGVcHFP3mNaW62JqXbkMaI/kCX9KvU9VwZ28qu00gXfi8LIV0tIkz7eIsjq KJ7RA9dNJojj7w0+e+nt0eK0leInTiO3D5BAd/lsougSIwbwWZ+km2RVvGKybWtCjqO6MS KvHKyXaSYcHb451pRkni2+MmxH7a+Pmcf7bpMuXhkzZMJQ1MURG6X8AJwjir3w== From: Tomi Ollila To: notmuch@notmuchmail.org Subject: [PATCH] nmbug: notmuch-report: set both background and foreground colors Date: Sun, 20 Dec 2020 22:04:23 +0200 Message-Id: <20201220200423.7285-1-tomi.ollila@iki.fi> X-Mailer: git-send-email 2.13.3 ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1608494668; a=rsa-sha256; cv=none; b=FgMJal72Cyl+1i087oqRYMGPNPoTbTyd1YRN+tHQlHPJS4Z/s6n01tHOMpxgyC0Uq34d+z +jqNA0hFs5BvN+CCSQCU2vh/7gTES7QVBvT6kpZIpqliyDei64EKVy1+xg94Xf5zCyE0o4 klCjsJVAideHwbbvoGgX8K3CU9ipSGeDoMsSWnNDdUoe6byL9gR8184bO2kfr/GmXFYw1C 63+60/LOrlsPt24GkNIlFJ6xeky/2TvaBgk6cd0B89/Fa8vIBNKfcJADa9E5fphAD5DsZk IwMibMVUwR79N38akeSKhaFfwZzS4bFZ1rCd1vjc/mFKV+K79VCiIkMbh2gn5A== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1608494668; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=5solxo3pHqTAujOBtcOD4ZqvK99BL9X/LhLjYkQoBUI=; b=HEAWNXFK4J73RS6J1ou3WUKpvmCWgdI5hUeymnbtPHMGFwW6hAKiTjS//ioPvEsnUZ0r+y CuxLHCTkpajw7BUtjVne/NY+1VEslbAX6FZCCjdYSLaXBDzjXmZieLd8YrM7C60rtryJR5 +bI5zzOKxsnzqIXrhLQFTKsk3Jq84CfJb0BHKA1ToDfk+RAKki3U7LIwni2IiDt1OjEwxq zXKz97iEX1plqeXNNGIxfz63t7jMK9Ov98LXMgiuJnQYiCfmiotJIMXFY7aidSDWGx9qe2 S6B7XKe0uvSob6Yj5l2XwLXXeVoneMs4qiw+iXcTtNnAjJ1vJrntQewCXqYSug== Message-ID-Hash: 5GAEILDENRSR5V22L444A7K66GCFFQ6M X-Message-ID-Hash: 5GAEILDENRSR5V22L444A7K66GCFFQ6M X-MailFrom: tomi.ollila@iki.fi X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: tomi.ollila@iki.fi X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 3.66 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=iki.fi header.s=lahtoruutu header.b=U6IQ4M4v; arc=reject (signature check failed: fail, {[1] = sig:iki.fi:reject}); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 32CA69403E6 X-Spam-Score: 3.66 X-Migadu-Scanner: scn1.migadu.com X-TUID: etzkyGqG5dUS 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', ''' 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