unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Manuel Giraud via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: Colin Baxter <m43cap@yandex.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: DocView face - change of colors
Date: Mon, 12 Jun 2023 21:58:59 +0200	[thread overview]
Message-ID: <878rcosb98.fsf@ledu-giraud.fr> (raw)
In-Reply-To: <87fs6wc0hy.fsf@yandex.com> (Colin Baxter's message of "Mon, 12 Jun 2023 13:45:45 +0100")

Colin Baxter <m43cap@yandex.com> 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



  reply	other threads:[~2023-06-12 19:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-12 12:45 DocView face - change of colors Colin Baxter
2023-06-12 19:58 ` Manuel Giraud via Users list for the GNU Emacs text editor [this message]
2023-06-13 13:14   ` Colin Baxter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878rcosb98.fsf@ledu-giraud.fr \
    --to=help-gnu-emacs@gnu.org \
    --cc=m43cap@yandex.com \
    --cc=manuel@ledu-giraud.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).