Personal emacs config
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

138 lines
4.4 KiB

5 years ago
5 years ago
5 years ago
  1. ;;; ivy-faces.el --- Faces for Ivy -*- lexical-binding: t -*-
  2. ;; Copyright (C) 2020-2021 Free Software Foundation, Inc.
  3. ;; Author: Oleh Krehel <ohwoeowho@gmail.com>
  4. ;; Keywords: convenience
  5. ;; This program is free software; you can redistribute it and/or modify
  6. ;; it under the terms of the GNU General Public License as published by
  7. ;; the Free Software Foundation, either version 3 of the License, or
  8. ;; (at your option) any later version.
  9. ;; This program is distributed in the hope that it will be useful,
  10. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. ;; GNU General Public License for more details.
  13. ;; You should have received a copy of the GNU General Public License
  14. ;; along with this program. If not, see <https://www.gnu.org/licenses/>.
  15. ;;; Commentary:
  16. ;;; Code:
  17. (defgroup ivy-faces nil
  18. "Font-lock faces for `ivy'."
  19. :group 'ivy
  20. :group 'faces)
  21. (defface ivy-current-match
  22. '((((class color) (background light))
  23. :background "#1a4b77" :foreground "white" :extend t)
  24. (((class color) (background dark))
  25. :background "#65a7e2" :foreground "black" :extend t))
  26. "Face used by Ivy for highlighting the current match.")
  27. (defface ivy-minibuffer-match-highlight
  28. '((t :inherit highlight))
  29. "Face used by Ivy for highlighting the match under the cursor.")
  30. (defface ivy-minibuffer-match-face-1
  31. '((((class color) (background light))
  32. :background "#d3d3d3")
  33. (((class color) (background dark))
  34. :background "#555555"))
  35. "The background face for `ivy' minibuffer matches.")
  36. (defface ivy-minibuffer-match-face-2
  37. '((((class color) (background light))
  38. :background "#e99ce8" :weight bold)
  39. (((class color) (background dark))
  40. :background "#777777" :weight bold))
  41. "Face for `ivy' minibuffer matches numbered 1 modulo 3.")
  42. (defface ivy-minibuffer-match-face-3
  43. '((((class color) (background light))
  44. :background "#bbbbff" :weight bold)
  45. (((class color) (background dark))
  46. :background "#7777ff" :weight bold))
  47. "Face for `ivy' minibuffer matches numbered 2 modulo 3.")
  48. (defface ivy-minibuffer-match-face-4
  49. '((((class color) (background light))
  50. :background "#ffbbff" :weight bold)
  51. (((class color) (background dark))
  52. :background "#8a498a" :weight bold))
  53. "Face for `ivy' minibuffer matches numbered 3 modulo 3.")
  54. (defface ivy-confirm-face
  55. '((t :foreground "ForestGreen" :inherit minibuffer-prompt))
  56. "Face used by Ivy for a confirmation prompt.")
  57. (defface ivy-match-required-face
  58. '((t :foreground "red" :inherit minibuffer-prompt))
  59. "Face used by Ivy for a match required prompt.")
  60. (defface ivy-subdir
  61. '((t :inherit dired-directory))
  62. "Face used by Ivy for highlighting subdirs in the alternatives.")
  63. (defface ivy-org
  64. '((t :inherit org-level-4))
  65. "Face used by Ivy for highlighting Org buffers in the alternatives.")
  66. (defface ivy-modified-buffer
  67. '((t :inherit default))
  68. "Face used by Ivy for highlighting modified file visiting buffers.")
  69. (defface ivy-modified-outside-buffer
  70. '((t :inherit default))
  71. "Face used by Ivy for highlighting file visiting buffers modified outside Emacs.")
  72. (defface ivy-remote
  73. '((((class color) (background light))
  74. :foreground "#110099")
  75. (((class color) (background dark))
  76. :foreground "#7B6BFF"))
  77. "Face used by Ivy for highlighting remotes in the alternatives.")
  78. (defface ivy-virtual
  79. '((t :inherit font-lock-builtin-face))
  80. "Face used by Ivy for matching virtual buffer names.")
  81. (defface ivy-action
  82. '((t :inherit font-lock-builtin-face))
  83. "Face used by Ivy for displaying keys in `ivy-read-action'.")
  84. (defface ivy-highlight-face
  85. '((t :inherit highlight))
  86. "Face used by Ivy to highlight certain candidates.")
  87. (defface ivy-prompt-match
  88. '((t :inherit ivy-current-match))
  89. "Face used by Ivy for highlighting the selected prompt line.")
  90. (defface ivy-separator
  91. '((t :inherit font-lock-doc-face))
  92. "Face for multiline source separator.")
  93. (defface ivy-grep-info
  94. '((t :inherit compilation-info))
  95. "Face for highlighting grep information such as file names.")
  96. (defface ivy-grep-line-number
  97. '((t :inherit compilation-line-number))
  98. "Face for displaying line numbers in grep messages.")
  99. (defface ivy-completions-annotations
  100. '((t :inherit completions-annotations))
  101. "Face for displaying completion annotations.")
  102. (defface ivy-yanked-word
  103. '((t :inherit highlight))
  104. "Face used to highlight yanked word.")
  105. (provide 'ivy-faces)
  106. ;;; ivy-faces.el ends here