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:
parent
914e1bc80e
commit
7c91fa0d72
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user