summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2023-05-01 16:18:26 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2023-05-01 16:18:26 +0900
commite619b7c4f4e0da09b87a239b8f52ad909bb5f1e0 (patch)
tree1935c3100dd0cf7d224db6794c6842303925557c /src
parentb7c2e8cb678d12c73c497fdec5c0cad8f32a6814 (diff)
downloadfzf-e619b7c4f4e0da09b87a239b8f52ad909bb5f1e0.tar.gz
Fix the background color of the scrollbar inside the preview window
Diffstat (limited to 'src')
-rw-r--r--src/terminal.go2
-rw-r--r--src/tui/tui.go2
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)
}