From b257fb00130ae57950351771bd76329ef3c5fd18 Mon Sep 17 00:00:00 2001 From: Guillaume Kanoufi Date: Sat, 20 Aug 2016 12:17:08 +0200 Subject: [PATCH] Cobalt 2 theme --- autoload/airline/themes/cobalt2.vim | 100 ++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 autoload/airline/themes/cobalt2.vim diff --git a/autoload/airline/themes/cobalt2.vim b/autoload/airline/themes/cobalt2.vim new file mode 100644 index 0000000..b156924 --- /dev/null +++ b/autoload/airline/themes/cobalt2.vim @@ -0,0 +1,100 @@ + + +" vim-airline cobalt2 replication +" (https://github.com/g-kanoufi/vim-airline-cobalt2) + +let g:airline#themes#cobalt2#palette = {} + +let g:airline#themes#cobalt2#palette.accents = { + \ 'red': [ '#b42839' , '' , 231 , '' , '' ], + \ } + + +let s:N1 = [ '#ffffff' , '#1f7ad8' , 231 , 36 ] +let s:N2 = [ '#ffffff' , '#8cc2fd' , 231 , 29 ] +let s:N3 = [ '#ffffff' , '#204458' , 231 , 23 ] +let g:airline#themes#cobalt2#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) +let g:airline#themes#cobalt2#palette.normal_modified = { + \ 'airline_c': [ '#ffffff' , '#1f7ad8' , 231 , 52 , '' ] , + \ } + + +let s:I1 = [ '#666d51' , '#fee533' , 231 , 106 ] +let s:I2 = [ '#ffffff' , '#8cc2fd' , 231 , 29 ] +let s:I3 = [ '#ffffff' , '#204458' , 231 , 23 ] +let g:airline#themes#cobalt2#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) +let g:airline#themes#cobalt2#palette.insert_modified = { + \ 'airline_c': [ '#666d51' , '#fee533' , 255 , 52 , '' ] , + \ } +let g:airline#themes#cobalt2#palette.insert_paste = { + \ 'airline_a': [ s:I1[0] , '#fee533' , s:I1[2] , 106 , '' ] , + \ } + + +let s:R1 = [ '#ffffff' , '#ea9299' , 231 , 106 ] +let s:R2 = [ '#ffffff' , '#8cc2fd' , 88 , 29 ] +let s:R3 = [ '#ffffff' , '#204458' , 231 , 23 ] +let g:airline#themes#cobalt2#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3) +let g:airline#themes#cobalt2#palette.replace_modified = { + \ 'airline_c': [ '#ffffff' , '#ea9299' , 231 , 52 , '' ] , + \ } + +let s:V1 = [ '#ffff9a' , '#ff9d00' , 222 , 208 ] +let s:V2 = [ '#ffffff' , '#8cc2fd' , 231 , 29 ] +let s:V3 = [ '#ffffff' , '#204458' , 231 , 23 ] +let g:airline#themes#cobalt2#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) +let g:airline#themes#cobalt2#palette.visual_modified = { + \ 'airline_c': [ '#ffff9a' , '#ff9d00' , 231 , 52 , '' ] , + \ } + +let s:IA = [ '#4e4e4e' , '#204458' , 59 , 23 , '' ] +let g:airline#themes#cobalt2#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) +let g:airline#themes#cobalt2#palette.inactive_modified = { + \ 'airline_c': [ '#b42839' , '' , 166 , '' , '' ] , + \ } + +let g:airline#themes#cobalt2#palette.tabline = { + \ 'airline_tab': ['#1780e9', '#1a3548', 231, 29, ''], + \ 'airline_tabsel': ['#ffffff', '#46dd3c', 231, 36, ''], + \ 'airline_tabtype': ['#ffffff', '#1f7ad8', 231, 36, ''], + \ 'airline_tabfill': ['#ffffff', '#204458', 231, 23, ''], + \ 'airline_tabmod': ['#666d51', '#fee533', 231, 88, ''], + \ } + +let s:WI = [ '#204458', '#ffffff', 231, 88 ] +let g:airline#themes#cobalt2#palette.normal.airline_warning = [ + \ s:WI[0], s:WI[1], s:WI[2], s:WI[3] + \ ] + +let g:airline#themes#cobalt2#palette.normal_modified.airline_warning = + \ g:airline#themes#cobalt2#palette.normal.airline_warning + +let g:airline#themes#cobalt2#palette.insert.airline_warning = + \ g:airline#themes#cobalt2#palette.normal.airline_warning + +let g:airline#themes#cobalt2#palette.insert_modified.airline_warning = + \ g:airline#themes#cobalt2#palette.normal.airline_warning + +let g:airline#themes#cobalt2#palette.visual.airline_warning = + \ g:airline#themes#cobalt2#palette.normal.airline_warning + +let g:airline#themes#cobalt2#palette.visual_modified.airline_warning = + \ g:airline#themes#cobalt2#palette.normal.airline_warning + +let g:airline#themes#cobalt2#palette.replace.airline_warning = + \ g:airline#themes#cobalt2#palette.normal.airline_warning + +let g:airline#themes#cobalt2#palette.replace_modified.airline_warning = + \ g:airline#themes#cobalt2#palette.normal.airline_warning + + +if !get(g:, 'loaded_ctrlp', 0) + finish +endif +let g:airline#themes#cobalt2#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( + \ [ '#ffffff' , '#204458' , 231 , 23 , '' ] , + \ [ '#ffffff' , '#1f7ad8' , 231 , 36 , '' ] , + \ [ '#666d51' , '#fee533' , 231 , 95 , '' ] ) + + +