[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 12/21: company-preview* faces: inherit from company-tooltip-[comm
From: |
Dmitry Gutov |
Subject: |
[elpa] 12/21: company-preview* faces: inherit from company-tooltip-[common-]selection |
Date: |
Mon, 03 Feb 2014 17:36:17 +0000 |
dgutov pushed a commit to branch master
in repository elpa.
commit f23ff8d6751a138b8b0cb2137fb152c14959799b
Author: Dmitry Gutov <address@hidden>
Date: Sat Feb 1 05:29:27 2014 +0200
company-preview* faces: inherit from company-tooltip-[common-]selection
when background is light.
---
NEWS.md | 2 ++
company.el | 21 +++++++++++++++------
2 files changed, 17 insertions(+), 6 deletions(-)
diff --git a/NEWS.md b/NEWS.md
index 8957912..8a0a918 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -2,6 +2,8 @@
## Next
+* `company-preview*` faces inherit from `company-tooltip-selection` and
+ `company-tooltip-common-selection` on light themes.
* `company-preview-frontend` renders itself after the cursor.
* New user option `company-transformers`.
* First transformer, `company-sort-by-occurrence`.
diff --git a/company.el b/company.el
index e43dd74..c3f5b2c 100644
--- a/company.el
+++ b/company.el
@@ -139,18 +139,27 @@
"Face used for the tooltip scrollbar background.")
(defface company-preview
- '((t :background "blue4"
- :foreground "wheat"))
+ '((((background light))
+ :inherit company-tooltip-selection)
+ (((background dark))
+ :background "blue4"
+ :foreground "wheat"))
"Face used for the completion preview.")
(defface company-preview-common
- '((t :inherit company-preview
- :foreground "red"))
+ '((((background light))
+ :inherit company-tooltip-selection)
+ (((background dark))
+ :inherit company-preview
+ :foreground "red"))
"Face used for the common part of the completion preview.")
(defface company-preview-search
- '((t :inherit company-preview
- :background "blue1"))
+ '((((background light))
+ :inherit company-tooltip-common-selection)
+ (((background dark))
+ :inherit company-preview
+ :background "blue1"))
"Face used for the search string in the completion preview.")
(defface company-echo nil
- [elpa] branch master updated (6265448 -> 7d682e9), Dmitry Gutov, 2014/02/03
- [elpa] 05/21: company-sort-by-occurrence: handle cons prefixes, Dmitry Gutov, 2014/02/03
- [elpa] 03/21: Lower dabbrev time limits, Dmitry Gutov, 2014/02/03
- [elpa] 07/21: company-sort-by-occurrence: update the docstring, Dmitry Gutov, 2014/02/03
- [elpa] 09/21: company-transformers: improve the defcustom widget, Dmitry Gutov, 2014/02/03
- [elpa] 08/21: Add new option, company-dabbrev-minimum-length, Dmitry Gutov, 2014/02/03
- [elpa] 10/21: Don't generate bogus event in Emacs 24.4, Dmitry Gutov, 2014/02/03
- [elpa] 06/21: Fix #54, Dmitry Gutov, 2014/02/03
- [elpa] 11/21: Render company-preview-frontend after the cursor, Dmitry Gutov, 2014/02/03
- [elpa] 12/21: company-preview* faces: inherit from company-tooltip-[common-]selection,
Dmitry Gutov <=
- [elpa] 15/21: Remove NEWS entry for 9b0d457, it's a bugfix, Dmitry Gutov, 2014/02/03
- [elpa] 17/21: company-capf: strip duplicates, Dmitry Gutov, 2014/02/03
- [elpa] 01/21: company-begin-commands: add `org-self-insert-command', Dmitry Gutov, 2014/02/03
- [elpa] 21/21: Merge commit '67ab56a5469f16652e73667ec3b4f76ff6befee6' from company, Dmitry Gutov, 2014/02/03
- [elpa] 16/21: Don't "transform" twice, Dmitry Gutov, 2014/02/03
- [elpa] 20/21: Remove outdated comment, Dmitry Gutov, 2014/02/03
- [elpa] 02/21: Make dabbrev and dabbrev-code more customizable, Dmitry Gutov, 2014/02/03
- [elpa] 19/21: Fix #56, Dmitry Gutov, 2014/02/03
- [elpa] 04/21: Add company-transformers, Dmitry Gutov, 2014/02/03
- [elpa] 14/21: company-sort-by-occurrence: consider the preceding line, Dmitry Gutov, 2014/02/03