mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-09-03 21:36:56 +08:00
refactor the rest of the themes to use refresh. resolves #288.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user