mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2025-01-06 09:23:47 +08:00
move default ctrlp theme to dark. autogenerate for everything else if not already defined.
This commit is contained in:
parent
42260bc35f
commit
26c7c9fca2
|
@ -17,9 +17,9 @@ function! airline#extensions#ctrlp#load_theme()
|
||||||
let theme = g:airline#themes#{g:airline_theme}#ctrlp
|
let theme = g:airline#themes#{g:airline_theme}#ctrlp
|
||||||
else
|
else
|
||||||
let theme = airline#extensions#ctrlp#generate_color_map(
|
let theme = airline#extensions#ctrlp#generate_color_map(
|
||||||
\ [ '#d7d7ff' , '#5f00af' , 189 , 55 , '' ],
|
\ g:airline#themes#{g:airline_theme}#insert['statusline'],
|
||||||
\ [ '#ffffff' , '#875fd7' , 231 , 98 , '' ],
|
\ g:airline#themes#{g:airline_theme}#insert['info'],
|
||||||
\ [ '#5f00af' , '#ffffff' , 55 , 231 , 'bold' ])
|
\ g:airline#themes#{g:airline_theme}#insert['mode'])
|
||||||
endif
|
endif
|
||||||
for key in keys(theme)
|
for key in keys(theme)
|
||||||
call airline#exec_highlight(key, theme[key])
|
call airline#exec_highlight(key, theme[key])
|
||||||
|
|
|
@ -52,6 +52,3 @@ let g:airline#themes#badwolf#inactive = airline#themes#generate_color_map(s:IA,
|
||||||
let g:airline#themes#badwolf#inactive_modified = {
|
let g:airline#themes#badwolf#inactive_modified = {
|
||||||
\ 'statusline' : [ s:V1[1] , '' , s:V1[3] , '' , '' ] }
|
\ '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
|
|
||||||
|
|
|
@ -62,6 +62,3 @@ let g:airline#themes#bubblegum#inactive_modified = {
|
||||||
\ 'statusline': [s:gui_orange, '', s:cterm_orange, '', ''],
|
\ '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
|
|
||||||
|
|
|
@ -85,3 +85,14 @@ let g:airline#themes#dark#inactive_modified = {
|
||||||
\ 'statusline': [ '#5f005f' , '' , '53' , '' , '' ] ,
|
\ '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
|
||||||
|
|
|
@ -38,10 +38,6 @@ function! s:generate()
|
||||||
" And of course, you can always do it manually as well.
|
" And of course, you can always do it manually as well.
|
||||||
let s:IA = [ '#444444', '#1c1c1c', 237, 234 ]
|
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)
|
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
|
endfunction
|
||||||
|
|
||||||
call s:generate()
|
call s:generate()
|
||||||
|
|
|
@ -45,6 +45,3 @@ let g:airline#themes#light#inactive_modified = {
|
||||||
\ 'statusline': [ '#df0000' , '' , '160' , '', '' ]
|
\ '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
|
|
||||||
|
|
|
@ -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 = 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)
|
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
|
|
||||||
|
|
|
@ -163,13 +163,6 @@ function! s:generate()
|
||||||
\ s:VM.info_separator[0].t, s:VM.info_separator[1].t, s:VM.info_separator[2]],
|
\ 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,
|
\ '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]]}
|
\ 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
|
endfunction
|
||||||
|
|
||||||
call s:generate()
|
call s:generate()
|
||||||
|
|
|
@ -31,10 +31,6 @@ function! s:generate()
|
||||||
|
|
||||||
let s:IA = airline#themes#get_highlight2(['NonText', 'fg'], ['CursorLine', 'bg'])
|
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)
|
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
|
endfunction
|
||||||
|
|
||||||
call s:generate()
|
call s:generate()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user