[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/alect-themes 4e22e48 095/269: Add definition of auxiliary
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/alect-themes 4e22e48 095/269: Add definition of auxiliary faces |
Date: |
Thu, 21 Oct 2021 17:58:57 -0400 (EDT) |
branch: elpa/alect-themes
commit 4e22e488cabb16679f197fe6d20c930302775580
Author: Alex Kost <alezost@gmail.com>
Commit: Alex Kost <alezost@gmail.com>
Add definition of auxiliary faces
---
alect-themes.el | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 53 insertions(+), 5 deletions(-)
diff --git a/alect-themes.el b/alect-themes.el
index 78049c5..8ef4660 100644
--- a/alect-themes.el
+++ b/alect-themes.el
@@ -92,21 +92,69 @@ values should be in matching order)."
"Options for alect color themes."
:group 'faces)
+(defface alect-prompt
+ '((t nil))
+ "Auxiliary face for inheriting by some other faces.
+Used for various prompts like `minibuffer-prompt' or `eshell-prompt'."
+ :group 'alect)
+
+(defface alect-time
+ '((t nil))
+ "Auxiliary face for inheriting by some other faces.
+Used for date/time faces like `org-date' or `erc-timestamp-face'."
+ :group 'alect)
+
+(defface alect-selected-item
+ '((t nil))
+ "Auxiliary face for inheriting by some other faces.
+Used for selected items like `org-date-selected' or
+`gnus-summary-selected'."
+ :group 'alect)
+
+(defface alect-title
+ '((t nil))
+ "Auxiliary face for inheriting by some other faces.
+Used for titles without levels like `dired-header' or `magit-header'."
+ :group 'alect)
+
+(defmacro alect-define-color-level-face (n)
+ "Define face for color level N.
+Name of the defined face is `alect-color-level-N'."
+ `(defface ,(intern (format "alect-color-level-%s" n))
+ '((t nil))
+ "Auxiliary face for inheriting by some other faces."
+ :group 'alect))
+
+(let (i)
+ (cl-loop for i from 1 to 12
+ do (eval `(alect-define-color-level-face ,i))))
+
+(defmacro alect-define-title-face (n)
+ "Define title face for level N.
+Name of the defined face is `alect-title-N'."
+ `(defface ,(intern (format "alect-title-%s" n))
+ '((t nil))
+ ,(format "Auxiliary face for inheriting by some other faces.
+Used for titles with levels like `org-level-%s' or
+`markdown-header-face-%s'." n n)
+ :group 'alect))
+
+(let (i)
+ (cl-loop for i from 1 to 8
+ do (eval `(alect-define-title-face ,i))))
+
(defcustom alect-header-height 1.13
"Height of `header-line' face."
:type 'number
:group 'alect)
(defcustom alect-single-title-height 1.13
- "Height of `alect-title' face.
-Used for titles without levels like `dired-header' or `magit-header'."
+ "Height of `alect-title' face."
:type 'number
:group 'alect)
(defcustom alect-multiple-titles-height 1.13
- "Height of `alect-title-N' faces.
-Used for titles with levels like `org-level-N' or
-`markdown-header-face-N'."
+ "Height of `alect-title-N' faces."
:type 'number
:group 'alect)
- [nongnu] elpa/alect-themes 094d361 048/269: Preserve the structure of `alect-overriding-faces', (continued)
- [nongnu] elpa/alect-themes 094d361 048/269: Preserve the structure of `alect-overriding-faces', ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes 3ff3dc4 057/269: Ignore "colors-test", ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes c919c94 067/269: Modify gnus/message headers, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes b4e288e 070/269: Add alect-title-<N> faces, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes e005f1d 074/269: Update version (0.3.5), ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes 72f6c44 075/269: Add height variables, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes 1ccf42c 083/269: Add font lock faces for regexp groups, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes c5e76cd 079/269: Update version (0.3.6), ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes 7aae27e 088/269: Modify `popup-scroll-bar-foreground-face', ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes 1887ad1 086/269: Update version (0.3.7), ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes 4e22e48 095/269: Add definition of auxiliary faces,
ELPA Syncer <=
- [nongnu] elpa/alect-themes 823ae4d 098/269: Update version (0.4) and package commentary, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes 13ac162 103/269: Add newline between sexps, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes fbbebc7 106/269: Fix color value, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes f082398 115/269: Add more aurel faces, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes 383d1b5 124/269: Modifications in palette, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes cddc3e6 121/269: Update version (0.6) and package commentary, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes 6b3ef76 123/269: Add rst faces, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes c3df5c8 128/269: Add new faces for "google-translate", ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes 63652ad 116/269: Add aurel-info-voted face, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes a24daff 146/269: Add window-divider faces, ELPA Syncer, 2021/10/21