9e4a52112a78

Add g:badwolf_tabline setting.

Thanks to @jbernard on GitHub for the idea.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sun, 04 Nov 2012 12:45:04 -0500
parents 89b93b086f09
children edced7450746
branches/tags (none)
files .hgignore README.markdown colors/badwolf.vim

Changes

--- 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
--- 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.
--- 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')