From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id B5E5E1F4C1 for ; Thu, 31 Oct 2019 09:19:38 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/2] contrib/css/216light: improve contrast a bit Date: Thu, 31 Oct 2019 09:19:37 +0000 Message-Id: <20191031091938.24342-2-e@80x24.org> In-Reply-To: <20191031091938.24342-1-e@80x24.org> References: <20191031091938.24342-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: "#ff0" foreground on a "#fff" background is just too difficult to distinguish, among other things. So choose slightly darker colors when using a (painful) "#fff" background. --- contrib/css/216light.css | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/contrib/css/216light.css b/contrib/css/216light.css index 9451dc0..559a6b7 100644 --- a/contrib/css/216light.css +++ b/contrib/css/216light.css @@ -24,3 +24,27 @@ a:visited { color:#808 } *.del {color:#900 } *.head { color:#000 } *.hunk { color:#960 } + +/* + * highlight 3.x colors (tested 3.18) for displaying blobs. + * This doesn't use most of the colors available, as I find too + * many colors overwhelming, so the default is commented out. + */ +.hl.num { color:#f30 } /* number */ +.hl.esc { color:#f0f } /* escape character */ +.hl.str { color:#f30 } /* string */ +.hl.ppc { color:#c3c } /* preprocessor */ +.hl.pps { color:#f30 } /* preprocessor string */ +.hl.slc { color:#099 } /* single-line comment */ +.hl.com { color:#099 } /* multi-line comment */ +/* .hl.opt { color:#ccc } */ /* operator */ +/* .hl.ipl { color:#ccc } */ /* interpolation */ + +/* keyword groups kw[a-z] */ +.hl.kwa { color:#f90 } +.hl.kwb { color:#060 } +.hl.kwc { color:#f90 } +/* .hl.kwd { color:#ccc } */ + +/* line-number (unused by public-inbox) */ +/* .hl.lin { color:#ccc } */