[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/indent-bars 0638ba1ace 168/431: Customize the font weig
From: |
ELPA Syncer |
Subject: |
[elpa] externals/indent-bars 0638ba1ace 168/431: Customize the font weight of the no-stipple character |
Date: |
Mon, 16 Sep 2024 12:59:24 -0400 (EDT) |
branch: externals/indent-bars
commit 0638ba1ace061d20efde82a50a89a4f00b431739
Author: Yuwei Tian <ibluefocus@outlook.com>
Commit: Yuwei Tian <ibluefocus@outlook.com>
Customize the font weight of the no-stipple character
---
indent-bars.el | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/indent-bars.el b/indent-bars.el
index 8ce140ba9d..4d30ac8431 100644
--- a/indent-bars.el
+++ b/indent-bars.el
@@ -336,6 +336,17 @@ specifies using character bars exclusively. See
:type 'char
:group 'indent-bars)
+(defcustom indent-bars-no-stipple-char-font-weight nil
+ "Font weight to use to draw the character bars.
+If weight is nil or unspecified, a regular font is assumed.
+If non-nil, set the no-stipple character font weight accordingly."
+ :type `(choice
+ (const nil)
+ (const unspecified)
+ ,@(mapcar (lambda (item) (list 'const (aref item 1)))
+ font-weight-table))
+ :group 'indent-bars)
+
(defcustom indent-bars-unspecified-bg-color "black"
"Color to use as the frame background color if unspecified.
Unless actively set, most terminal frames do not have a
@@ -571,8 +582,10 @@ Create for character size W x H with offset ROT."
(defun indent-bars--calculate-face-spec (depth)
"Calculate the face spec for indentation bar at an indentation DEPTH.
DEPTH starts at 1."
- `((t . ( :inherit indent-bars-stipple
- :foreground ,(indent-bars--get-color depth)))))
+ `((t . (:inherit indent-bars-stipple
+ ,@(when indent-bars-no-stipple-char-font-weight
+ `(:weight ,indent-bars-no-stipple-char-font-weight))
+ :foreground ,(indent-bars--get-color depth)))))
(defun indent-bars--create-faces (num &optional redefine)
"Create bar faces up to depth NUM, redefining them if REDEFINE is non-nil.
- [elpa] externals/indent-bars 674b9d4b75 073/431: bump version, (continued)
- [elpa] externals/indent-bars 674b9d4b75 073/431: bump version, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 138bbab23f 106/431: Update examples.md, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars cc1a3143cb 113/431: Calc blank line current-indent at beginning of prior line, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 6192a63abe 066/431: README: fix stipple test, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 0ce041ed59 084/431: Update README.md, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 880236eb59 115/431: Use a compiled query-capture to find uppermost containing list, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 30a4a63f11 138/431: highlight-current-depth: use new ON-BAR capability for depth, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 7957d7a2d3 135/431: draw-line: handle 1 bar case correctly, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars bb857e344f 126/431: Use starting-column instead of a fixed spacing offset, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 3249aafe0d 152/431: Improve whatsnew, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 0638ba1ace 168/431: Customize the font weight of the no-stipple character,
ELPA Syncer <=
- [elpa] externals/indent-bars b0ba6ba4ba 147/431: handle-blank-lines: simplify, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars aa3d09ceff 173/431: Update README.md, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars e2a0274e8b 164/431: Make no-descend-string a local symbol for configuring string type, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars dca608724d 183/431: README: mention new depth highlight timer and config, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars a618015bb5 145/431: Add treesit before/after images, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 581a51d3ae 150/431: README: improve features list and add blank/string treesit config, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars ce7fb0641c 189/431: refactoring treesitter to new file: initial stage, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 6df95da4b1 157/431: README.md: Use current defaults for first image, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 2d30dc37cc 206/431: indent-bars-ts: comment improvements, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars d5f393ac4c 207/431: Add PCH for scope update, ELPA Syncer, 2024/09/16