mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-07 04:34:03 -05:00
feat(render): add configurable attribute colors for bold, italic, and underline
Introduce optional color theme entries for bold, italic, and underline text when the foreground color is default. This allows legacy applications using SGR attributes instead of explicit colors to be rendered with user-defined attribute colors. Brightening via `bold_in_bright` is suppressed when an explicit attribute color is applied. This adds compatibility with the rxvt-unicode settings `colorBD`, `colorIT` and `colorUL`. Fixes: #2261
This commit is contained in:
parent
b78cc92322
commit
4864140c10
8 changed files with 60 additions and 2 deletions
|
|
@ -1109,6 +1109,21 @@ The default theme used is *colors-dark*, unless
|
|||
Foreground (text) and background color to use in selected
|
||||
text. Default: _inverse foreground/background_.
|
||||
|
||||
*bold*
|
||||
Specifies the color to use for bold characters when the foreground color is the default (undefined).
|
||||
This setting applies primarily to legacy applications that utilize SGR 1 codes instead of SGR 9 codes.
|
||||
If not set, the behavior defaults to the terminal’s standard bold rendering. Default: unset.
|
||||
|
||||
*italic*
|
||||
Specifies the color to use for italic characters when the foreground color is the default (undefined).
|
||||
This setting applies primarily to legacy applications that utilize SGR 1 codes instead of SGR 9 codes.
|
||||
If not set, the behavior defaults to the terminal’s standard italic rendering. Default: unset.
|
||||
|
||||
*underline*
|
||||
Specifies the color to use for underline characters when the foreground color is the default (undefined).
|
||||
This setting applies primarily to legacy applications that utilize SGR 1 codes instead of SGR 9 codes.
|
||||
If not set, the behavior defaults to the terminal’s standard underline rendering. Default: unset.
|
||||
|
||||
*jump-labels*
|
||||
Two color values specifying the foreground (text) and background
|
||||
colors to use when rendering jump labels in URL mode. Default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue