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:
CaptainMcClellan
2017-03-03 10:48:51 -06:00
committed by Zachary Yedidia
parent d949b58fc0
commit 9f9b5def41
7 changed files with 16 additions and 14 deletions

View File

@@ -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++
}

View File

@@ -37,3 +37,4 @@ color-link gutter-error ",red"
color-link gutter-warning "red"
color-link color-column "cyan"
color-link underlined.url "underline blue, white"
color-link divider "blue"

View File

@@ -23,11 +23,9 @@ color-link error "bold ,brightred"
color-link todo "underline ,brightyellow"
color-link indent-char "bold ,brightgreen"
color-link line-number "green"
color-link line-number.scrollbar "green"
color-link statusline "black,green"
color-link tabbar "black,magenta"
color-link current-line-number "bold magenta"
color-link current-line-number.scroller "red"
color-link gutter-error ",red"
color-link gutter-warning "red"
color-link color-column "bold green"

View File

@@ -16,11 +16,9 @@ color-link error ",brightred"
color-link todo ",brightyellow"
color-link indent-char ",cyan"
color-link line-number "green"
color-link line-number.scrollbar "white"
color-link statusline "black,cyan"
color-link tabbar "black,cyan"
color-link current-line-number "black,cyan"
color-link current-line-number.scroller "cyan"
color-link cursor-line "black,cyan"
color-link gutter-error ",red"
color-link gutter-warning "red"

View File

@@ -19,11 +19,9 @@ color-link error ",brightred"
color-link todo ",brightyellow"
color-link indent-char ",brightgreen"
color-link line-number "black"
color-link line-number.scrollbar "green"
color-link statusline "white,black"
color-link tabbar "white,black"
color-link current-line-number "blue"
color-link current-line-number.scroller "red"
color-link gutter-error ",red"
color-link gutter-warning "red"
color-link color-column "black"

View File

@@ -21,3 +21,5 @@ color-link color-column "white"
color-link type.extended "default"
#No bracket highlighting.
color-link symbol.brackets "default"
#Color shebangs the comment color
color-link preproc.shebang "comment"

View File

@@ -52,7 +52,7 @@ Micro comes with a number of colorschemes by default. Here is the list:
* paper-tc: A nice minimalist theme with a light background, good for editing documents on.
Requires true color to look its best. Not to be confused with `-paper` suffixed themes.
* geany: Colorscheme
* geany: Colorscheme based on geany's default highlighting.
* geany-alt-tc: Based on an alternate theme bundled with geany.
@@ -140,9 +140,9 @@ Here is a list of the colorscheme groups that you can use:
* underlined
* error
* todo
* statusline (color of the statusline)
* tabbar ( color of the tabbar that lists open files.)
* indent-char (color of the character which indicates tabs if the option is enabled)
* statusline ( Color of the statusline)
* tabbar ( Color of the tabbar that lists open files.)
* indent-char ( Color of the character which indicates tabs if the option is enabled)
* line-number
* gutter-error
* gutter-warning
@@ -150,6 +150,7 @@ Here is a list of the colorscheme groups that you can use:
* current-line-number
* color-column
* ignore
* divider ( Color of the divider between vertical splits. )
Colorschemes must be placed in the `~/.config/micro/colorschemes` directory to be used.