mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-26 02:02:14 +02:00
hints kitten: The option to set the text color for hints now allows arbitrary colors
Fixes #7150
This commit is contained in:
@@ -167,7 +167,7 @@ func main(_ *cli.Command, o *Options, args []string) (rc int, err error) {
|
||||
fctx := style.Context{AllowEscapeCodes: true}
|
||||
faint := fctx.SprintFunc("dim")
|
||||
hint_style := fctx.SprintFunc(fmt.Sprintf("fg=%s bg=%s bold", o.HintsForegroundColor, o.HintsBackgroundColor))
|
||||
text_style := fctx.SprintFunc(fmt.Sprintf("fg=bright-%s bold", o.HintsTextColor))
|
||||
text_style := fctx.SprintFunc(fmt.Sprintf("fg=%s bold", o.HintsTextColor))
|
||||
|
||||
highlight_mark := func(m *Mark, mark_text string) string {
|
||||
hint := encode_hint(m.Index, alphabet)
|
||||
|
||||
@@ -215,19 +215,25 @@ bottom.
|
||||
--hints-foreground-color
|
||||
default=black
|
||||
type=str
|
||||
The foreground color for hints.
|
||||
The foreground color for hints. You can use color names or hex values. For the eight basic
|
||||
named terminal colors you can also use the :code:`bright-` prefix to get the bright variant of the
|
||||
color.
|
||||
|
||||
|
||||
--hints-background-color
|
||||
default=green
|
||||
type=str
|
||||
The background color for hints.
|
||||
The background color for hints. You can use color names or hex values. For the eight basic
|
||||
named terminal colors you can also use the :code:`bright-` prefix to get the bright variant of the
|
||||
color.
|
||||
|
||||
|
||||
--hints-text-color
|
||||
default=gray
|
||||
default=bright-gray
|
||||
type=str
|
||||
The foreground color for text pointed to by the hints.
|
||||
The foreground color for text pointed to by the hints. You can use color names or hex values. For the eight basic
|
||||
named terminal colors you can also use the :code:`bright-` prefix to get the bright variant of the
|
||||
color.
|
||||
|
||||
|
||||
--customize-processing
|
||||
|
||||
Reference in New Issue
Block a user