From e9aa60740040f794202d44b543ee3d1b995e99b6 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Thu, 11 Mar 2021 10:48:27 -0500 Subject: [PATCH] Fix tab contrast in light mode, particularly in macOS terminal --- ui/stash.go | 4 ++-- ui/styles.go | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ui/stash.go b/ui/stash.go index 38760d4..0df8a52 100644 --- a/ui/stash.go +++ b/ui/stash.go @@ -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) } diff --git a/ui/styles.go b/ui/styles.go index cd90d61..ed527f4 100644 --- a/ui/styles.go +++ b/ui/styles.go @@ -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.