mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2025-03-02 04:08:39 +08:00
lucius: revert previous theme change while still fixing the tabline problem
Using the "CursorLine" highlight style was not a good idea for the status line, because it conflicts when the cursor line is next to the status line of an inactive window. Fortunately, the tabline extension allows for specific color customization. This explicitly defines a color for a selected tab and a selected buffer.
This commit is contained in:
parent
6b5de8db62
commit
dc476a01e0
@ -40,7 +40,7 @@ function! airline#themes#lucius#refresh()
|
||||
let g:airline#themes#lucius#palette.visual.airline_warning = g:airline#themes#lucius#palette.normal.airline_warning
|
||||
let g:airline#themes#lucius#palette.visual_modified.airline_warning = g:airline#themes#lucius#palette.normal_modified.airline_warning
|
||||
|
||||
let s:IA = airline#themes#get_highlight('CursorLine')
|
||||
let s:IA = airline#themes#get_highlight('StatusLineNC')
|
||||
let g:airline#themes#lucius#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
|
||||
let g:airline#themes#lucius#palette.inactive_modified = {
|
||||
\ 'airline_c': [ modified_group[0], '', modified_group[2], '', '' ]
|
||||
@ -50,6 +50,12 @@ function! airline#themes#lucius#refresh()
|
||||
\ 'red': airline#themes#get_highlight('Constant'),
|
||||
\ }
|
||||
|
||||
" Extra tabline colors
|
||||
let s:TS = airline#themes#get_highlight('TabLineSel')
|
||||
let g:airline#themes#lucius#palette.tabline = {}
|
||||
let g:airline#themes#lucius#palette.tabline.airline_tabsel = s:TS
|
||||
let g:airline#themes#lucius#palette.tabline.airline_tabsel_right = s:TS
|
||||
|
||||
endfunction
|
||||
|
||||
call airline#themes#lucius#refresh()
|
||||
|
Loading…
x
Reference in New Issue
Block a user