Fix tab contrast in light mode, particularly in macOS terminal

This commit is contained in:
Christian Rocha 2021-03-11 10:48:27 -05:00
commit e9aa607400
No known key found for this signature in database
GPG key ID: D6CC7A16E5878018
2 changed files with 6 additions and 2 deletions

View file

@ -1289,9 +1289,9 @@ func (m stashModel) headerView() string {
}
if m.sectionIndex == i && len(m.sections) > 1 {
s = brightGrayFg(s)
s = selectedTabColor(s)
} else {
s = grayFg(s)
s = tabColor(s)
}
sections = append(sections, s)
}

View file

@ -42,6 +42,10 @@ var (
dullYellowFg = newFgStyle(lib.NewColorPair("#9BA92F", "#6BCB94")) // renders light green on light backgrounds
redFg = newFgStyle(lib.Red)
faintRedFg = newFgStyle(lib.FaintRed)
// Ultimately, we should transition to named styles
tabColor = newFgStyle(lib.NewColorPair("#626262", "#909090"))
selectedTabColor = newFgStyle(lib.NewColorPair("#979797", "#332F33"))
)
// Returns a termenv style with foreground and background options.