refactor the rest of the themes to use refresh. resolves #288.

This commit is contained in:
Bailey Ling
2013-09-27 21:43:32 -04:00
parent 2f3b33daae
commit a81d1cd9c7
5 changed files with 55 additions and 76 deletions
+3 -6
View File
@@ -1,6 +1,6 @@
let g:airline#themes#monochrome#palette = {}
function! s:load()
function! airline#themes#monochrome#refresh()
let s:SL = airline#themes#get_highlight('StatusLine')
let g:airline#themes#monochrome#palette.normal = airline#themes#generate_color_map(s:SL, s:SL, s:SL)
let g:airline#themes#monochrome#palette.insert = g:airline#themes#monochrome#palette.normal
@@ -11,8 +11,5 @@ function! s:load()
let g:airline#themes#monochrome#palette.inactive = airline#themes#generate_color_map(s:SLNC, s:SLNC, s:SLNC)
endfunction
call s:load()
augroup airline_monochrome
autocmd!
autocmd ColorScheme * call <sid>load()
augroup END
call airline#themes#monochrome#refresh()