Permalink
Browse files

Merge pull request #15 from richo/configurable_background

Configurable background color.

g:jellybeans_background_color[_256]
  • Loading branch information...
2 parents 2c30609 + 3fe8b2f commit 42ff995c38eeefe954a5a6cb9b110d6e7ee71385 @nanotech nanotech committed May 25, 2012
Showing with 14 additions and 7 deletions.
  1. +14 −7 colors/jellybeans.vim
View
@@ -16,7 +16,7 @@
" Contributors: Daniel Herbert <http://pocket-ninja.com/>,
" Henry So, Jr. <henryso@panix.com>,
" David Liang <bmdavll at gmail dot com>,
-" Rich Healey (richoH),
+" Rich Healey (richo),
" Andrew Wong (w0ng)
"
" Copyright (c) 2009-2012 NanoTech
@@ -289,7 +289,11 @@ fun! s:X(group, fg, bg, attr, lcfg, lcbg)
endfun
" }}}
-call s:X("Normal","e8e8d3","151515","","White","")
+if !exists("g:jellybeans_background_color")
+ let g:jellybeans_background_color = "151515"
+end
+
+call s:X("Normal","e8e8d3",g:jellybeans_background_color,"","White","")
set background=dark
if !exists("g:jellybeans_use_lowcolor_black") || g:jellybeans_use_lowcolor_black
@@ -315,7 +319,7 @@ endif
call s:X("Visual","","404040","","",s:termBlack)
call s:X("Cursor","","b0d0f0","","","")
-call s:X("LineNr","605958","151515","none",s:termBlack,"")
+call s:X("LineNr","605958",g:jellybeans_background_color,"none",s:termBlack,"")
call s:X("Comment","888888","","italic","Grey","")
call s:X("Todo","808080","","bold","White",s:termBlack)
@@ -347,7 +351,7 @@ call s:X("PreProc","8fbfdc","","","LightBlue","")
hi! link Operator Normal
call s:X("Type","ffb964","","","Yellow","")
-call s:X("NonText","606060","151515","",s:termBlack,"")
+call s:X("NonText","606060",g:jellybeans_background_color,"",s:termBlack,"")
call s:X("SpecialKey","444444","1c1c1c","",s:termBlack,"")
@@ -466,6 +470,9 @@ call s:X("IndentGuidesEven","","1b1b1b","","","")
hi! link TagListFileName Directory
call s:X("PreciseJumpTarget","B9ED67","405026","","White","Green")
+if !exists("g:jellybeans_background_color_256")
+ let g:jellybeans_background_color_256=233
+end
" Manual overrides for 256-color terminals. Dark colors auto-map badly.
if !s:low_color
hi StatusLineNC ctermbg=235
@@ -475,10 +482,10 @@ if !s:low_color
hi CursorColumn ctermbg=234
hi CursorLine ctermbg=234
hi SpecialKey ctermbg=234
- hi NonText ctermbg=233
- hi LineNr ctermbg=233
+ exec "hi NonText ctermbg=".g:jellybeans_background_color_256
+ exec "hi LineNr ctermbg=".g:jellybeans_background_color_256
hi DiffText ctermfg=81
- hi Normal ctermbg=233
+ exec "hi Normal ctermbg=".g:jellybeans_background_color_256
hi DbgBreakPt ctermbg=53
hi IndentGuidesOdd ctermbg=235
hi IndentGuidesEven ctermbg=234

0 comments on commit 42ff995

Please sign in to comment.