From 87a1e67bb21a24ebedf6b8df81387ddac20f85de Mon Sep 17 00:00:00 2001 From: Steve Losh Date: Sun, 4 Nov 2012 12:45:04 -0500 Subject: [PATCH] Add g:badwolf_tabline setting. Thanks to @jbernard on GitHub for the idea. --- .hgignore | 1 + README.markdown | 31 +++++++++++++++++++++++++++++++ colors/badwolf.vim | 22 +++++++++++++++++++--- 3 files changed, 51 insertions(+), 3 deletions(-) diff --git a/.hgignore b/.hgignore index decd32a..35fa371 100644 --- a/.hgignore +++ b/.hgignore @@ -8,3 +8,4 @@ syntax: glob *~ .ropeproject tags +tags.bak diff --git a/README.markdown b/README.markdown index 0635ea2..0392f1a 100644 --- a/README.markdown +++ b/README.markdown @@ -40,6 +40,37 @@ Configuration 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 --git a/colors/badwolf.vim b/colors/badwolf.vim index e756090..6ae53bf 100644 --- a/colors/badwolf.vim +++ b/colors/badwolf.vim @@ -154,6 +154,22 @@ else 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('CursorLine', '', 'darkgravel', 'none') 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')