autogenerate bg colors for the file indicator. resolves #131.

This commit is contained in:
Bailey Ling
2013-08-18 03:25:24 +00:00
parent 45f0d896e9
commit a8692a7b97
7 changed files with 39 additions and 27 deletions
-5
View File
@@ -11,12 +11,7 @@ function! s:generate()
let s:N1 = airline#themes#get_highlight('DbgCurrent', 'bold')
let s:N2 = airline#themes#get_highlight('Folded')
let s:N3 = airline#themes#get_highlight('NonText')
" The file indicator is a special case where if the background values are
" empty the generate_color_map function will extract a matching color.
let s:file = airline#themes#get_highlight('Constant')
let s:file[1] = ''
let s:file[3] = ''
let g:airline#themes#jellybeans#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3, s:file)
let g:airline#themes#jellybeans#palette.normal_modified = {