mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 14:22:42 +09:00
Added theming to the Vsplit divider. (#578)
* Added title setting (Requires tcell pull!) and optimized tab display. * Changed tcell call to screen. * Fixed bad reference for getting Buffer name. * Themeable vsplit divider. * Bugfix.
This commit is contained in:
committed by
Zachary Yedidia
parent
d949b58fc0
commit
9f9b5def41
@@ -714,8 +714,12 @@ func (v *View) DisplayView() {
|
||||
}
|
||||
|
||||
if v.x != 0 {
|
||||
dividerStyle := defStyle
|
||||
if style, ok := colorscheme["divider"]; ok {
|
||||
dividerStyle = style
|
||||
}
|
||||
// Draw the split divider
|
||||
v.drawCell(screenX, screenY, '|', nil, defStyle.Reverse(true))
|
||||
v.drawCell(screenX, screenY, tcell.RuneVLine, nil, dividerStyle)
|
||||
screenX++
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user