org-faces.el 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653
  1. ;;; org-faces.el --- Face definitions -*- lexical-binding: t; -*-
  2. ;; Copyright (C) 2004-2018 Free Software Foundation, Inc.
  3. ;; Author: Carsten Dominik <carsten at orgmode dot org>
  4. ;; Keywords: outlines, hypermedia, calendar, wp
  5. ;; Homepage: http://orgmode.org
  6. ;;
  7. ;; This file is part of GNU Emacs.
  8. ;;
  9. ;; GNU Emacs is free software: you can redistribute it and/or modify
  10. ;; it under the terms of the GNU General Public License as published by
  11. ;; the Free Software Foundation, either version 3 of the License, or
  12. ;; (at your option) any later version.
  13. ;; GNU Emacs is distributed in the hope that it will be useful,
  14. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. ;; GNU General Public License for more details.
  17. ;; You should have received a copy of the GNU General Public License
  18. ;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
  19. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  20. ;;
  21. ;;; Commentary:
  22. ;; This file contains the face definitions for Org.
  23. ;;; Code:
  24. (defgroup org-faces nil
  25. "Faces in Org mode."
  26. :tag "Org Faces"
  27. :group 'org-appearance)
  28. (defface org-default '((t :inherit default))
  29. "Face used for default text."
  30. :group 'org-faces)
  31. (defface org-hide
  32. '((((background light)) (:foreground "white"))
  33. (((background dark)) (:foreground "black")))
  34. "Face used to hide leading stars in headlines.
  35. The foreground color of this face should be equal to the background
  36. color of the frame."
  37. :group 'org-faces)
  38. (defface org-level-1 '((t :inherit outline-1))
  39. "Face used for level 1 headlines."
  40. :group 'org-faces)
  41. (defface org-level-2 '((t :inherit outline-2))
  42. "Face used for level 2 headlines."
  43. :group 'org-faces)
  44. (defface org-level-3 '((t :inherit outline-3))
  45. "Face used for level 3 headlines."
  46. :group 'org-faces)
  47. (defface org-level-4 '((t :inherit outline-4))
  48. "Face used for level 4 headlines."
  49. :group 'org-faces)
  50. (defface org-level-5 '((t :inherit outline-5))
  51. "Face used for level 5 headlines."
  52. :group 'org-faces)
  53. (defface org-level-6 '((t :inherit outline-6))
  54. "Face used for level 6 headlines."
  55. :group 'org-faces)
  56. (defface org-level-7 '((t :inherit outline-7))
  57. "Face used for level 7 headlines."
  58. :group 'org-faces)
  59. (defface org-level-8 '((t :inherit outline-8))
  60. "Face used for level 8 headlines."
  61. :group 'org-faces)
  62. (defface org-special-keyword '((t :inherit font-lock-keyword-face))
  63. "Face used for special keywords."
  64. :group 'org-faces)
  65. (defface org-drawer ;Copied from `font-lock-function-name-face'
  66. '((((class color) (min-colors 88) (background light)) (:foreground "Blue1"))
  67. (((class color) (min-colors 88) (background dark)) (:foreground "LightSkyBlue"))
  68. (((class color) (min-colors 16) (background light)) (:foreground "Blue"))
  69. (((class color) (min-colors 16) (background dark)) (:foreground "LightSkyBlue"))
  70. (((class color) (min-colors 8)) (:foreground "blue" :bold t))
  71. (t (:bold t)))
  72. "Face used for drawers."
  73. :group 'org-faces)
  74. (defface org-property-value nil
  75. "Face used for the value of a property."
  76. :group 'org-faces)
  77. (defface org-column
  78. '((((class color) (min-colors 16) (background light))
  79. (:background "grey90" :weight normal :slant normal :strike-through nil
  80. :underline nil))
  81. (((class color) (min-colors 16) (background dark))
  82. (:background "grey30" :weight normal :slant normal :strike-through nil
  83. :underline nil))
  84. (((class color) (min-colors 8))
  85. (:background "cyan" :foreground "black"
  86. :weight normal :slant normal :strike-through nil
  87. :underline nil))
  88. (t (:inverse-video t)))
  89. "Face for column display of entry properties.
  90. This is actually only part of the face definition for the text in column view.
  91. The following faces apply, with this priority.
  92. 1. The color of the reference face. This is normally the level fact that
  93. is used in the outline. In agenda-mode, it will be the face of the
  94. first character in the line. The color is explicitly retained to
  95. make sure that the column line still looks a bit like the structure
  96. line it is masking.
  97. 2. The `org-column' face.
  98. 3. The remaining properties of the reference face.
  99. Since column view works by putting overlays with a display property
  100. over individual characters in the buffer, the face of the underlining
  101. character (this might for example be the a TODO keyword) might still
  102. shine through in some properties. So when your column view looks
  103. funny, with \"random\" colors, weight, strike-through, try to explicitly
  104. set the properties in the `org-column' face. For example, set
  105. :underline to nil, or the :slant to `normal'."
  106. :group 'org-faces)
  107. (defface org-column-title
  108. '((((class color) (min-colors 16) (background light))
  109. (:background "grey90" :underline t :weight bold))
  110. (((class color) (min-colors 16) (background dark))
  111. (:background "grey30" :underline t :weight bold))
  112. (((class color) (min-colors 8))
  113. (:background "cyan" :foreground "black" :underline t :weight bold))
  114. (t (:inverse-video t)))
  115. "Face for column display of entry properties."
  116. :group 'org-faces)
  117. (defface org-agenda-column-dateline '((t :inherit org-column))
  118. "Face used in agenda column view for datelines with summaries."
  119. :group 'org-faces)
  120. (defface org-warning '((t :inherit font-lock-warning-face))
  121. "Face for deadlines and TODO keywords."
  122. :group 'org-faces)
  123. (defface org-archived '((t :inherit shadow))
  124. "Face for headline with the ARCHIVE tag."
  125. :group 'org-faces)
  126. (defface org-link '((t :inherit link))
  127. "Face for links."
  128. :group 'org-faces)
  129. (defface org-footnote
  130. '((((class color) (background light)) (:foreground "Purple" :underline t))
  131. (((class color) (background dark)) (:foreground "Cyan" :underline t))
  132. (t (:underline t)))
  133. "Face for footnotes."
  134. :group 'org-faces)
  135. (defface org-ellipsis
  136. '((((class color) (background light)) (:foreground "DarkGoldenrod" :underline t))
  137. (((class color) (background dark)) (:foreground "LightGoldenrod" :underline t))
  138. (t (:strike-through t)))
  139. "Face for the ellipsis in folded text."
  140. :group 'org-faces)
  141. (defface org-target
  142. '((((class color) (background light)) (:underline t))
  143. (((class color) (background dark)) (:underline t))
  144. (t (:underline t)))
  145. "Face for link targets."
  146. :group 'org-faces)
  147. (defface org-date
  148. '((((class color) (background light)) (:foreground "Purple" :underline t))
  149. (((class color) (background dark)) (:foreground "Cyan" :underline t))
  150. (t (:underline t)))
  151. "Face for date/time stamps."
  152. :group 'org-faces)
  153. (defface org-date-selected
  154. '((((class color) (min-colors 16) (background light)) (:foreground "Red1" :inverse-video t))
  155. (((class color) (min-colors 16) (background dark)) (:foreground "Pink" :inverse-video t))
  156. (((class color) (min-colors 8) (background light)) (:foreground "red" :inverse-video t))
  157. (((class color) (min-colors 8) (background dark)) (:foreground "red" :inverse-video t))
  158. (t (:inverse-video t)))
  159. "Face for highlighting the calendar day when using `org-read-date'.
  160. Using a bold face here might cause discrepancies while displaying the
  161. calendar."
  162. :group 'org-faces)
  163. (defface org-sexp-date
  164. '((((class color) (background light)) (:foreground "Purple"))
  165. (((class color) (background dark)) (:foreground "Cyan"))
  166. (t (:underline t)))
  167. "Face for diary-like sexp date specifications."
  168. :group 'org-faces)
  169. (defface org-tag '((t (:bold t)))
  170. "Default face for tags.
  171. Note that the variable `org-tag-faces' can be used to overrule this face for
  172. specific tags."
  173. :group 'org-faces)
  174. (defface org-list-dt '((t (:bold t)))
  175. "Default face for definition terms in lists."
  176. :group 'org-faces)
  177. (defface org-todo ;Copied from `font-lock-warning-face'
  178. '((((class color) (min-colors 16) (background light)) (:foreground "Red1" :bold t))
  179. (((class color) (min-colors 16) (background dark)) (:foreground "Pink" :bold t))
  180. (((class color) (min-colors 8) (background light)) (:foreground "red" :bold t))
  181. (((class color) (min-colors 8) (background dark)) (:foreground "red" :bold t))
  182. (t (:inverse-video t :bold t)))
  183. "Face for TODO keywords."
  184. :group 'org-faces)
  185. (defface org-done ;Copied from `font-lock-type-face'
  186. '((((class color) (min-colors 16) (background light)) (:foreground "ForestGreen" :bold t))
  187. (((class color) (min-colors 16) (background dark)) (:foreground "PaleGreen" :bold t))
  188. (((class color) (min-colors 8)) (:foreground "green"))
  189. (t (:bold t)))
  190. "Face used for todo keywords that indicate DONE items."
  191. :group 'org-faces)
  192. (defface org-agenda-done ;Copied from `font-lock-type-face'
  193. '((((class color) (min-colors 16) (background light)) (:foreground "ForestGreen"))
  194. (((class color) (min-colors 16) (background dark)) (:foreground "PaleGreen"))
  195. (((class color) (min-colors 8)) (:foreground "green"))
  196. (t (:bold nil)))
  197. "Face used in agenda, to indicate lines switched to DONE.
  198. This face is used to de-emphasize items that where brightly colored in the
  199. agenda because they were things to do, or overdue. The DONE state itself
  200. is of course immediately visible, but for example a passed deadline is
  201. \(by default) very bright read. This face could be simply the default face
  202. of the frame, for example."
  203. :group 'org-faces)
  204. (defface org-headline-done ;Copied from `font-lock-string-face'
  205. '((((class color) (min-colors 16) (background light)) (:foreground "RosyBrown"))
  206. (((class color) (min-colors 16) (background dark)) (:foreground "LightSalmon"))
  207. (((class color) (min-colors 8) (background light)) (:bold nil)))
  208. "Face used to indicate that a headline is DONE.
  209. This face is only used if `org-fontify-done-headline' is set. If applies
  210. to the part of the headline after the DONE keyword."
  211. :group 'org-faces)
  212. (defcustom org-faces-easy-properties
  213. '((todo . :foreground) (tag . :foreground) (priority . :foreground))
  214. "The property changes by easy faces.
  215. This is an alist, the keys show the area of application, the values
  216. can be `:foreground' or `:background'. A color string for special
  217. keywords will then be interpreted as either foreground or background
  218. color."
  219. :group 'org-faces
  220. :group 'org-todo
  221. :version "24.1"
  222. :type '(repeat
  223. (cons (choice (const todo) (const tag) (const priority))
  224. (choice (const :foreground) (const :background)))))
  225. (defcustom org-todo-keyword-faces nil
  226. "Faces for specific TODO keywords.
  227. This is a list of cons cells, with TODO keywords in the car
  228. and faces in the cdr. The face can be a symbol, a color
  229. as a string (in which case the rest is inherited from the `org-todo' face),
  230. or a property list of attributes, like
  231. (:foreground \"blue\" :weight bold :underline t).
  232. If it is a color string, the variable `org-faces-easy-properties'
  233. determines if it is a foreground or a background color."
  234. :group 'org-faces
  235. :group 'org-todo
  236. :type '(repeat
  237. (cons
  238. (string :tag "Keyword")
  239. (choice :tag "Face "
  240. (string :tag "Color")
  241. (sexp :tag "Face")))))
  242. (defface org-priority '((t :inherit font-lock-keyword-face))
  243. "Face used for priority cookies."
  244. :group 'org-faces)
  245. (defcustom org-priority-faces nil
  246. "Faces for specific Priorities.
  247. This is a list of cons cells, with priority character in the car
  248. and faces in the cdr. The face can be a symbol, a color
  249. as a string, or a property list of attributes, like
  250. (:foreground \"blue\" :weight bold :underline t).
  251. If it is a color string, the variable `org-faces-easy-properties'
  252. determines if it is a foreground or a background color."
  253. :group 'org-faces
  254. :group 'org-todo
  255. :type '(repeat
  256. (cons
  257. (character :tag "Priority")
  258. (choice :tag "Face "
  259. (string :tag "Color")
  260. (sexp :tag "Face")))))
  261. (defvar org-tags-special-faces-re nil)
  262. (defun org-set-tag-faces (var value)
  263. (set var value)
  264. (if (not value)
  265. (setq org-tags-special-faces-re nil)
  266. (setq org-tags-special-faces-re
  267. (concat ":\\(" (mapconcat 'car value "\\|") "\\):"))))
  268. (defface org-checkbox '((t :inherit bold))
  269. "Face for checkboxes."
  270. :group 'org-faces)
  271. (defface org-checkbox-statistics-todo '((t (:inherit org-todo)))
  272. "Face used for unfinished checkbox statistics."
  273. :group 'org-faces)
  274. (defface org-checkbox-statistics-done '((t (:inherit org-done)))
  275. "Face used for finished checkbox statistics."
  276. :group 'org-faces)
  277. (defcustom org-tag-faces nil
  278. "Faces for specific tags.
  279. This is a list of cons cells, with tags in the car and faces in the cdr.
  280. The face can be a symbol, a foreground color (in which case the rest is
  281. inherited from the `org-tag' face) or a property list of attributes,
  282. like (:foreground \"blue\" :weight bold :underline t).
  283. If you set this variable through customize, it will immediately be effective
  284. in new buffers and in modified lines.
  285. If you set it with Lisp, a restart of Emacs is required to activate the
  286. changes."
  287. :group 'org-faces
  288. :group 'org-tags
  289. :set 'org-set-tag-faces
  290. :type '(repeat
  291. (cons
  292. (string :tag "Tag ")
  293. (choice :tag "Face"
  294. (string :tag "Foreground color")
  295. (sexp :tag "Face")))))
  296. (defface org-table ;Copied from `font-lock-function-name-face'
  297. '((((class color) (min-colors 88) (background light)) (:foreground "Blue1"))
  298. (((class color) (min-colors 88) (background dark)) (:foreground "LightSkyBlue"))
  299. (((class color) (min-colors 16) (background light)) (:foreground "Blue"))
  300. (((class color) (min-colors 16) (background dark)) (:foreground "LightSkyBlue"))
  301. (((class color) (min-colors 8) (background light)) (:foreground "blue"))
  302. (((class color) (min-colors 8) (background dark))))
  303. "Face used for tables."
  304. :group 'org-faces)
  305. (defface org-formula
  306. '((((class color) (min-colors 88) (background light)) (:foreground "Firebrick"))
  307. (((class color) (min-colors 88) (background dark)) (:foreground "chocolate1"))
  308. (((class color) (min-colors 8) (background light)) (:foreground "red"))
  309. (((class color) (min-colors 8) (background dark)) (:foreground "red"))
  310. (t (:bold t :italic t)))
  311. "Face for formulas."
  312. :group 'org-faces)
  313. (defface org-code '((t :inherit shadow))
  314. "Face for fixed-width text like code snippets."
  315. :group 'org-faces
  316. :version "22.1")
  317. (defface org-meta-line '((t :inherit font-lock-comment-face))
  318. "Face for meta lines starting with \"#+\"."
  319. :group 'org-faces
  320. :version "22.1")
  321. (defface org-document-title
  322. '((((class color) (background light)) (:foreground "midnight blue" :weight bold))
  323. (((class color) (background dark)) (:foreground "pale turquoise" :weight bold))
  324. (t (:weight bold)))
  325. "Face for document title, i.e. that which follows the #+TITLE: keyword."
  326. :group 'org-faces)
  327. (defface org-document-info
  328. '((((class color) (background light)) (:foreground "midnight blue"))
  329. (((class color) (background dark)) (:foreground "pale turquoise"))
  330. (t nil))
  331. "Face for document date, author and email; i.e. that which
  332. follows a #+DATE:, #+AUTHOR: or #+EMAIL: keyword."
  333. :group 'org-faces)
  334. (defface org-document-info-keyword '((t :inherit shadow))
  335. "Face for #+TITLE:, #+AUTHOR:, #+EMAIL: and #+DATE: keywords."
  336. :group 'org-faces)
  337. (defface org-block '((t :inherit shadow))
  338. "Face text in #+begin ... #+end blocks.
  339. For source-blocks `org-src-block-faces' takes precedence.
  340. See also `org-fontify-quote-and-verse-blocks'."
  341. :group 'org-faces
  342. :version "26.1")
  343. (defface org-block-begin-line '((t (:inherit org-meta-line)))
  344. "Face used for the line delimiting the begin of source blocks."
  345. :group 'org-faces)
  346. (defface org-block-end-line '((t (:inherit org-block-begin-line)))
  347. "Face used for the line delimiting the end of source blocks."
  348. :group 'org-faces)
  349. (defface org-verbatim '((t (:inherit shadow)))
  350. "Face for fixed-with text like code snippets"
  351. :group 'org-faces
  352. :version "22.1")
  353. (defface org-quote '((t (:inherit org-block)))
  354. "Face for #+BEGIN_QUOTE ... #+END_QUOTE blocks."
  355. :group 'org-faces)
  356. (defface org-verse '((t (:inherit org-block)))
  357. "Face for #+BEGIN_VERSE ... #+END_VERSE blocks."
  358. :group 'org-faces)
  359. (defcustom org-fontify-quote-and-verse-blocks nil
  360. "Non-nil means, add a special face to #+begin_quote and #+begin_verse block.
  361. When nil, format these as normal Org. This is the default, because the
  362. content of these blocks will still be treated as Org syntax."
  363. :group 'org-faces
  364. :version "24.1"
  365. :type 'boolean)
  366. (defface org-clock-overlay ;Copied from `secondary-selection'
  367. '((((class color) (min-colors 88) (background light))
  368. (:background "LightGray" :foreground "black"))
  369. (((class color) (min-colors 88) (background dark))
  370. (:background "SkyBlue4" :foreground "white"))
  371. (((class color) (min-colors 16) (background light))
  372. (:background "gray" :foreground "black"))
  373. (((class color) (min-colors 16) (background dark))
  374. (:background "SkyBlue4" :foreground "white"))
  375. (((class color) (min-colors 8))
  376. (:background "cyan" :foreground "black"))
  377. (t (:inverse-video t)))
  378. "Basic face for displaying the secondary selection."
  379. :group 'org-faces)
  380. (defface org-agenda-structure ;Copied from `font-lock-function-name-face'
  381. '((((class color) (min-colors 88) (background light)) (:foreground "Blue1"))
  382. (((class color) (min-colors 88) (background dark)) (:foreground "LightSkyBlue"))
  383. (((class color) (min-colors 16) (background light)) (:foreground "Blue"))
  384. (((class color) (min-colors 16) (background dark)) (:foreground "LightSkyBlue"))
  385. (((class color) (min-colors 8)) (:foreground "blue" :bold t))
  386. (t (:bold t)))
  387. "Face used in agenda for captions and dates."
  388. :group 'org-faces)
  389. (defface org-agenda-date '((t (:inherit org-agenda-structure)))
  390. "Face used in agenda for normal days."
  391. :group 'org-faces)
  392. (defface org-agenda-date-today
  393. '((t (:inherit org-agenda-date :weight bold :italic t)))
  394. "Face used in agenda for today."
  395. :group 'org-faces)
  396. (defface org-agenda-clocking '((t (:inherit secondary-selection)))
  397. "Face marking the current clock item in the agenda."
  398. :group 'org-faces)
  399. (defface org-agenda-date-weekend '((t (:inherit org-agenda-date :weight bold)))
  400. "Face used in agenda for weekend days.
  401. See the variable `org-agenda-weekend-days' for a definition of
  402. which days belong to the weekend."
  403. :group 'org-faces)
  404. (defface org-scheduled
  405. '((((class color) (min-colors 88) (background light)) (:foreground "DarkGreen"))
  406. (((class color) (min-colors 88) (background dark)) (:foreground "PaleGreen"))
  407. (((class color) (min-colors 8)) (:foreground "green"))
  408. (t (:bold t :italic t)))
  409. "Face for items scheduled for a certain day."
  410. :group 'org-faces)
  411. (defface org-scheduled-today
  412. '((((class color) (min-colors 88) (background light)) (:foreground "DarkGreen"))
  413. (((class color) (min-colors 88) (background dark)) (:foreground "PaleGreen"))
  414. (((class color) (min-colors 8)) (:foreground "green"))
  415. (t (:bold t :italic t)))
  416. "Face for items scheduled for a certain day."
  417. :group 'org-faces)
  418. (defface org-agenda-dimmed-todo-face
  419. '((((background light)) (:foreground "grey50"))
  420. (((background dark)) (:foreground "grey50")))
  421. "Face used to dim blocked tasks in the agenda."
  422. :group 'org-faces)
  423. (defface org-scheduled-previously
  424. '((((class color) (min-colors 88) (background light)) (:foreground "Firebrick"))
  425. (((class color) (min-colors 88) (background dark)) (:foreground "chocolate1"))
  426. (((class color) (min-colors 8) (background light)) (:foreground "red"))
  427. (((class color) (min-colors 8) (background dark)) (:foreground "red" :bold t))
  428. (t (:bold t)))
  429. "Face for items scheduled previously, and not yet done."
  430. :group 'org-faces)
  431. (defface org-upcoming-deadline
  432. '((((class color) (min-colors 88) (background light)) (:foreground "Firebrick"))
  433. (((class color) (min-colors 88) (background dark)) (:foreground "chocolate1"))
  434. (((class color) (min-colors 8) (background light)) (:foreground "red"))
  435. (((class color) (min-colors 8) (background dark)) (:foreground "red" :bold t))
  436. (t (:bold t)))
  437. "Face for items scheduled previously, and not yet done."
  438. :group 'org-faces)
  439. (defcustom org-agenda-deadline-faces
  440. '((1.0 . org-warning)
  441. (0.5 . org-upcoming-deadline)
  442. (0.0 . default))
  443. "Faces for showing deadlines in the agenda.
  444. This is a list of cons cells. The cdr of each cell is a face to be used,
  445. and it can also just be like \\='(:foreground \"yellow\").
  446. Each car is a fraction of the head-warning time that must have passed for
  447. this the face in the cdr to be used for display. The numbers must be
  448. given in descending order. The head-warning time is normally taken
  449. from `org-deadline-warning-days', but can also be specified in the deadline
  450. timestamp itself, like this:
  451. DEADLINE: <2007-08-13 Mon -8d>
  452. You may use d for days, w for weeks, m for months and y for years. Months
  453. and years will only be treated in an approximate fashion (30.4 days for a
  454. month and 365.24 days for a year)."
  455. :group 'org-faces
  456. :group 'org-agenda-daily/weekly
  457. :type '(repeat
  458. (cons
  459. (number :tag "Fraction of head-warning time passed")
  460. (sexp :tag "Face"))))
  461. (defface org-agenda-restriction-lock
  462. '((((class color) (min-colors 88) (background light)) (:background "#eeeeee"))
  463. (((class color) (min-colors 88) (background dark)) (:background "#1C1C1C"))
  464. (((class color) (min-colors 16) (background light)) (:background "#eeeeee"))
  465. (((class color) (min-colors 16) (background dark)) (:background "#1C1C1C"))
  466. (((class color) (min-colors 8)) (:background "cyan" :foreground "black"))
  467. (t (:inverse-video t)))
  468. "Face for showing the agenda restriction lock."
  469. :group 'org-faces)
  470. (defface org-agenda-filter-tags '((t :inherit mode-line))
  471. "Face for tag(s) in the mode-line when filtering the agenda."
  472. :group 'org-faces)
  473. (defface org-agenda-filter-regexp '((t :inherit mode-line))
  474. "Face for regexp(s) in the mode-line when filtering the agenda."
  475. :group 'org-faces)
  476. (defface org-agenda-filter-category '((t :inherit mode-line))
  477. "Face for categories in the mode-line when filtering the agenda."
  478. :group 'org-faces)
  479. (defface org-agenda-filter-effort '((t :inherit mode-line))
  480. "Face for effort in the mode-line when filtering the agenda."
  481. :group 'org-faces)
  482. (defface org-time-grid ;Copied from `font-lock-variable-name-face'
  483. '((((class color) (min-colors 16) (background light)) (:foreground "DarkGoldenrod"))
  484. (((class color) (min-colors 16) (background dark)) (:foreground "LightGoldenrod"))
  485. (((class color) (min-colors 8)) (:foreground "yellow" :weight light)))
  486. "Face used for time grids."
  487. :group 'org-faces)
  488. (defface org-agenda-current-time '((t (:inherit org-time-grid)))
  489. "Face used to show the current time in the time grid."
  490. :group 'org-faces)
  491. (defface org-agenda-diary '((t :inherit default))
  492. "Face used for agenda entries that come from the Emacs diary."
  493. :group 'org-faces)
  494. (defface org-agenda-calendar-event '((t :inherit default))
  495. "Face used to show events and appointments in the agenda."
  496. :group 'org-faces)
  497. (defface org-agenda-calendar-sexp '((t :inherit default))
  498. "Face used to show events computed from a S-expression."
  499. :group 'org-faces)
  500. (defconst org-level-faces
  501. '(org-level-1 org-level-2 org-level-3 org-level-4
  502. org-level-5 org-level-6 org-level-7 org-level-8))
  503. (defcustom org-n-level-faces (length org-level-faces)
  504. "The number of different faces to be used for headlines.
  505. Org mode defines 8 different headline faces, so this can be at most 8.
  506. If it is less than 8, the level-1 face gets re-used for level N+1 etc."
  507. :type 'integer
  508. :group 'org-faces)
  509. (defcustom org-cycle-level-faces t
  510. "Non-nil means level styles cycle after level `org-n-level-faces'.
  511. Then so level org-n-level-faces+1 is styled like level 1.
  512. If nil, then all levels >=org-n-level-faces are styled like
  513. level org-n-level-faces"
  514. :group 'org-appearance
  515. :group 'org-faces
  516. :version "24.1"
  517. :type 'boolean)
  518. (defface org-latex-and-related
  519. (let ((font (cond ((assq :inherit custom-face-attributes)
  520. '(:inherit underline))
  521. (t '(:underline t)))))
  522. `((((class grayscale) (background light))
  523. (:foreground "DimGray" ,@font))
  524. (((class grayscale) (background dark))
  525. (:foreground "LightGray" ,@font))
  526. (((class color) (background light))
  527. (:foreground "SaddleBrown"))
  528. (((class color) (background dark))
  529. (:foreground "burlywood"))
  530. (t (,@font))))
  531. "Face used to highlight LaTeX data, entities and sub/superscript."
  532. :group 'org-faces
  533. :version "24.4"
  534. :package-version '(Org . "8.0"))
  535. (defface org-macro '((t :inherit org-latex-and-related))
  536. "Face for macros."
  537. :group 'org-faces
  538. :version "24.4"
  539. :package-version '(Org . "8.0"))
  540. (defface org-tag-group '((t :inherit org-tag))
  541. "Face for group tags."
  542. :group 'org-faces
  543. :version "24.4"
  544. :package-version '(Org . "8.0"))
  545. (defface org-mode-line-clock '((t (:inherit mode-line)))
  546. "Face used for clock display in mode line."
  547. :group 'org-faces)
  548. (defface org-mode-line-clock-overrun
  549. '((t (:inherit mode-line :background "red")))
  550. "Face used for clock display for overrun tasks in mode line."
  551. :group 'org-faces)
  552. (provide 'org-faces)
  553. ;;; org-faces.el ends here