From 605aafee107136752691fb94337f33e99d3b1938 Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Mon, 23 Sep 2024 18:50:29 +0200 Subject: [PATCH] Use black-on-white by default for doc-view-svg-face. * lisp/doc-view.el (doc-view-svg-face): Define black on white as default value instead of using the current theme's values. * etc/NEWS: Adjust entry for doc-view-svg-face. (cherry picked from commit 2b53e11a087be54f9ba7cd39334f7c14e89946ca) --- lisp/doc-view.el | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lisp/doc-view.el b/lisp/doc-view.el index 2921af35590..e2ab4907837 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el @@ -238,10 +238,15 @@ showing only titles and no page number." :type 'boolean :version "29.1") -(defface doc-view-svg-face '((t :inherit default)) +(defface doc-view-svg-face '((t :inherit default + :background "white" + :foreground "black")) "Face used for SVG images. -Only background and foreground colors are used. -See `doc-view-mupdf-use-svg'." +See `doc-view-mupdf-use-svg'. + +Only background and foreground colors are used as the SVG image's +descriptors, see (info \"(elisp) SVG Images\"). Non-standard values may +cause low-contrast issues with certain documents." :version "30.1") (make-obsolete 'doc-view-svg-background 'doc-view-svg-face "30.1") -- 2.39.5