give warning section an orange color by default (#177).

This commit is contained in:
Bailey Ling 2013-09-01 10:06:25 -04:00
parent 501e341589
commit 62fa3c37e4
2 changed files with 6 additions and 1 deletions

View File

@ -26,7 +26,6 @@ function! airline#add_inactive_statusline_func(name)
endfunction
function! airline#load_theme()
highlight! default link airline_warning WarningMsg
call airline#highlighter#load_theme()
call airline#extensions#load_theme()
endfunction

View File

@ -54,6 +54,12 @@ function! airline#themes#get_highlight2(fg, bg, ...)
endfunction
function! airline#themes#patch(palette)
for mode in keys(a:palette)
if !has_key(a:palette[mode], 'airline_warning')
let a:palette[mode]['airline_warning'] = [ '#000000', '#df5f00', 232, 166 ]
endif
endfor
" this is a pretty heavy handed, but it works...
" basically, look for the 'airline_file' group and copy the bg
" colors from 'airline_c' into it.