mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-09 09:49:09 +02:00
Fix tab contrast in light mode, particularly in macOS terminal
This commit is contained in:
parent
b6ec7ae14c
commit
e9aa607400
2 changed files with 6 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue