From 3c2fa1d16d89407f44d68db9619d279a18df2ba2 Mon Sep 17 00:00:00 2001 From: Pychimp Date: Thu, 26 Sep 2013 20:59:04 +0530 Subject: [PATCH 1/2] Added Sol compatiable vim-airline theme --- autoload/airline/themes/sol.vim | 99 +++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 autoload/airline/themes/sol.vim diff --git a/autoload/airline/themes/sol.vim b/autoload/airline/themes/sol.vim new file mode 100644 index 0000000..ae61bcf --- /dev/null +++ b/autoload/airline/themes/sol.vim @@ -0,0 +1,99 @@ +" vim-airline companion theme of Sol +" (https://github.com/Pychimp/vim-sol) + +let g:airline#themes#sol#palette = {} + +let g:airline#themes#sol#palette.accents = { + \ 'red': [ '#ffffff' , '' , 231 , '' , '' ], + \ } + + +" let s:N1 = [ '#5b5b5b' , '#b7b7b7' , 231 , 36 ] +" let s:N2 = [ '#5b5b5b' , '#c3c3c3' , 231 , 29 ] +" let s:N3 = [ '#5b5b5b' , '#d0d0d0' , 231 , 23 ] +" let s:N1 = [ '#343434' , '#969696' , 231 , 36 ] +" let s:N2 = [ '#343434' , '#aaaaaa' , 231 , 29 ] +" let s:N3 = [ '#343434' , '#bdbdbd' , 231 , 23 ] +let s:N1 = [ '#343434' , '#a0a0a0' , 231 , 36 ] +let s:N2 = [ '#343434' , '#b3b3b3' , 231 , 29 ] +let s:N3 = [ '#343434' , '#c7c7c7' , 231 , 23 ] +let g:airline#themes#sol#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) +let g:airline#themes#sol#palette.normal_modified = { + \ 'airline_c': [ '#ffffff' , '#ff3535' , 231 , 52 , '' ] , + \ } + + +let s:I1 = [ '#eeeeee' , '#09643f' , 231 , 106 ] +let s:I2 = [ '#343434' , '#a3a3a3' , 231 , 29 ] +let s:I3 = [ '#343434' , '#b0b0b0' , 231 , 23 ] +let g:airline#themes#sol#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) +let g:airline#themes#sol#palette.insert_modified = { + \ 'airline_c': [ '#ffffff' , '#ff6868' , 255 , 52 , '' ] , + \ } +let g:airline#themes#sol#palette.insert_paste = { + \ 'airline_a': [ s:I1[0] , '#09643f' , s:I1[2] , 106 , '' ] , + \ } + + +let g:airline#themes#sol#palette.replace = copy(g:airline#themes#sol#palette.insert) +let g:airline#themes#sol#palette.replace.airline_a = [ s:I1[0] , '#ff2121' , s:I2[2] , 88 , '' ] +let g:airline#themes#sol#palette.replace.airline_z = [ s:I1[0] , '#ff2121' , s:I2[2] , 88 , '' ] +let g:airline#themes#sol#palette.replace_modified = g:airline#themes#sol#palette.insert_modified + +let s:V1 = [ '#ffff9a' , '#ff6003' , 222 , 208 ] +let s:V2 = [ '#343434' , '#a3a3a3' , 231 , 29 ] +let s:V3 = [ '#343434' , '#b0b0b0' , 231 , 23 ] +let g:airline#themes#sol#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) +let g:airline#themes#sol#palette.visual_modified = { + \ 'airline_c': [ '#ffffff' , '#ff3535' , 231 , 52 , '' ] , + \ } + +let s:IA = [ '#777777' , '#c7c7c7' , 59 , 23 , '' ] +let g:airline#themes#sol#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) +let g:airline#themes#sol#palette.inactive_modified = { + \ 'airline_c': [ '#ff3535' , '' , 52 , '' , '' ] , + \ } + + +if !get(g:, 'loaded_ctrlp', 0) + finish +endif +let g:airline#themes#sol#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( + \ [ '#343434' , '#c7c7c7' , 231 , 23 , '' ] , + \ [ '#343434' , '#b3b3b3' , 231 , 36 , '' ] , + \ [ '#eeeeee' , '#007fff' , 231 , 95 , '' ] ) + +let g:airline#themes#sol#palette.tabline = { + \ 'airline_tab': ['#343434', '#b3b3b3', 231, 29, ''], + \ 'airline_tabsel': ['#ffffff', '#004b9a', 231, 36, ''], + \ 'airline_tabtype': ['#343434', '#a0a0a0', 231, 36, ''], + \ 'airline_tabfill': ['#343434', '#c7c7c7', 231, 23, ''], + \ 'airline_tabmod': ['#ffffff', '#ff6868', 231, 88, ''], + \ } + +let s:WI = [ '#eeeeee', '#ff0f38', 231, 88 ] +let g:airline#themes#sol#palette.normal.airline_warning = [ + \ s:WI[0], s:WI[1], s:WI[2], s:WI[3] + \ ] + +let g:airline#themes#sol#palette.normal_modified.airline_warning = + \ g:airline#themes#sol#palette.normal.airline_warning + + +let g:airline#themes#sol#palette.insert.airline_warning = + \ g:airline#themes#sol#palette.normal.airline_warning + +let g:airline#themes#sol#palette.insert_modified.airline_warning = + \ g:airline#themes#sol#palette.normal.airline_warning + +let g:airline#themes#sol#palette.visual.airline_warning = + \ g:airline#themes#sol#palette.normal.airline_warning + +let g:airline#themes#sol#palette.visual_modified.airline_warning = + \ g:airline#themes#sol#palette.normal.airline_warning + +let g:airline#themes#sol#palette.replace.airline_warning = + \ g:airline#themes#sol#palette.normal.airline_warning + +let g:airline#themes#sol#palette.replace_modified.airline_warning = + \ g:airline#themes#sol#palette.normal.airline_warning From d7c66aa377c65079e64d7632605a51838cd8e31c Mon Sep 17 00:00:00 2001 From: Pychimp Date: Sat, 28 Sep 2013 01:59:29 +0530 Subject: [PATCH 2/2] Sol theme, Now for vim-airline ! - Colors are now pretty spot-on (with respect to gvim) ! :) --- autoload/airline/themes/sol.vim | 71 ++++++++++++++------------------- 1 file changed, 31 insertions(+), 40 deletions(-) diff --git a/autoload/airline/themes/sol.vim b/autoload/airline/themes/sol.vim index ae61bcf..31aa34f 100644 --- a/autoload/airline/themes/sol.vim +++ b/autoload/airline/themes/sol.vim @@ -7,71 +7,55 @@ let g:airline#themes#sol#palette.accents = { \ 'red': [ '#ffffff' , '' , 231 , '' , '' ], \ } - -" let s:N1 = [ '#5b5b5b' , '#b7b7b7' , 231 , 36 ] -" let s:N2 = [ '#5b5b5b' , '#c3c3c3' , 231 , 29 ] -" let s:N3 = [ '#5b5b5b' , '#d0d0d0' , 231 , 23 ] -" let s:N1 = [ '#343434' , '#969696' , 231 , 36 ] -" let s:N2 = [ '#343434' , '#aaaaaa' , 231 , 29 ] -" let s:N3 = [ '#343434' , '#bdbdbd' , 231 , 23 ] -let s:N1 = [ '#343434' , '#a0a0a0' , 231 , 36 ] -let s:N2 = [ '#343434' , '#b3b3b3' , 231 , 29 ] -let s:N3 = [ '#343434' , '#c7c7c7' , 231 , 23 ] +let s:N1 = [ '#343434' , '#a0a0a0' , 237 , 248 ] +let s:N2 = [ '#343434' , '#b3b3b3' , 237 , 250 ] +let s:N3 = [ '#343434' , '#c7c7c7' , 237 , 252 ] let g:airline#themes#sol#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) let g:airline#themes#sol#palette.normal_modified = { - \ 'airline_c': [ '#ffffff' , '#ff3535' , 231 , 52 , '' ] , + \ 'airline_c': [ '#ffffff' , '#ff3535' , 231 , 203 , '' ] , \ } -let s:I1 = [ '#eeeeee' , '#09643f' , 231 , 106 ] -let s:I2 = [ '#343434' , '#a3a3a3' , 231 , 29 ] -let s:I3 = [ '#343434' , '#b0b0b0' , 231 , 23 ] +let s:I1 = [ '#eeeeee' , '#09643f' , 255 , 30 ] +let s:I2 = [ '#343434' , '#a3a3a3' , 237 , 249 ] +let s:I3 = [ '#343434' , '#b0b0b0' , 237 , 250 ] let g:airline#themes#sol#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) let g:airline#themes#sol#palette.insert_modified = { - \ 'airline_c': [ '#ffffff' , '#ff6868' , 255 , 52 , '' ] , + \ 'airline_c': [ '#ffffff' , '#ff6868' , 225 , 167 , '' ] , \ } let g:airline#themes#sol#palette.insert_paste = { - \ 'airline_a': [ s:I1[0] , '#09643f' , s:I1[2] , 106 , '' ] , + \ 'airline_a': [ s:I1[0] , '#09643f' , s:I1[2] , 30 , '' ] , \ } let g:airline#themes#sol#palette.replace = copy(g:airline#themes#sol#palette.insert) -let g:airline#themes#sol#palette.replace.airline_a = [ s:I1[0] , '#ff2121' , s:I2[2] , 88 , '' ] -let g:airline#themes#sol#palette.replace.airline_z = [ s:I1[0] , '#ff2121' , s:I2[2] , 88 , '' ] +let g:airline#themes#sol#palette.replace.airline_a = [ s:I1[0] , '#ff2121' , s:I1[2] , 196 , '' ] +let g:airline#themes#sol#palette.replace.airline_z = [ s:I1[0] , '#ff2121' , s:I1[2] , 196 , '' ] let g:airline#themes#sol#palette.replace_modified = g:airline#themes#sol#palette.insert_modified -let s:V1 = [ '#ffff9a' , '#ff6003' , 222 , 208 ] -let s:V2 = [ '#343434' , '#a3a3a3' , 231 , 29 ] -let s:V3 = [ '#343434' , '#b0b0b0' , 231 , 23 ] +let s:V1 = [ '#ffff9a' , '#ff6003' , 222 , 202 ] +let s:V2 = [ '#343434' , '#a3a3a3' , 237 , 249 ] +let s:V3 = [ '#343434' , '#b0b0b0' , 237 , 250 ] let g:airline#themes#sol#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) let g:airline#themes#sol#palette.visual_modified = { - \ 'airline_c': [ '#ffffff' , '#ff3535' , 231 , 52 , '' ] , + \ 'airline_c': [ '#ffffff' , '#ff3535' , 231 , 203 , '' ] , \ } -let s:IA = [ '#777777' , '#c7c7c7' , 59 , 23 , '' ] +let s:IA = [ '#777777' , '#c7c7c7' , 244 , 251 , '' ] let g:airline#themes#sol#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) let g:airline#themes#sol#palette.inactive_modified = { - \ 'airline_c': [ '#ff3535' , '' , 52 , '' , '' ] , + \ 'airline_c': [ '#ff3535' , '' , 203 , '' , '' ] , \ } - -if !get(g:, 'loaded_ctrlp', 0) - finish -endif -let g:airline#themes#sol#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( - \ [ '#343434' , '#c7c7c7' , 231 , 23 , '' ] , - \ [ '#343434' , '#b3b3b3' , 231 , 36 , '' ] , - \ [ '#eeeeee' , '#007fff' , 231 , 95 , '' ] ) - let g:airline#themes#sol#palette.tabline = { - \ 'airline_tab': ['#343434', '#b3b3b3', 231, 29, ''], - \ 'airline_tabsel': ['#ffffff', '#004b9a', 231, 36, ''], - \ 'airline_tabtype': ['#343434', '#a0a0a0', 231, 36, ''], - \ 'airline_tabfill': ['#343434', '#c7c7c7', 231, 23, ''], - \ 'airline_tabmod': ['#ffffff', '#ff6868', 231, 88, ''], + \ 'airline_tab': ['#343434', '#b3b3b3', 237, 250, ''], + \ 'airline_tabsel': ['#ffffff', '#004b9a', 231, 31 , ''], + \ 'airline_tabtype': ['#343434', '#a0a0a0', 237, 248, ''], + \ 'airline_tabfill': ['#343434', '#c7c7c7', 237, 251, ''], + \ 'airline_tabmod': ['#ffffff', '#ff6868', 231, 167, ''], \ } -let s:WI = [ '#eeeeee', '#ff0f38', 231, 88 ] +let s:WI = [ '#eeeeee', '#ff0f38', 255, 201 ] let g:airline#themes#sol#palette.normal.airline_warning = [ \ s:WI[0], s:WI[1], s:WI[2], s:WI[3] \ ] @@ -79,7 +63,6 @@ let g:airline#themes#sol#palette.normal.airline_warning = [ let g:airline#themes#sol#palette.normal_modified.airline_warning = \ g:airline#themes#sol#palette.normal.airline_warning - let g:airline#themes#sol#palette.insert.airline_warning = \ g:airline#themes#sol#palette.normal.airline_warning @@ -97,3 +80,11 @@ let g:airline#themes#sol#palette.replace.airline_warning = let g:airline#themes#sol#palette.replace_modified.airline_warning = \ g:airline#themes#sol#palette.normal.airline_warning + +if !get(g:, 'loaded_ctrlp', 0) + finish +endif +let g:airline#themes#sol#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( + \ [ '#343434' , '#c7c7c7' , 237 , 251 , '' ] , + \ [ '#343434' , '#b3b3b3' , 237 , 250 , '' ] , + \ [ '#eeeeee' , '#007fff' , 255 , 27 , '' ] )