Add g:badwolf_tabline setting.

Thanks to @jbernard on GitHub for the idea.
This commit is contained in:
Steve Losh
2012-11-04 12:45:04 -05:00
parent 41ece91bbf
commit 87a1e67bb2
3 changed files with 51 additions and 3 deletions

View File

@@ -8,3 +8,4 @@ syntax: glob
*~ *~
.ropeproject .ropeproject
tags tags
tags.bak

View File

@@ -40,6 +40,37 @@ Configuration
There are a few settings you can use to tweak how Bad Wolf looks. There are a few settings you can use to tweak how Bad Wolf looks.
### g:badwolf\_darkgutter
Determines whether the line number, sign column, and fold column are rendered
darker than the normal background, or the same.
" Make the gutters darker than the background.
let g:badwolf_darkgutter = 1
Default: `0` (off, gutters are the same as the background)
### g:badwolf\_tabline
Determines how light to render the background of the tab line (the line at the
top of the screen containing the various tabs (only in console mode)).
Can be set to `0`, `1`, `2`, or `3`.
" Make the tab line darker than the background.
let g:badwolf_tabline = 0
" Make the tab line the same color as the background.
let g:badwolf_tabline = 1
" Make the tab line lighter than the background.
let g:badwolf_tabline = 2
" Make the tab line much lighter than the background.
let g:badwolf_tabline = 3
Default: `1` (same color as the background)
### g:badwolf\_html\_link\_underline ### g:badwolf\_html\_link\_underline
Determines whether text inside `a` tags in HTML files will be underlined. Determines whether text inside `a` tags in HTML files will be underlined.

View File

@@ -154,6 +154,22 @@ else
let s:gutter = 'blackgravel' let s:gutter = 'blackgravel'
endif endif
if exists('g:badwolf_tabline')
if g:badwolf_tabline == 0
let s:tabline = 'blackestgravel'
elseif g:badwolf_tabline == 1
let s:tabline = 'blackgravel'
elseif g:badwolf_tabline == 2
let s:tabline = 'darkgravel'
elseif g:badwolf_tabline == 3
let s:tabline = 'deepgravel'
else
let s:tabline = 'blackestgravel'
endif
else
let s:tabline = 'blackgravel'
endif
" }}} " }}}
" Actual colorscheme ---------------------------------------------------------- " Actual colorscheme ----------------------------------------------------------
@@ -171,9 +187,9 @@ call s:HL('CursorLine', '', 'darkgravel', 'none')
call s:HL('CursorColumn', '', 'darkgravel') call s:HL('CursorColumn', '', 'darkgravel')
call s:HL('ColorColumn', '', 'darkgravel') call s:HL('ColorColumn', '', 'darkgravel')
call s:HL('TabLine', 'plain', 'blackgravel', 'none') call s:HL('TabLine', 'plain', s:tabline, 'none')
call s:HL('TabLineFill', 'plain', 'blackgravel', 'none') call s:HL('TabLineFill', 'plain', s:tabline, 'none')
call s:HL('TabLineSel', 'coal', 'mediumgravel', 'none') call s:HL('TabLineSel', 'coal', 'tardis', 'none')
call s:HL('MatchParen', 'dalespale', 'darkgravel', 'bold') call s:HL('MatchParen', 'dalespale', 'darkgravel', 'bold')