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

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

[elpa] master 7d9d72c 33/38: Set tooltip background color for terminals


From: Dmitry Gutov
Subject: [elpa] master 7d9d72c 33/38: Set tooltip background color for terminals with less than 88 colors
Date: Sat, 25 Jul 2020 19:51:17 -0400 (EDT)

branch: master
commit 7d9d72c7b41ec0b5e455165cd90ce8b29fbb8217
Author: Kasumi Hanazuki <kasumi@rollingapple.net>
Commit: Kasumi Hanazuki <kasumi@rollingapple.net>

    Set tooltip background color for terminals with less than 88 colors
    
    The current implementation specifies the foreground color for tooltips to 
be black
    but does not gives the background color on terminals with less color 
capability,
    which causes invisible text when the background is black on <88-color 
terminals.
    
    This patch fixes the problem by giving a default background color.
    This change does not affect >=88-color terminals.
---
 company.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/company.el b/company.el
index 428fc32..d0e9a72 100644
--- a/company.el
+++ b/company.el
@@ -90,7 +90,7 @@ attention to case differences."
   :group 'faces)
 
 (defface company-tooltip
-  '((default :foreground "black")
+  '((default :foreground "black" :background "yellow")
     (((class color) (min-colors 88) (background light))
      (:background "cornsilk"))
     (((class color) (min-colors 88) (background dark))



reply via email to

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