From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: DocView face - change of colors Date: Mon, 12 Jun 2023 21:58:59 +0200 Message-ID: <878rcosb98.fsf@ledu-giraud.fr> References: <87fs6wc0hy.fsf@yandex.com> Reply-To: Manuel Giraud Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14631"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: help-gnu-emacs@gnu.org To: Colin Baxter Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 12 21:59:48 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q8nha-0003Zv-C2 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 12 Jun 2023 21:59:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q8ngy-0007ty-2j; Mon, 12 Jun 2023 15:59:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q8ngw-0007tk-OM for help-gnu-emacs@gnu.org; Mon, 12 Jun 2023 15:59:06 -0400 Original-Received: from ledu-giraud.fr ([51.159.28.247]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q8ngu-0003EW-Ly for help-gnu-emacs@gnu.org; Mon, 12 Jun 2023 15:59:06 -0400 DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=77kWWw/z RPtjkVfEkO8WvIRrhhO2q8ds0PtBp8f1Q1M=; h=date:references:in-reply-to: subject:cc:to:from; d=ledu-giraud.fr; b=48lDa+BavDDMKg3sKnXZmfDC19S6Us z656FFsUCCgtvINRxcLruYnYzivavcsB+uL8f8tMMMni1yOeZ2jE1SCA== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=77kWWw/zRPtjkVfE kO8WvIRrhhO2q8ds0PtBp8f1Q1M=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=pZ9zJhMia5WZ5IQwlg9aSvMMZHs/iX/kG00Xyf ACZZR8XlY4Pu2mJ5NPoj80H5z0uthsz211adYw/yFfIpd53f5ho/nSBGU/aFWI1vnhphVR xwzpSKXd62doRaJFLDPZ7NjtWV5+tcZul4LHptYioeSOBOji0wcp/PNQE/TXaC3N7tXYzo QvNTjOn0DyXTnSsNLUfjFq5iCyaMDXMh7SjNlyEtMBq9Tdw74kqIpgKS4mW3IEAyrPsQKA 7//hAri58cSnn87phaW6QvfZCHY4gZNOo3a9p/NAcaPQqZxXfdHbuWdF0KglFKDREhBfX7 P2O0Ef0OPsu85Xbz+KnkjgWA== Original-Received: from computer ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id faed130c (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 12 Jun 2023 21:59:00 +0200 (CEST) In-Reply-To: <87fs6wc0hy.fsf@yandex.com> (Colin Baxter's message of "Mon, 12 Jun 2023 13:45:45 +0100") Received-SPF: pass client-ip=51.159.28.247; envelope-from=manuel@ledu-giraud.fr; helo=ledu-giraud.fr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143929 Archived-At: Colin Baxter writes: > I notice in emacs-30.50.0, probably as a result commit 26740f30469, that > my pdf files display as white text on a black background. I have > reverted back to my desired setting of black text on white by putting > the variable `doc-view-mupdf-use-svg' to nil, so it's not a problem for > me right now. However, I worry if by setting doc-view-mupdf-use-svg to > its non-default value I am storing up problems in the future. Hi Colin, I think you should keep `doc-view-mupdf-use-svg' to t by default. The commit 26740f30469 have introduced a new face `doc-view-svg-face' which you could use to customize how your DocView documents are displayed. By default, this new face inherits from the default face. So I guess that you are using a "white on black" theme and that is why your DocView are displayed with this theme too. You could, for instance, customize `doc-view-svg-face' like this: --8<---------------cut here---------------start------------->8--- (custom-set-faces '(doc-view-svg-face ((t (:background "white" :foreground "black"))))) --8<---------------cut here---------------end--------------->8--- As DocView uses the SVG rendering, only foreground and background colors are relevant for this face obviously. -- Manuel Giraud