]> git.eshelyaron.com Git - emacs.git/commitdiff
Add a :distant-foreground to the lazy-highlight face
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 5 Feb 2022 22:46:02 +0000 (23:46 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 5 Feb 2022 22:46:02 +0000 (23:46 +0100)
* lisp/isearch.el (lazy-highlight): Add a :distant-foreground
colour so that the text is always legible (bug#16969).

lisp/isearch.el

index 4086a1bf1151181f35f7ed8626e5f2cf220c825b..8970216398bfe122ac3c5412708a86672a841dbd 100644 (file)
@@ -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