Skip to content

Commit

Permalink
Add support for 'ivy'
Browse files Browse the repository at this point in the history
  • Loading branch information
alezost committed Feb 2, 2017
1 parent d44613d commit e9008ef
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ supported (themed):
- [Helm](https://emacs-helm.github.io/helm/) (partial support)
- [Hydra](https://github.com/abo-abo/hydra)
- [indent-guide](https:/github.com/zk-phi/indent-guide)
- [Magit](http://magit.vc/) (including version 2.1.0)
- [ivy](https://github.com/abo-abo/swiper)
- [Magit](http://magit.vc/)
- [markdown](http://jblevins.org/projects/markdown-mode/)
- [mu4e](https://github.com/djcb/mu)
- [powerline](https://github.com/milkypostman/powerline)
Expand Down
24 changes: 24 additions & 0 deletions alect-themes.el
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,30 @@ For INVERT, see `alect-get-color'."
(lazy-highlight ((,c :foreground ,(gc 'fg+1)
:background ,(gc 'bg+2))))

;; ivy
(ivy-cursor ((,c :background ,(gc 'cursor)
:foreground ,(gc 'bg-2)
:box (:line-width 1
:color ,(gc 'bg-2)
:style nil))))
(ivy-current-match ((,c :foreground ,(gc 'fg+2)
:weight bold)))
(ivy-confirm-face ((,c :inherit minibuffer-prompt
:foreground ,(gc 'green))))
(ivy-match-required-face ((,c :inherit minibuffer-prompt
:foreground ,(gc 'red))))
(ivy-virtual ((,c :foreground ,(gc 'red-2))))
(ivy-remote ((,c :foreground ,(gc 'blue+1))))
;; Ideally `ivy-minibuffer-match-face-2' should have some
;; background, but by default, ivy mixes colors (in
;; `ivy--add-face') instead of applying only one face. This
;; may look really ugly, so just disable all minibuffer match
;; faces.
(ivy-minibuffer-match-face-1 ((,c nil)))
(ivy-minibuffer-match-face-2 ((,c nil)))
(ivy-minibuffer-match-face-3 ((,c :inherit ivy-minibuffer-match-face-2)))
(ivy-minibuffer-match-face-4 ((,c :inherit ivy-minibuffer-match-face-2)))

;; linum-mode
(linum ((,c :foreground ,(gc 'fg-2))))

Expand Down

0 comments on commit e9008ef

Please sign in to comment.