mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-10-13 08:08:54 +08:00
automatically provide the red accent.
This commit is contained in:
1 parent
d833718dd9
commit
e93263538f
17 files changed
+116
-98
No files matched your search
@@ -40,5 +40,10 @@ function! airline#themes#patch(palette)
|
||||
let a:palette[mode]['airline_warning'] = [ '#000000', '#df5f00', 232, 166 ]
|
||||
endif
|
||||
endfor
|
||||
|
||||
let a:palette.accents = get(a:palette, 'accents', {})
|
||||
if !has_key(a:palette.accents, 'red')
|
||||
let a:palette.accents.red = [ '#ff0000' , '' , 160 , '' ]
|
||||
endif
|
||||
endfunction
|
||||
|
||||
Reference in new issue
Block a user