summaryrefslogtreecommitdiff
path: root/lisp/isearch.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-02-05 23:46:02 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2022-02-05 23:46:02 +0100
commita4eeea812441c2456ad522659869be089be9d7a9 (patch)
tree5f19661c7ba3b91dba2dfe3ec78a6cf96ef0e4f7 /lisp/isearch.el
parent86827564208d93e243ee3cba7042f2d0ebd842b9 (diff)
downloademacs-a4eeea812441c2456ad522659869be089be9d7a9.tar.gz
Add a :distant-foreground to the lazy-highlight face
* lisp/isearch.el (lazy-highlight): Add a :distant-foreground colour so that the text is always legible (bug#16969).
Diffstat (limited to 'lisp/isearch.el')
-rw-r--r--lisp/isearch.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el
index 4086a1bf115..8970216398b 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -430,13 +430,13 @@ and doesn't remove full-buffer highlighting after a search."
(defface lazy-highlight
'((((class color) (min-colors 88) (background light))
- (:background "paleturquoise"))
+ (:background "paleturquoise" :distant-foreground "black"))
(((class color) (min-colors 88) (background dark))
- (:background "paleturquoise4"))
+ (:background "paleturquoise4" :distant-foreground "white"))
(((class color) (min-colors 16))
- (:background "turquoise3"))
+ (:background "turquoise3" :distant-foreground "white"))
(((class color) (min-colors 8))
- (:background "turquoise3"))
+ (:background "turquoise3" :distant-foreground "white"))
(t (:underline t)))
"Face for lazy highlighting of matches other than the current one."
:group 'lazy-highlight