From 8b71285c6b181cacc22af9a35eb0e18d4c6436b3 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Thu, 5 Sep 2013 21:34:48 +0000 Subject: [PATCH] fill in inactive modified colors. --- autoload/airline.vim | 10 +++------- autoload/airline/themes/badwolf.vim | 2 ++ autoload/airline/themes/base16.vim | 6 ++++++ autoload/airline/themes/bubblegum.vim | 3 +++ autoload/airline/themes/jellybeans.vim | 1 + autoload/airline/themes/laederon.vim | 2 ++ autoload/airline/themes/light.vim | 3 +++ autoload/airline/themes/luna.vim | 3 +++ autoload/airline/themes/molokai.vim | 3 +++ autoload/airline/themes/simple.vim | 3 +++ autoload/airline/themes/solarized.vim | 2 ++ autoload/airline/themes/tomorrow.vim | 3 +++ autoload/airline/themes/ubaryd.vim | 2 ++ autoload/airline/themes/wombat.vim | 2 ++ autoload/airline/themes/zenburn.vim | 3 +++ 15 files changed, 41 insertions(+), 7 deletions(-) diff --git a/autoload/airline.vim b/autoload/airline.vim index 5f2b540..eb0f716 100644 --- a/autoload/airline.vim +++ b/autoload/airline.vim @@ -123,19 +123,15 @@ function! airline#check_mode(winnr) if &modified call add(l:mode, 'modified') let colors = exists('g:airline#themes#{g:airline_theme}#palette.inactive_modified.airline_c') - \ ? g:airline#themes#{g:airline_theme}#palette.inactive_modified.airline_c - \ : [] + \ ? g:airline#themes#{g:airline_theme}#palette.inactive_modified.airline_c : [] else let colors = exists('g:airline#themes#{g:airline_theme}#palette.inactive.airline_c') - \ ? g:airline#themes#{g:airline_theme}#palette.inactive.airline_c - \ : [] + \ ? g:airline#themes#{g:airline_theme}#palette.inactive.airline_c : [] endif if !empty(colors) for winnr in range(1, winnr('$')) - if winnr != a:winnr - \ && has_key(s:contexts, winnr) - \ && s:contexts[winnr].bufnr == context.bufnr + if winnr != a:winnr && has_key(s:contexts, winnr) && s:contexts[winnr].bufnr == context.bufnr call airline#highlighter#exec('airline_c'.(context.bufnr).'_inactive', colors) endif endfor diff --git a/autoload/airline/themes/badwolf.vim b/autoload/airline/themes/badwolf.vim index cc9d262..c57d693 100644 --- a/autoload/airline/themes/badwolf.vim +++ b/autoload/airline/themes/badwolf.vim @@ -44,4 +44,6 @@ let g:airline#themes#badwolf#palette.visual_modified = { let g:airline#themes#badwolf#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA, s:file) +let g:airline#themes#badwolf#palette.inactive_modified = { + \ 'airline_c': [ s:V1[1] , '' , s:V1[3] , '' , '' ] } diff --git a/autoload/airline/themes/base16.vim b/autoload/airline/themes/base16.vim index 3420ebc..2306fd3 100644 --- a/autoload/airline/themes/base16.vim +++ b/autoload/airline/themes/base16.vim @@ -59,6 +59,9 @@ function! s:load_constant() " Inactive window let s:IA = [s:gui_dark_gray, s:gui_med_gray_hi, s:cterm_dark_gray, s:cterm_med_gray_hi, ''] let g:airline#themes#base16#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA, s:file) + let g:airline#themes#base16#palette.inactive_modified = { + \ 'airline_c': [s:gui_orange, '', s:cterm_orange, '', ''], + \ } endfunction function! s:load_dynamic() @@ -95,6 +98,9 @@ function! s:load_dynamic() let s:IA = airline#themes#get_highlight2(['NonText', 'fg'], ['CursorLine', 'bg']) let g:airline#themes#base16#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA, s:file) + let g:airline#themes#base16#palette.inactive_modified = { + \ 'airline_c': [ group[0], '', group[2], '', '' ] + \ } endfunction if get(g:, 'airline#themes#base16#constant', 0) diff --git a/autoload/airline/themes/bubblegum.vim b/autoload/airline/themes/bubblegum.vim index 1f29376..d4d142c 100644 --- a/autoload/airline/themes/bubblegum.vim +++ b/autoload/airline/themes/bubblegum.vim @@ -58,4 +58,7 @@ let g:airline#themes#bubblegum#palette.visual_modified = copy(g:airline#themes#b " Inactive window let s:IA = [s:gui_dark_gray, s:gui_med_gray_hi, s:cterm_dark_gray, s:cterm_med_gray_hi, ''] let g:airline#themes#bubblegum#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA, s:file) +let g:airline#themes#bubblegum#palette.inactive_modified = { + \ 'airline_c': [s:gui_orange, '', s:cterm_orange, '', ''], + \ } diff --git a/autoload/airline/themes/jellybeans.vim b/autoload/airline/themes/jellybeans.vim index 40fc911..61072f1 100644 --- a/autoload/airline/themes/jellybeans.vim +++ b/autoload/airline/themes/jellybeans.vim @@ -41,6 +41,7 @@ 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#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA, s:file) + let g:airline#themes#jellybeans#palette.inactive_modified = g:airline#themes#jellybeans#palette.normal_modified endfunction call s:generate() diff --git a/autoload/airline/themes/laederon.vim b/autoload/airline/themes/laederon.vim index d0131e1..9b37484 100644 --- a/autoload/airline/themes/laederon.vim +++ b/autoload/airline/themes/laederon.vim @@ -54,4 +54,6 @@ let g:airline#themes#laederon#palette.visual_modified = { let g:airline#themes#laederon#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA, s:file) +let g:airline#themes#laederon#palette.inactive_modified = { + \ 'airline_c' : [ s:V1[1] , '' , s:V1[3] , '' , '' ] } diff --git a/autoload/airline/themes/light.vim b/autoload/airline/themes/light.vim index cc84ba3..591155f 100644 --- a/autoload/airline/themes/light.vim +++ b/autoload/airline/themes/light.vim @@ -40,4 +40,7 @@ let s:IA1 = [ '#666666' , '#b2b2b2' , 242 , 249 , '' ] let s:IA2 = [ '#8a8a8a' , '#d0d0d0' , 245 , 252 , '' ] let s:IA3 = [ '#a8a8a8' , '#ffffff' , 248 , 255 , '' ] let g:airline#themes#light#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3, s:file) +let g:airline#themes#light#palette.inactive_modified = { + \ 'airline_c': [ '#df0000' , '' , 160 , '' , '' ] , + \ } diff --git a/autoload/airline/themes/luna.vim b/autoload/airline/themes/luna.vim index 5bab228..878dcf6 100644 --- a/autoload/airline/themes/luna.vim +++ b/autoload/airline/themes/luna.vim @@ -40,6 +40,9 @@ let g:airline#themes#luna#palette.visual_modified = { let s:IA = [ '#4e4e4e' , '#002b2b' , 59 , 23 , '' ] let g:airline#themes#luna#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA, s:file) +let g:airline#themes#luna#palette.inactive_modified = { + \ 'airline_c': [ '#450000' , '' , 52 , '' , '' ] , + \ } if !get(g:, 'loaded_ctrlp', 0) diff --git a/autoload/airline/themes/molokai.vim b/autoload/airline/themes/molokai.vim index b3c3989..040c4bf 100644 --- a/autoload/airline/themes/molokai.vim +++ b/autoload/airline/themes/molokai.vim @@ -47,6 +47,9 @@ let g:airline#themes#molokai#palette.visual_modified = { " Inactive let s:IA = [ '#1b1d1e' , '#465457' , 233 , 67 , '' ] let g:airline#themes#molokai#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA, s:file) +let g:airline#themes#molokai#palette.inactive_modified = { + \ 'airline_c': [ '#f8f8f0' , '' , 253 , '' , '' ] , + \ } " CtrlP diff --git a/autoload/airline/themes/simple.vim b/autoload/airline/themes/simple.vim index 7163174..f48c6c9 100644 --- a/autoload/airline/themes/simple.vim +++ b/autoload/airline/themes/simple.vim @@ -41,4 +41,7 @@ let g:airline#themes#simple#palette.visual_modified = copy(g:airline#themes#simp let s:IA = [ '#4e4e4e' , s:guibg , 239 , s:termbg , '' ] let s:IA2 = [ '#4e4e4e' , s:guibg2 , 239 , s:termbg2 , '' ] let g:airline#themes#simple#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA2, s:IA2, s:file) +let g:airline#themes#simple#palette.inactive_modified = { + \ 'airline_c': [ '#df0000', '', 160, '', '' ] , + \ } diff --git a/autoload/airline/themes/solarized.vim b/autoload/airline/themes/solarized.vim index ad460eb..656f9ba 100644 --- a/autoload/airline/themes/solarized.vim +++ b/autoload/airline/themes/solarized.vim @@ -107,6 +107,8 @@ function! s:generate() \ [s:IA[0].g, s:IA[1].g, s:IA[0].t, s:IA[1].t, s:IA[2]], \ [s:IA[0].g, s:IA[1].g, s:IA[0].t, s:IA[1].t, s:IA[2]], \ s:NFa) + let g:airline#themes#solarized#palette.inactive_modified = { + \ 'airline_c': [s:NM[0].g, '', s:NM[0].t, '', s:NM[2]]} let g:airline#themes#solarized#palette.normal = airline#themes#generate_color_map( \ [s:N1[0].g, s:N1[1].g, s:N1[0].t, s:N1[1].t, s:N1[2]], diff --git a/autoload/airline/themes/tomorrow.vim b/autoload/airline/themes/tomorrow.vim index 1c96c82..e385ba7 100644 --- a/autoload/airline/themes/tomorrow.vim +++ b/autoload/airline/themes/tomorrow.vim @@ -33,6 +33,9 @@ function! s:generate() let s:IA = airline#themes#get_highlight2(['NonText', 'fg'], ['CursorLine', 'bg']) let g:airline#themes#tomorrow#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA, s:file) + let g:airline#themes#tomorrow#palette.inactive_modified = { + \ 'airline_c': [ group[0], '', group[2], '', '' ] + \ } endfunction call s:generate() diff --git a/autoload/airline/themes/ubaryd.vim b/autoload/airline/themes/ubaryd.vim index 4cc5dca..adbc636 100644 --- a/autoload/airline/themes/ubaryd.vim +++ b/autoload/airline/themes/ubaryd.vim @@ -55,4 +55,6 @@ let g:airline#themes#ubaryd#palette.visual_modified = { \ 'airline_c' : [ s:V3[0] , s:V4[0] , s:V3[2] , s:V4[1] , '' ] } let g:airline#themes#ubaryd#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA, s:file) +let g:airline#themes#ubaryd#palette.inactive_modified = { + \ 'airline_c' : [ s:V1[1] , '' , s:V1[3] , '' , '' ] } diff --git a/autoload/airline/themes/wombat.vim b/autoload/airline/themes/wombat.vim index ff37c82..7c6faf4 100644 --- a/autoload/airline/themes/wombat.vim +++ b/autoload/airline/themes/wombat.vim @@ -77,6 +77,8 @@ let g:airline#themes#wombat#palette.insert_paste = { let g:airline#themes#wombat#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA, s:file) +let g:airline#themes#wombat#palette.inactive_modified = { + \ 'airline_c': [ s:N4[0] , '' , s:N4[1] , '' , '' ] } if !get(g:, 'loaded_ctrlp', 0) diff --git a/autoload/airline/themes/zenburn.vim b/autoload/airline/themes/zenburn.vim index a90e236..061fed4 100644 --- a/autoload/airline/themes/zenburn.vim +++ b/autoload/airline/themes/zenburn.vim @@ -32,6 +32,9 @@ function! s:generate() let s:IA = airline#themes#get_highlight('NonText') let g:airline#themes#zenburn#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA, s:file) + let g:airline#themes#zenburn#palette.inactive_modified = { + \ 'airline_c': s:Nmod + \ } endfunction call s:generate()