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

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

[elpa] externals/company fc476ff: Replace 'deemphasized' with 'shadow'


From: ELPA Syncer
Subject: [elpa] externals/company fc476ff: Replace 'deemphasized' with 'shadow'
Date: Tue, 4 May 2021 15:57:08 -0400 (EDT)

branch: externals/company
commit fc476ff738c3e232b0655ca071277a0cbd90d525
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    Replace 'deemphasized' with 'shadow'
    
    #1088
    
    And only use the :foreground attribute of the themes from the mapping (so 
they
    don't override the background color; suggestions for better alternatives 
welcome).
---
 company.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/company.el b/company.el
index 6ec9054..d8cbbab 100644
--- a/company.el
+++ b/company.el
@@ -1540,8 +1540,9 @@ end of the match."
     ;; (text . nil)
     (value . font-lock-builtin-face)
     (variable . font-lock-variable-name-face)
-    (t . deemphasized))
-  "Faces mapping for `company-text-icons-margin' and 
`company-dot-icons-margin'."
+    (t . shadow))
+  "Faces mapping for `company-text-icons-margin' and 
`company-dot-icons-margin'.
+Only their values of :foreground attribute will be used."
   :type '(repeat
           (cons (symbol :tag "Kind name")
                 (face :tag "Face to use for it"))))
@@ -1570,7 +1571,7 @@ Only affects `company-text-icons-margin'."
      'face
      (if company-text-face-extra-attributes
          (append company-text-face-extra-attributes
-                 (list :inherit face))
+                 (list :foreground (face-attribute face :foreground)))
        face))))
 
 (defcustom company-dot-icons-format "●"



reply via email to

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