summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/pdf-util.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/pdf-util.el b/lisp/pdf-util.el
index 23945c8..d8691be 100644
--- a/lisp/pdf-util.el
+++ b/lisp/pdf-util.el
@@ -391,7 +391,7 @@ values."
list-of-syms))
,@body))))
-
+
;; * ================================================================== *
;; * Scrolling
;; * ================================================================== *
@@ -725,9 +725,12 @@ string."
'face `(:foreground
"orange red"
:background
- ,(if (bound-and-true-p pdf-view-midnight-minor-mode)
- (cdr pdf-view-midnight-colors)
- "white"))))
+ ,(cond
+ ((bound-and-true-p pdf-view-midnight-minor-mode)
+ (cdr pdf-view-midnight-colors))
+ ((bound-and-true-p pdf-view-themed-minor-mode)
+ (face-background 'default nil))
+ (t "white")))))
dx dy)))
(defvar pdf-util--face-colors-cache (make-hash-table))