Add scrollbar color group
Ref
@@ -736,8 +736,14 @@ func (w *BufWindow) displayScrollBar() {
barsize = 1
}
barstart := w.Y + int(float64(w.StartLine)/float64(w.Buf.LinesNum())*float64(w.Height))
+
+ scrollBarStyle := config.DefStyle.Reverse(true)
+ if style, ok := config.Colorscheme["scrollbar"]; ok {
+ scrollBarStyle = style
+ }
+
for y := barstart; y < util.Min(barstart+barsize, w.Y+bufHeight); y++ {
- screen.SetContent(scrollX, y, '|', nil, config.DefStyle.Reverse(true))
+ screen.SetContent(scrollX, y, '|', nil, scrollBarStyle)
}
}
}
