diff --git a/autoload/airline/themes/solarized.vim b/autoload/airline/themes/solarized.vim index b269502..3481df1 100644 --- a/autoload/airline/themes/solarized.vim +++ b/autoload/airline/themes/solarized.vim @@ -4,10 +4,11 @@ function! airline#themes#solarized#refresh() """""""""""""""""""""""""""""""""""""""""""""""" " Options """""""""""""""""""""""""""""""""""""""""""""""" - let s:background = get(g:, 'airline_solarized_bg', &background) - let s:ansi_colors = get(g:, 'solarized_termcolors', 16) != 256 && &t_Co >= 16 ? 1 : 0 - let s:use_green = get(g:, 'airline_solarized_normal_green', 0) - let s:tty = &t_Co == 8 + let s:background = get(g:, 'airline_solarized_bg', &background) + let s:ansi_colors = get(g:, 'solarized_termcolors', 16) != 256 && &t_Co >= 16 ? 1 : 0 + let s:use_green = get(g:, 'airline_solarized_normal_green', 0) + let s:dark_inactive_border = get(g:, 'airline_solarized_dark_inactive_border', 0) + let s:tty = &t_Co == 8 """""""""""""""""""""""""""""""""""""""""""""""" " Colors @@ -101,7 +102,11 @@ function! airline#themes#solarized#refresh() " Inactive, according to VertSplit in solarized " (bg dark: base00; bg light: base0) if s:background == 'dark' - let s:IA = [s:base02, s:base00, ''] + if s:dark_inactive_border + let s:IA = [s:base01, s:base02, ''] + else + let s:IA = [s:base02, s:base00, ''] + endif else let s:IA = [s:base2, s:base0, ''] endif diff --git a/doc/airline-themes.txt b/doc/airline-themes.txt index aa949b9..db4ff88 100644 --- a/doc/airline-themes.txt +++ b/doc/airline-themes.txt @@ -122,6 +122,13 @@ look more like classic powerline in normal mode. To enable it: > let g:airline_solarized_normal_green = 1 +g:airline_solarized_dark_inactive_border + +Changes inactive window panes to have a dark bottom border instead +of light by default. To enable it: +> + let g:airline_solarized_dark_inactive_border = 1 + ============================================================================== CONTRIBUTIONS *airline-themes-contributions*