pkg/terminal: avoid bright colors in default syntax highlighting (#2675)

These two were hard to read on default xterm or on Konsole's "White on
Black" theme. The non-bright colors still work on dark backgrounds.

See https://github.com/go-delve/delve/pull/2294#discussion_r691076091
This commit is contained in:
Johannes Altmanninger 2021-08-25 17:51:11 +02:00 committed by GitHub
parent 914e1bc80e
commit 7c91fa0d72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -111,10 +111,10 @@ func New(client service.Client, conf *config.Config) *Term {
return s
}
t.colorEscapes[colorize.KeywordStyle] = conf.SourceListKeywordColor
t.colorEscapes[colorize.StringStyle] = wd(conf.SourceListStringColor, ansiBrGreen)
t.colorEscapes[colorize.StringStyle] = wd(conf.SourceListStringColor, ansiGreen)
t.colorEscapes[colorize.NumberStyle] = conf.SourceListNumberColor
t.colorEscapes[colorize.CommentStyle] = wd(conf.SourceListCommentColor, ansiBrMagenta)
t.colorEscapes[colorize.ArrowStyle] = wd(conf.SourceListArrowColor, ansiBrYellow)
t.colorEscapes[colorize.ArrowStyle] = wd(conf.SourceListArrowColor, ansiYellow)
switch x := conf.SourceListLineColor.(type) {
case string:
t.colorEscapes[colorize.LineNoStyle] = x