move default ctrlp theme to dark. autogenerate for everything else if not already defined.

This commit is contained in:
Bailey Ling 2013-08-06 23:29:06 +00:00
parent 42260bc35f
commit 26c7c9fca2
9 changed files with 14 additions and 30 deletions

View File

@ -17,9 +17,9 @@ function! airline#extensions#ctrlp#load_theme()
let theme = g:airline#themes#{g:airline_theme}#ctrlp
else
let theme = airline#extensions#ctrlp#generate_color_map(
\ [ '#d7d7ff' , '#5f00af' , 189 , 55 , '' ],
\ [ '#ffffff' , '#875fd7' , 231 , 98 , '' ],
\ [ '#5f00af' , '#ffffff' , 55 , 231 , 'bold' ])
\ g:airline#themes#{g:airline_theme}#insert['statusline'],
\ g:airline#themes#{g:airline_theme}#insert['info'],
\ g:airline#themes#{g:airline_theme}#insert['mode'])
endif
for key in keys(theme)
call airline#exec_highlight(key, theme[key])

View File

@ -52,6 +52,3 @@ let g:airline#themes#badwolf#inactive = airline#themes#generate_color_map(s:IA,
let g:airline#themes#badwolf#inactive_modified = {
\ 'statusline' : [ s:V1[1] , '' , s:V1[3] , '' , '' ] }
if get(g:, 'loaded_ctrlp', 0)
let g:airline#themes#badwolf#ctrlp = airline#extensions#ctrlp#generate_color_map(s:N3, s:I2, s:I1)
endif

View File

@ -62,6 +62,3 @@ let g:airline#themes#bubblegum#inactive_modified = {
\ 'statusline': [s:gui_orange, '', s:cterm_orange, '', ''],
\ }
if get(g:, 'loaded_ctrlp', 0)
let g:airline#themes#bubblegum#ctrlp = airline#extensions#ctrlp#generate_color_map(s:N3, s:N2, s:I1)
endif

View File

@ -85,3 +85,14 @@ let g:airline#themes#dark#inactive_modified = {
\ 'statusline': [ '#5f005f' , '' , '53' , '' , '' ] ,
\ }
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
" variable so that related functionality is loaded iff the user is using
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
" they will be chosen automatically from the existing palette.
if get(g:, 'loaded_ctrlp', 0)
let g:airline#themes#dark#ctrlp = airline#extensions#ctrlp#generate_color_map(
\ [ '#d7d7ff' , '#5f00af' , 189 , 55 , '' ],
\ [ '#ffffff' , '#875fd7' , 231 , 98 , '' ],
\ [ '#5f00af' , '#ffffff' , 55 , 231 , 'bold' ])
endif

View File

@ -38,10 +38,6 @@ function! s:generate()
" And of course, you can always do it manually as well.
let s:IA = [ '#444444', '#1c1c1c', 237, 234 ]
let g:airline#themes#jellybeans#inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA, s:file)
if get(g:, 'loaded_ctrlp', 0)
let g:airline#themes#jellybeans#ctrlp = airline#extensions#ctrlp#generate_color_map(s:N3, s:N2, s:I1)
endif
endfunction
call s:generate()

View File

@ -45,6 +45,3 @@ let g:airline#themes#light#inactive_modified = {
\ 'statusline': [ '#df0000' , '' , '160' , '', '' ]
\ }
if get(g:, 'loaded_ctrlp', 0)
let g:airline#themes#light#ctrlp = airline#extensions#ctrlp#generate_color_map(s:N3, s:I2, s:I1)
endif

View File

@ -100,6 +100,3 @@ let s:IA = [ '#4e4e4e' , s:guibg , 239 , s:termbg , '' ]
let g:airline#themes#simple#inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA, s:file)
let g:airline#themes#simple#inactive_modified = copy(g:airline#themes#simple#normal_modified)
if get(g:, 'loaded_ctrlp', 0)
let g:airline#themes#simple#ctrlp = airline#extensions#ctrlp#generate_color_map(s:N3, s:N2, s:I1)
endif

View File

@ -163,13 +163,6 @@ function! s:generate()
\ s:VM.info_separator[0].t, s:VM.info_separator[1].t, s:VM.info_separator[2]],
\ 'statusline': [s:VM.statusline[0].g, s:VM.statusline[1].g,
\ s:VM.statusline[0].t, s:VM.statusline[1].t, s:VM.statusline[2]]}
if get(g:, 'loaded_ctrlp', 0)
let g:airline#themes#solarized#ctrlp = airline#extensions#ctrlp#generate_color_map(
\ [s:I3[0].g, s:I3[1].g, s:I3[0].t, s:I3[1].t, s:I3[2]],
\ [s:I2[0].g, s:I2[1].g, s:I2[0].t, s:I2[1].t, s:I2[2]],
\ [s:I1[0].g, s:I1[1].g, s:I1[0].t, s:I1[1].t, s:I1[2]])
endif
endfunction
call s:generate()

View File

@ -31,10 +31,6 @@ function! s:generate()
let s:IA = airline#themes#get_highlight2(['NonText', 'fg'], ['CursorLine', 'bg'])
let g:airline#themes#tomorrow#inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA, s:file)
if get(g:, 'loaded_ctrlp', 0)
let g:airline#themes#tomorrow#ctrlp = airline#extensions#ctrlp#generate_color_map(s:N3, s:N2, s:V1)
endif
endfunction
call s:generate()