mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-06-03 16:00:49 +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
|
0.41.0
|
||||||
------
|
------
|
||||||
- Bug fixes
|
- Bug fixes and improvements
|
||||||
|
|
||||||
0.40.0
|
0.40.0
|
||||||
------
|
------
|
||||||
|
|
|
@ -1954,7 +1954,7 @@ func (t *Terminal) renderPreviewScrollbar(yoff int, barLength int, barStart int)
|
||||||
t.previewer.bar[i] = bar
|
t.previewer.bar[i] = bar
|
||||||
t.pborder.Move(y, x)
|
t.pborder.Move(y, x)
|
||||||
if i >= yoff+barStart && i < yoff+barStart+barLength {
|
if i >= yoff+barStart && i < yoff+barStart+barLength {
|
||||||
t.pborder.CPrint(tui.ColScrollbar, t.scrollbar)
|
t.pborder.CPrint(tui.ColPreviewScrollbar, t.scrollbar)
|
||||||
} else {
|
} else {
|
||||||
t.pborder.Print(" ")
|
t.pborder.Print(" ")
|
||||||
}
|
}
|
||||||
|
|
|
@ -503,6 +503,7 @@ var (
|
||||||
ColPreviewBorder ColorPair
|
ColPreviewBorder ColorPair
|
||||||
ColBorderLabel ColorPair
|
ColBorderLabel ColorPair
|
||||||
ColPreviewLabel ColorPair
|
ColPreviewLabel ColorPair
|
||||||
|
ColPreviewScrollbar ColorPair
|
||||||
)
|
)
|
||||||
|
|
||||||
func EmptyTheme() *ColorTheme {
|
func EmptyTheme() *ColorTheme {
|
||||||
|
@ -721,4 +722,5 @@ func initPalette(theme *ColorTheme) {
|
||||||
ColPreviewLabel = pair(theme.PreviewLabel, theme.PreviewBg)
|
ColPreviewLabel = pair(theme.PreviewLabel, theme.PreviewBg)
|
||||||
ColPreview = pair(theme.PreviewFg, theme.PreviewBg)
|
ColPreview = pair(theme.PreviewFg, theme.PreviewBg)
|
||||||
ColPreviewBorder = pair(theme.Border, theme.PreviewBg)
|
ColPreviewBorder = pair(theme.Border, theme.PreviewBg)
|
||||||
|
ColPreviewScrollbar = pair(theme.Scrollbar, theme.PreviewBg)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user