diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2023-05-01 16:18:26 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2023-05-01 16:18:26 +0900 |
| commit | e619b7c4f4e0da09b87a239b8f52ad909bb5f1e0 (patch) | |
| tree | 1935c3100dd0cf7d224db6794c6842303925557c /src | |
| parent | b7c2e8cb678d12c73c497fdec5c0cad8f32a6814 (diff) | |
| download | fzf-e619b7c4f4e0da09b87a239b8f52ad909bb5f1e0.tar.gz | |
Fix the background color of the scrollbar inside the preview window
Diffstat (limited to 'src')
| -rw-r--r-- | src/terminal.go | 2 | ||||
| -rw-r--r-- | src/tui/tui.go | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/terminal.go b/src/terminal.go index d69d7976..1b44bf3e 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -1954,7 +1954,7 @@ func (t *Terminal) renderPreviewScrollbar(yoff int, barLength int, barStart int) t.previewer.bar[i] = bar t.pborder.Move(y, x) if i >= yoff+barStart && i < yoff+barStart+barLength { - t.pborder.CPrint(tui.ColScrollbar, t.scrollbar) + t.pborder.CPrint(tui.ColPreviewScrollbar, t.scrollbar) } else { t.pborder.Print(" ") } diff --git a/src/tui/tui.go b/src/tui/tui.go index a0e0b487..73ed0c97 100644 --- a/src/tui/tui.go +++ b/src/tui/tui.go @@ -503,6 +503,7 @@ var ( ColPreviewBorder ColorPair ColBorderLabel ColorPair ColPreviewLabel ColorPair + ColPreviewScrollbar ColorPair ) func EmptyTheme() *ColorTheme { @@ -721,4 +722,5 @@ func initPalette(theme *ColorTheme) { ColPreviewLabel = pair(theme.PreviewLabel, theme.PreviewBg) ColPreview = pair(theme.PreviewFg, theme.PreviewBg) ColPreviewBorder = pair(theme.Border, theme.PreviewBg) + ColPreviewScrollbar = pair(theme.Scrollbar, theme.PreviewBg) } |
