# HG changeset patch # User Steve Losh # Date 1352051104 18000 # Node ID 9e4a52112a78ce74db15ce9af3d81dacc982a1d3 # Parent 89b93b086f099050eb5c5c5121cb18cc01b61f3e Add g:badwolf_tabline setting. Thanks to @jbernard on GitHub for the idea. diff -r 89b93b086f09 -r 9e4a52112a78 .hgignore --- a/.hgignore Tue Oct 23 14:40:21 2012 +0200 +++ b/.hgignore Sun Nov 04 12:45:04 2012 -0500 @@ -8,3 +8,4 @@ *~ .ropeproject tags +tags.bak diff -r 89b93b086f09 -r 9e4a52112a78 README.markdown --- a/README.markdown Tue Oct 23 14:40:21 2012 +0200 +++ b/README.markdown Sun Nov 04 12:45:04 2012 -0500 @@ -40,6 +40,37 @@ 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 Determines whether text inside `a` tags in HTML files will be underlined. diff -r 89b93b086f09 -r 9e4a52112a78 colors/badwolf.vim --- a/colors/badwolf.vim Tue Oct 23 14:40:21 2012 +0200 +++ b/colors/badwolf.vim Sun Nov 04 12:45:04 2012 -0500 @@ -154,6 +154,22 @@ let s:gutter = 'blackgravel' 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 ---------------------------------------------------------- @@ -171,9 +187,9 @@ call s:HL('CursorColumn', '', 'darkgravel') call s:HL('ColorColumn', '', 'darkgravel') -call s:HL('TabLine', 'plain', 'blackgravel', 'none') -call s:HL('TabLineFill', 'plain', 'blackgravel', 'none') -call s:HL('TabLineSel', 'coal', 'mediumgravel', 'none') +call s:HL('TabLine', 'plain', s:tabline, 'none') +call s:HL('TabLineFill', 'plain', s:tabline, 'none') +call s:HL('TabLineSel', 'coal', 'tardis', 'none') call s:HL('MatchParen', 'dalespale', 'darkgravel', 'bold')