emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master a4eeea8124: Add a :distant-foreground to the lazy-highlight face


From: Lars Ingebrigtsen
Subject: master a4eeea8124: Add a :distant-foreground to the lazy-highlight face
Date: Sat, 5 Feb 2022 17:46:53 -0500 (EST)

branch: master
commit a4eeea812441c2456ad522659869be089be9d7a9
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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).
---
 lisp/isearch.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lisp/isearch.el b/lisp/isearch.el
index 4086a1bf11..8970216398 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]