mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2024-12-05 00:13:34 +08:00
Support light background in minimalist theme
This commit is contained in:
parent
40ac2b24f1
commit
8bf9615d13
|
@ -1,4 +1,4 @@
|
||||||
" Minimalist Airline - A Material Color Scheme Darker
|
" Minimalist Airline - A Material Color Scheme
|
||||||
"
|
"
|
||||||
" Author: Diki Ananta <diki1aap@gmail.com>
|
" Author: Diki Ananta <diki1aap@gmail.com>
|
||||||
" Repository: https://github.com/dikiaap/minimalist
|
" Repository: https://github.com/dikiaap/minimalist
|
||||||
|
@ -8,19 +8,35 @@
|
||||||
let s:theme = 'minimalist'
|
let s:theme = 'minimalist'
|
||||||
|
|
||||||
function! airline#themes#{s:theme}#refresh()
|
function! airline#themes#{s:theme}#refresh()
|
||||||
" Normal
|
if &background == "dark"
|
||||||
let N1 = [ '#E4E4E4', '#3A3A3A', 254, 237 ]
|
" Normal
|
||||||
let N2 = [ '#E4E4E4', '#4E4E4E', 254, 239 ]
|
let N1 = [ '#E4E4E4', '#3A3A3A', 254, 237 ]
|
||||||
let N3 = [ '#EEEEEE', '#262626', 255, 235 ]
|
let N2 = [ '#E4E4E4', '#4E4E4E', 254, 239 ]
|
||||||
|
let N3 = [ '#EEEEEE', '#262626', 255, 235 ]
|
||||||
|
|
||||||
" Inactive
|
" Inactive
|
||||||
let IA = [ '#666666', N3[1], 242, N3[3] ]
|
let IA = [ '#666666', N3[1], 242, N3[3] ]
|
||||||
|
|
||||||
" Error
|
" Error
|
||||||
let ER = [ '#1C1C1C', '#D75F5F', 234, 167 ]
|
let ER = [ '#1C1C1C', '#D75F5F', 234, 167 ]
|
||||||
|
|
||||||
" Warning
|
" Warning
|
||||||
let WI = [ ER[0], '#FFAF5F', ER[2], 215 ]
|
let WI = [ ER[0], '#FFAF5F', ER[2], 215 ]
|
||||||
|
else
|
||||||
|
" Normal
|
||||||
|
let N1 = [ 'gray30', 'gray70', 235, 249 ]
|
||||||
|
let N2 = [ 'gray20', 'gray60', 233, 246 ]
|
||||||
|
let N3 = [ 'gray20', 'gray80', 233, 251 ]
|
||||||
|
|
||||||
|
" Inactive
|
||||||
|
let IA = [ 'gray15', N3[1], 244, N3[3] ]
|
||||||
|
|
||||||
|
" Error
|
||||||
|
let ER = [ '#1C1C1C', '#D75F5F', 234, 167 ]
|
||||||
|
|
||||||
|
" Warning
|
||||||
|
let WI = [ ER[0], '#FFAF5F', ER[2], 215 ]
|
||||||
|
endif
|
||||||
|
|
||||||
" Terminal
|
" Terminal
|
||||||
let TE = [ ER[0], N1[1], N1[2], N1[3] ]
|
let TE = [ ER[0], N1[1], N1[2], N1[3] ]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user