mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-18 11:05:16 +00:00
Fix background color of spinner on the preview window
This commit is contained in:
parent
ce8a745fb4
commit
c97172bdd4
@ -1823,7 +1823,7 @@ func (t *Terminal) renderPreviewSpinner() {
|
||||
if !t.previewer.scrollable {
|
||||
if maxWidth > 0 {
|
||||
t.pwindow.Move(0, maxWidth-1)
|
||||
t.pwindow.CPrint(tui.ColSpinner, spin)
|
||||
t.pwindow.CPrint(tui.ColPreviewSpinner, spin)
|
||||
}
|
||||
} else {
|
||||
offsetString := fmt.Sprintf("%d/%d", t.previewer.offset+1, numLines)
|
||||
@ -1835,7 +1835,7 @@ func (t *Terminal) renderPreviewSpinner() {
|
||||
pos := maxWidth - t.displayWidth(offsetRunes)
|
||||
t.pwindow.Move(0, pos)
|
||||
if maxWidth > 0 {
|
||||
t.pwindow.CPrint(tui.ColSpinner, spin)
|
||||
t.pwindow.CPrint(tui.ColPreviewSpinner, spin)
|
||||
t.pwindow.CPrint(tui.ColInfo.WithAttr(tui.Reverse), string(offsetRunes))
|
||||
}
|
||||
}
|
||||
|
@ -556,6 +556,7 @@ var (
|
||||
ColBorderLabel ColorPair
|
||||
ColPreviewLabel ColorPair
|
||||
ColPreviewScrollbar ColorPair
|
||||
ColPreviewSpinner ColorPair
|
||||
)
|
||||
|
||||
func EmptyTheme() *ColorTheme {
|
||||
@ -787,4 +788,5 @@ func initPalette(theme *ColorTheme) {
|
||||
ColPreview = pair(theme.PreviewFg, theme.PreviewBg)
|
||||
ColPreviewBorder = pair(theme.PreviewBorder, theme.PreviewBg)
|
||||
ColPreviewScrollbar = pair(theme.PreviewScrollbar, theme.PreviewBg)
|
||||
ColPreviewSpinner = pair(theme.Spinner, theme.PreviewBg)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user