Skip to content
Myr

Make preview-scrollbar color conditionally inherit from scrollbar color

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 bd3e65d · Browse files · 1 file+15 added−1 removed
This commit

State

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

Diff stats

1 file+15 added−1 removed

  • other:+15 added−1 removed

1 file+15 added−1 removed

modified:src/tui/tui.go+15 added-1 removed
895 unmodified lines
896 theme.Header = o(baseTheme.Header, theme.Header)897 theme.Border = o(baseTheme.Border, theme.Border)898 theme.BorderLabel = o(baseTheme.BorderLabel, theme.BorderLabel)899900 undefined := NewColorAttr()901 scrollbarDefined := theme.Scrollbar != undefined902 previewBorderDefined := theme.PreviewBorder != undefined903904 // These colors are not defined in the base themes905 theme.ListFg = o(theme.Fg, theme.ListFg)906 theme.ListBg = o(theme.Bg, theme.ListBg)907 theme.SelectedFg = o(theme.ListFg, theme.SelectedFg)
8 unmodified lines
916 theme.ListLabel = o(theme.BorderLabel, theme.ListLabel)917 theme.ListBorder = o(theme.Border, theme.ListBorder)918 theme.Separator = o(theme.ListBorder, theme.Separator)919 theme.Scrollbar = o(theme.ListBorder, theme.Scrollbar)920 /*921 --color list-border:green922 --color scrollbar:red923 --color scrollbar:red,list-border:green924 --color scrollbar:red,preview-border:green925 */926 if scrollbarDefined && !previewBorderDefined {927 theme.PreviewScrollbar = o(theme.Scrollbar, theme.PreviewScrollbar)928 } else {916 theme.PreviewScrollbar = o(theme.PreviewBorder, theme.PreviewScrollbar)929 theme.PreviewScrollbar = o(theme.PreviewBorder, theme.PreviewScrollbar)930 }931 if hasInputWindow {932 theme.InputBg = o(theme.Bg, theme.InputBg)933 } else {934 // We shouldn't use input-bg if there's no separate input window
69 unmodified lines