From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kGfyl-0007E2-PJ for ptxdist@pengutronix.de; Fri, 11 Sep 2020 12:08:27 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1kGfyl-0003lV-EY for ptxdist@pengutronix.de; Fri, 11 Sep 2020 12:08:27 +0200 Date: Fri, 11 Sep 2020 12:08:27 +0200 From: Michael Olbrich Message-ID: <20200911100827.GO13915@pengutronix.de> References: <20200911092331.3805-1-ejo@pengutronix.de> <20200911100138.GH6156@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [ptxdist] [PATCH] doc: highlight inline code with gray box List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de On Fri, Sep 11, 2020 at 12:07:15PM +0200, Enrico J=F6rns wrote: > Am Freitag, den 11.09.2020, 12:01 +0200 schrieb Michael Olbrich: > > On Fri, Sep 11, 2020 at 11:23:31AM +0200, Enrico Jorns wrote: > > > This should ease distinguishing inline code snippets from default text > > > and is also more similar to what the sphinx html outputs look like. > > > = > > > Signed-off-by: Enrico Jorns > > > --- > > > doc/preamble.inc | 3 +++ > > > 1 file changed, 3 insertions(+) > > > = > > > diff --git a/doc/preamble.inc b/doc/preamble.inc > > > index d9e528ef4..3131987af 100644 > > > --- a/doc/preamble.inc > > > +++ b/doc/preamble.inc > > > @@ -82,6 +82,9 @@ > > > \definecolor{VerbatimColor}{gray}{0.95} > > > \definecolor{VerbatimBorderColor}{gray}{0.75} > > > = > > > +% override default sphinxcode to display gray-colored box > > > +\protected\def\sphinxcode#1{\fcolorbox[gray]{1}{0.9}{\texttt{#1}}} > > = > > Why 0.9 and not 0.95 like the VerbatimColor above? I would expect the s= ame > > color here. > = > That was my first guess, too. But at least on my screen it turned out > that a quite small box with such a light gray and no darker border > could be overseen. > Thus one alternative would be to use the border here, too. If you like > I can give it a try. I think I'd prefer that. The different colors look strange to me. Michael -- = Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@p= engutronix.de