Fix the background color of the scrollbar inside the preview window

pull/3275/head
Junegunn Choi 1 year ago
parent b7c2e8cb67
commit e619b7c4f4
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -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…
Cancel
Save