Skip to content
Myr

Fix the background color of the scrollbar inside the preview window

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent b7c2e8c · Browse files · 3 files+4 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+4 added−2 removed

  • other:+4 added−2 removed

3 files+4 added−2 removed

modified:src/tui/tui.go+2 added
501 unmodified lines
502 ColPreview ColorPair503 ColPreviewBorder ColorPair504 ColBorderLabel ColorPair505 ColPreviewLabel ColorPair506 ColPreviewScrollbar ColorPair507)508509func EmptyTheme() *ColorTheme {510 return &ColorTheme{
210 unmodified lines
721 ColBorderLabel = pair(theme.BorderLabel, theme.Bg)722 ColPreviewLabel = pair(theme.PreviewLabel, theme.PreviewBg)723 ColPreview = pair(theme.PreviewFg, theme.PreviewBg)724 ColPreviewBorder = pair(theme.Border, theme.PreviewBg)725 ColPreviewScrollbar = pair(theme.Scrollbar, theme.PreviewBg)726}
modified:src/terminal.go+1 added-1 removed
1952 unmodified lines
19531954 t.previewer.bar[i] = bar1955 t.pborder.Move(y, x)1956 if i >= yoff+barStart && i < yoff+barStart+barLength {1957 t.pborder.CPrint(tui.ColScrollbar, t.scrollbar)1957 t.pborder.CPrint(tui.ColPreviewScrollbar, t.scrollbar)1958 } else {1959 t.pborder.Print(" ")1960 }1961 }
1734 unmodified lines
modified:CHANGELOG.md+1 added-1 removed
1 unmodified line
2=========340.41.05------6- Bug fixes6- Bug fixes and improvements780.40.09------10- Added `zero` event that is triggered when there's no match
1626 unmodified lines