[solarized] add option to change inactive window border from light to dark

This commit is contained in:
Brandon Bayer 2016-08-16 14:52:31 -05:00
parent 8b58708ec4
commit 1cb71592e2
2 changed files with 17 additions and 5 deletions

View File

@ -7,6 +7,7 @@ function! airline#themes#solarized#refresh()
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
""""""""""""""""""""""""""""""""""""""""""""""""
@ -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'
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

View File

@ -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*