From 3db2b665876f8b409b5fd6225e85a4b96738df72 Mon Sep 17 00:00:00 2001 From: no-name Date: Thu, 20 Aug 2015 12:14:50 +0800 Subject: [PATCH] add cool theme --- autoload/airline/themes/cool.vim | 63 ++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100755 autoload/airline/themes/cool.vim diff --git a/autoload/airline/themes/cool.vim b/autoload/airline/themes/cool.vim new file mode 100755 index 0000000..2c7c157 --- /dev/null +++ b/autoload/airline/themes/cool.vim @@ -0,0 +1,63 @@ +let g:airline#themes#cool#palette = {} + +" NORMAL +let s:N1 = [ '#585858' , '#E4E4E4' , 17 , 190 ] +let s:N2 = [ '#E4E4E4' , '#0087AF' , 255 , 238 ] +let s:N3 = [ '#EEEEEE' , '#005F87' , 85 , 234 ] +let g:airline#themes#cool#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) +"let g:airline#themes#cool#palette.normal_modified = { + "\ 'airline_c': [ '#ffffff' , '#5f005f' , 255 , 53 , '' ] , + "\ } + +" INSERT +let s:I1 = [ '#585858' , '#E4E4E4' , 17 , 45 ] +let s:I2 = [ '#E4E4E4' , '#47AF00' , 255 , 27 ] +let s:I3 = [ '#EEEEEE' , '#2E8700' , 15 , 17 ] +let g:airline#themes#cool#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) +"let g:airline#themes#cool#palette.insert_modified = { + "\ 'airline_c': [ '#ffffff' , '#5f005f' , 255 , 53 , '' ] , + "\ } +"let g:airline#themes#cool#palette.insert_paste = { + "\ 'airline_a': [ s:I1[0] , '#d78700' , s:I1[2] , 172 , '' ] , + "\ } + +" REPLACE +let s:R1 = [ '#585858' , '#E4E4E4' , 17 , 45 ] +let s:R2 = [ '#E4E4E4' , '#AF5F00' , 255 , 27 ] +let s:R3 = [ '#EEEEEE' , '#875300' , 15 , 17 ] +let g:airline#themes#cool#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3) +"let g:airline#themes#cool#palette.replace.airline_a = [ s:I2[0] , '#af0000' , s:I2[2] , 124 , '' ] +"let g:airline#themes#cool#palette.replace_modified = g:airline#themes#cool#palette.insert_modified + +" VISUAL +let s:V1 = [ '#585858' , '#E4E4E4' , 232 , 214 ] +let s:V2 = [ '#E4E4E4' , '#AF2800' , 232 , 202 ] +let s:V3 = [ '#EEEEEE' , '#872800' , 15 , 52 ] +let g:airline#themes#cool#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) +"let g:airline#themes#cool#palette.visual_modified = { + "\ 'airline_c': [ '#ffffff' , '#5f005f' , 255 , 53 , '' ] , + "\ } + +" INACTIVE +let s:IA1 = [ '#585858' , '#E4E4E4' , 239 , 234 , '' ] +let s:IA2 = [ '#E4E4E4' , '#466D79' , 239 , 235 , '' ] +let s:IA3 = [ '#EEEEEE' , '#324E59' , 239 , 236 , '' ] +let g:airline#themes#cool#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3) +"let g:airline#themes#cool#palette.inactive_modified = { + "\ 'airline_c': [ '#875faf' , '' , 97 , '' , '' ] , + "\ } + + +let g:airline#themes#cool#palette.accents = { + \ 'red': [ '#ff0000' , '' , 160 , '' ] + \ } + +" CTRLP +if !get(g:, 'loaded_ctrlp', 0) + finish +endif +let g:airline#themes#cool#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( + \ [ '#E4E4E4' , '#00AFA2' , 231 , 98 , '' ], + \ [ '#EEEEEE' , '#008787' , 55 , 231 , '' ], + \ [ '#585858' , '#E4E4E4' , 189 , 55 , '' ]) +