emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/orderless d2b5d71e75 027/204: Better match face default


From: ELPA Syncer
Subject: [elpa] externals/orderless d2b5d71e75 027/204: Better match face defaults (kindly contributed by Protesilaos)
Date: Tue, 11 Jan 2022 12:58:14 -0500 (EST)

branch: externals/orderless
commit d2b5d71e752a10cfd7904a79fba8c67ea3aaa7ba
Author: Omar Antolín <omar.antolin@gmail.com>
Commit: Omar Antolín <omar.antolin@gmail.com>

    Better match face defaults (kindly contributed by Protesilaos)
---
 orderless.el | 36 ++++++++++++++++++++++++++++--------
 1 file changed, 28 insertions(+), 8 deletions(-)

diff --git a/orderless.el b/orderless.el
index 306e11357f..40092b49f2 100644
--- a/orderless.el
+++ b/orderless.el
@@ -51,20 +51,40 @@
   "Completion method that matches space-separated regexps in any order."
   :group 'completion)
 
-(defface orderless-match-face-0 '((t :background "#5ada88"))
-  "Face for maches of components numbered 0 mod 4."
+(defface orderless-match-face-0
+  '((((class color) (min-colors 88) (background dark))
+     :foreground "#4ae8fc" :weight bold)
+    (((class color) (min-colors 88) (background light))
+     :foreground "#185870" :weight bold)
+    (t :foreground "cyan" :weight bold))
+  "Face for matches of components numbered 0 mod 4."
   :group 'orderless)
 
-(defface orderless-match-face-1 '((t :background "#d5baff"))
-  "Face for maches of components numbered 1 mod 4."
+(defface orderless-match-face-1
+  '((((class color) (min-colors 88) (background dark))
+     :foreground "#ed92f8" :weight bold)
+    (((class color) (min-colors 88) (background light))
+     :foreground "#8f0075" :weight bold)
+    (t :foreground "magenta" :weight bold))
+  "Face for matches of components numbered 1 mod 4."
   :group 'orderless)
 
-(defface orderless-match-face-2 '((t :background "#6aaeff"))
-  "Face for maches of components numbered 2 mod 4."
+(defface orderless-match-face-2
+  '((((class color) (min-colors 88) (background dark))
+     :foreground "#72a4ff" :weight bold)
+    (((class color) (min-colors 88) (background light))
+     :foreground "#223fbf" :weight bold)
+    (t :foreground "blue" :weight bold))
+  "Face for matches of components numbered 2 mod 4."
   :group 'orderless)
 
-(defface orderless-match-face-3 '((t :background "#ff8892"))
-  "Face for maches of components numbered 3 mod 4."
+(defface orderless-match-face-3
+  '((((class color) (min-colors 88) (background dark))
+     :foreground "#58dd13" :weight bold)
+    (((class color) (min-colors 88) (background light))
+     :foreground "#4a5700" :weight bold)
+    (t :foreground "green" :weight bold))
+  "Face for matches of components numbered 3 mod 4."
   :group 'orderless)
 
 (defcustom orderless-regexp-separator " +"



reply via email to

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