Support light background in minimalist theme

This commit is contained in:
Tim Smith 2018-06-05 20:51:12 -06:00
parent 40ac2b24f1
commit 8bf9615d13

View File

@ -1,4 +1,4 @@
" Minimalist Airline - A Material Color Scheme Darker
" Minimalist Airline - A Material Color Scheme
"
" Author: Diki Ananta <diki1aap@gmail.com>
" Repository: https://github.com/dikiaap/minimalist
@ -8,19 +8,35 @@
let s:theme = 'minimalist'
function! airline#themes#{s:theme}#refresh()
" Normal
let N1 = [ '#E4E4E4', '#3A3A3A', 254, 237 ]
let N2 = [ '#E4E4E4', '#4E4E4E', 254, 239 ]
let N3 = [ '#EEEEEE', '#262626', 255, 235 ]
if &background == "dark"
" Normal
let N1 = [ '#E4E4E4', '#3A3A3A', 254, 237 ]
let N2 = [ '#E4E4E4', '#4E4E4E', 254, 239 ]
let N3 = [ '#EEEEEE', '#262626', 255, 235 ]
" Inactive
let IA = [ '#666666', N3[1], 242, N3[3] ]
" Inactive
let IA = [ '#666666', N3[1], 242, N3[3] ]
" Error
let ER = [ '#1C1C1C', '#D75F5F', 234, 167 ]
" Error
let ER = [ '#1C1C1C', '#D75F5F', 234, 167 ]
" Warning
let WI = [ ER[0], '#FFAF5F', ER[2], 215 ]
" Warning
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
let TE = [ ER[0], N1[1], N1[2], N1[3] ]