Skip to content

Commit

Permalink
Fix tab contrast in light mode, particularly in macOS terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
meowgorithm committed Mar 11, 2021
1 parent b6ec7ae commit e9aa607
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/stash.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
4 changes: 4 additions & 0 deletions ui/styles.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e9aa607

Please sign in to comment.