mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-08 17:24:05 +00:00
Fix the background color of the scrollbar inside the preview window
This commit is contained in:
parent
b7c2e8cb67
commit
e619b7c4f4
@ -3,7 +3,7 @@ CHANGELOG
|
||||
|
||||
0.41.0
|
||||
------
|
||||
- Bug fixes
|
||||
- Bug fixes and improvements
|
||||
|
||||
0.40.0
|
||||
------
|
||||
|
@ -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(" ")
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user