Merge pull request #893 from blueyed/theme-base16-vertsplit

base16 theme: use Normal/VertSplit for inactive statusline
This commit is contained in:
Christian Brabandt 2016-01-20 23:31:36 +01:00
commit 0e6a0b9389

View File

@ -79,7 +79,7 @@ else
\ } \ }
let s:I1 = airline#themes#get_highlight2(['DiffText', 'bg'], ['DiffAdded', 'fg'], 'bold') let s:I1 = airline#themes#get_highlight2(['DiffText', 'bg'], ['DiffAdded', 'fg'], 'bold')
let s:I2 = airline#themes#get_highlight2(['DiffAdded', 'fg'], ['Normal', 'bg']) let s:I2 = airline#themes#get_highlight2(['DiffAdded', 'fg'], ['Visual', 'bg'])
let s:I3 = s:N3 let s:I3 = s:N3
let g:airline#themes#base16#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) let g:airline#themes#base16#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
let g:airline#themes#base16#palette.insert_modified = g:airline#themes#base16#palette.normal_modified let g:airline#themes#base16#palette.insert_modified = g:airline#themes#base16#palette.normal_modified
@ -91,17 +91,20 @@ else
let g:airline#themes#base16#palette.replace_modified = g:airline#themes#base16#palette.normal_modified let g:airline#themes#base16#palette.replace_modified = g:airline#themes#base16#palette.normal_modified
let s:V1 = airline#themes#get_highlight2(['DiffText', 'bg'], ['Constant', 'fg'], 'bold') let s:V1 = airline#themes#get_highlight2(['DiffText', 'bg'], ['Constant', 'fg'], 'bold')
let s:V2 = airline#themes#get_highlight2(['Constant', 'fg'], ['Normal', 'bg']) let s:V2 = airline#themes#get_highlight2(['Constant', 'fg'], ['Visual', 'bg'])
let s:V3 = s:N3 let s:V3 = s:N3
let g:airline#themes#base16#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) let g:airline#themes#base16#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
let g:airline#themes#base16#palette.visual_modified = g:airline#themes#base16#palette.normal_modified let g:airline#themes#base16#palette.visual_modified = g:airline#themes#base16#palette.normal_modified
let s:IA = airline#themes#get_highlight2(['NonText', 'fg'], ['CursorLine', 'bg']) " Use VertSplit's bg and default fg (reversed) for inactive statusline.
let g:airline#themes#base16#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) let s:VS = airline#themes#get_highlight('VertSplit')
let g:airline#themes#base16#palette.inactive_modified = { let s:IA = [ s:VS[1], 'NONE', s:VS[2], 'NONE', 'reverse']
\ 'airline_c': [ group[0], '', group[2], '', '' ] let g:airline#themes#base16#palette.inactive =
\ } \ airline#themes#generate_color_map(s:IA, s:IA, s:IA, s:IA, s:IA, s:IA)
let s:IM = [ s:VS[1], 'NONE', s:VS[2], 'NONE', 'reverse,italic']
let g:airline#themes#base16#palette.inactive_modified =
\ airline#themes#generate_color_map(s:IM, s:IM, s:IM, s:IM, s:IM, s:IM)
" Warnings " Warnings
let s:WI = airline#themes#get_highlight2(['WarningMsg', 'bg'], ['WarningMsg', 'fg'], 'bold') let s:WI = airline#themes#get_highlight2(['WarningMsg', 'bg'], ['WarningMsg', 'fg'], 'bold')
let g:airline#themes#base16#palette.normal.airline_warning = [ let g:airline#themes#base16#palette.normal.airline_warning = [
@ -111,7 +114,6 @@ else
let g:airline#themes#base16#palette.normal_modified.airline_warning = let g:airline#themes#base16#palette.normal_modified.airline_warning =
\ g:airline#themes#base16#palette.normal.airline_warning \ g:airline#themes#base16#palette.normal.airline_warning
let g:airline#themes#base16#palette.insert.airline_warning = let g:airline#themes#base16#palette.insert.airline_warning =
\ g:airline#themes#base16#palette.normal.airline_warning \ g:airline#themes#base16#palette.normal.airline_warning
@ -133,4 +135,3 @@ else
endfunction endfunction
call airline#themes#base16#refresh() call airline#themes#base16#refresh()
endif endif