From 72a201e61882b907df355432e313d34c6e949396 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Thu, 4 Jul 2013 12:55:14 -0400 Subject: [PATCH] implement light colorscheme --- .../airline/themes/{default.vim => dark.vim} | 24 +++++------ autoload/airline/themes/light.vim | 43 +++++++++++++++++++ plugin/airline.vim | 2 +- 3 files changed, 56 insertions(+), 13 deletions(-) rename autoload/airline/themes/{default.vim => dark.vim} (65%) create mode 100644 autoload/airline/themes/light.vim diff --git a/autoload/airline/themes/default.vim b/autoload/airline/themes/dark.vim similarity index 65% rename from autoload/airline/themes/default.vim rename to autoload/airline/themes/dark.vim index 459aa58..3f09f9f 100644 --- a/autoload/airline/themes/default.vim +++ b/autoload/airline/themes/dark.vim @@ -1,7 +1,7 @@ let s:N1 = [ '#00005f' , '#dfff00' , 17 , 190 ] let s:N2 = [ '#ffffff' , '#444444' , 255 , 238 ] let s:N3 = [ '#9cffd3' , '#202020' , 85 , 234 ] -let g:airline#themes#default#normal = { +let g:airline#themes#dark#normal = { \ 'mode': [ s:N1[0] , s:N1[1] , s:N1[2] , s:N1[3] , 'bold' ] , \ 'mode_separator': [ s:N1[1] , s:N2[1] , s:N1[3] , s:N2[3] , 'bold' ] , \ 'info': [ s:N2[0] , s:N2[1] , s:N2[2] , s:N2[3] , '' ] , @@ -10,34 +10,34 @@ let g:airline#themes#default#normal = { \ 'file': [ '#ff0000' , '#1c1c1c' , 160 , 233 , '' ] , \ 'inactive': [ '#4e4e4e' , '#1c1c1c' , 239 , 234 , '' ] , \ } -let g:airline#themes#default#normal_modified = copy(g:airline#themes#default#normal) -let g:airline#themes#default#normal_modified.info_separator = [ '#444444' , '#5f005f' , 238 , 53 , '' ] -let g:airline#themes#default#normal_modified.statusline = [ '#ffffff' , '#5f005f' , 255 , 53 , '' ] +let g:airline#themes#dark#normal_modified = copy(g:airline#themes#dark#normal) +let g:airline#themes#dark#normal_modified.info_separator = [ '#444444' , '#5f005f' , 238 , 53 , '' ] +let g:airline#themes#dark#normal_modified.statusline = [ '#ffffff' , '#5f005f' , 255 , 53 , '' ] let s:I1 = [ '#00005f' , '#00dfff' , 17 , 45 ] let s:I2 = [ '#ffffff' , '#005fff' , 255 , 27 ] let s:I3 = [ '#ffffff' , '#000080' , 15 , 17 ] -let g:airline#themes#default#insert = { +let g:airline#themes#dark#insert = { \ 'mode': [ s:I1[0] , s:I1[1] , s:I1[2] , s:I1[3] , 'bold' ] , \ 'mode_separator': [ s:I1[1] , s:I2[1] , s:I1[3] , s:I2[3] , 'bold' ] , \ 'info': [ s:I2[0] , s:I2[1] , s:I2[2] , s:I2[3] , '' ] , \ 'info_separator': [ s:I2[1] , s:I3[1] , s:I2[3] , s:I3[3] , 'bold' ] , \ 'statusline': [ s:I3[0] , s:I3[1] , s:I3[2] , s:I3[3] , '' ] , \ } -let g:airline#themes#default#insert_modified = copy(g:airline#themes#default#insert) -let g:airline#themes#default#insert_modified.info_separator = [ '#005fff' , '#5f005f' , 27 , 53 , '' ] -let g:airline#themes#default#insert_modified.statusline = [ '#ffffff' , '#5f005f' , 255 , 53 , '' ] +let g:airline#themes#dark#insert_modified = copy(g:airline#themes#dark#insert) +let g:airline#themes#dark#insert_modified.info_separator = [ '#005fff' , '#5f005f' , 27 , 53 , '' ] +let g:airline#themes#dark#insert_modified.statusline = [ '#ffffff' , '#5f005f' , 255 , 53 , '' ] let s:V1 = [ '#000000' , '#ffaf00' , 232 , 214 ] let s:V2 = [ '#000000' , '#ff5f00' , 232 , 202 ] let s:V3 = [ '#ffffff' , '#5f0000' , 15 , 52 ] -let g:airline#themes#default#visual = { +let g:airline#themes#dark#visual = { \ 'mode': [ s:V1[0] , s:V1[1] , s:V1[2] , s:V1[3] , 'bold' ] , \ 'mode_separator': [ s:V1[1] , s:V2[1] , s:V1[3] , s:V2[3] , 'bold' ] , \ 'info': [ s:V2[0] , s:V2[1] , s:V2[2] , s:V2[3] , '' ] , \ 'info_separator': [ s:V2[1] , s:V3[1] , s:V2[3] , s:V3[3] , 'bold' ] , \ 'statusline': [ s:V3[0] , s:V3[1] , s:V3[2] , s:V3[3] , '' ] , \ } -let g:airline#themes#default#visual_modified = copy(g:airline#themes#default#visual) -let g:airline#themes#default#visual_modified.info_separator = [ '#ff5f00' , '#5f005f' , 202 , 53 , '' ] -let g:airline#themes#default#visual_modified.statusline = [ '#ffffff' , '#5f005f' , 255 , 53 , '' ] +let g:airline#themes#dark#visual_modified = copy(g:airline#themes#dark#visual) +let g:airline#themes#dark#visual_modified.info_separator = [ '#ff5f00' , '#5f005f' , 202 , 53 , '' ] +let g:airline#themes#dark#visual_modified.statusline = [ '#ffffff' , '#5f005f' , 255 , 53 , '' ] diff --git a/autoload/airline/themes/light.vim b/autoload/airline/themes/light.vim new file mode 100644 index 0000000..19af135 --- /dev/null +++ b/autoload/airline/themes/light.vim @@ -0,0 +1,43 @@ +let s:N1 = [ '#ffffff' , '#005fff' , 255 , 27 ] +let s:N2 = [ '#000087' , '#00dfff' , 18 , 45 ] +let s:N3 = [ '#005fff' , '#afffff' , 27 , 159 ] +let g:airline#themes#light#normal = { + \ 'mode': [ s:N1[0] , s:N1[1] , s:N1[2] , s:N1[3] , 'bold' ] , + \ 'mode_separator': [ s:N1[1] , s:N2[1] , s:N1[3] , s:N2[3] , 'bold' ] , + \ 'info': [ s:N2[0] , s:N2[1] , s:N2[2] , s:N2[3] , '' ] , + \ 'info_separator': [ s:N2[1] , s:N3[1] , s:N2[3] , s:N3[3] , 'bold' ] , + \ 'statusline': [ s:N3[0] , s:N3[1] , s:N3[2] , s:N3[3] , '' ] , + \ 'file': [ '#df0000' , '#ffffff' , 160 , 255 , '' ] , + \ 'inactive': [ '#9e9e9e' , '#ffffff' , 247 , 255 , '' ] , + \ } +let g:airline#themes#light#normal_modified = copy(g:airline#themes#light#normal) +let g:airline#themes#light#normal_modified.info_separator = [ '#00dfff' , '#ffdfdf' , 45 , 224 , '' ] +let g:airline#themes#light#normal_modified.statusline = [ '#df0000' , '#ffdfdf' , 160 , 224 , '' ] + +let s:I1 = [ '#ffffff' , '#00875f' , 255 , 29 ] +let s:I2 = [ '#005f00' , '#00df87' , 22 , 42 ] +let s:I3 = [ '#005f5f' , '#afff87' , 23 , 156 ] +let g:airline#themes#light#insert = { + \ 'mode': [ s:I1[0] , s:I1[1] , s:I1[2] , s:I1[3] , 'bold' ] , + \ 'mode_separator': [ s:I1[1] , s:I2[1] , s:I1[3] , s:I2[3] , 'bold' ] , + \ 'info': [ s:I2[0] , s:I2[1] , s:I2[2] , s:I2[3] , '' ] , + \ 'info_separator': [ s:I2[1] , s:I3[1] , s:I2[3] , s:I3[3] , 'bold' ] , + \ 'statusline': [ s:I3[0] , s:I3[1] , s:I3[2] , s:I3[3] , '' ] , + \ } +let g:airline#themes#light#insert_modified = copy(g:airline#themes#light#insert) +let g:airline#themes#light#insert_modified.info_separator = [ '#00df87' , '#ffdfdf' , 42 , 224 , '' ] +let g:airline#themes#light#insert_modified.statusline = [ '#df0000' , '#ffdfdf' , 160 , 224 , '' ] + +let s:V1 = [ '#5f0000' , '#ff5f00' , 52 , 202 ] +let s:V2 = [ '#5f0000' , '#ffaf00' , 52 , 214 ] +let s:V3 = [ '#df5f00' , '#ffff87' , 166 , 228 ] +let g:airline#themes#light#visual = { + \ 'mode': [ s:V1[0] , s:V1[1] , s:V1[2] , s:V1[3] , 'bold' ] , + \ 'mode_separator': [ s:V1[1] , s:V2[1] , s:V1[3] , s:V2[3] , 'bold' ] , + \ 'info': [ s:V2[0] , s:V2[1] , s:V2[2] , s:V2[3] , '' ] , + \ 'info_separator': [ s:V2[1] , s:V3[1] , s:V2[3] , s:V3[3] , 'bold' ] , + \ 'statusline': [ s:V3[0] , s:V3[1] , s:V3[2] , s:V3[3] , '' ] , + \ } +let g:airline#themes#light#visual_modified = copy(g:airline#themes#light#visual) +let g:airline#themes#light#visual_modified.info_separator = [ '#ffaf00' , '#ffdfdf' , 214 , 224 , '' ] +let g:airline#themes#light#visual_modified.statusline = [ '#df0000' , '#ffdfdf' , 160 , 224 , '' ] diff --git a/plugin/airline.vim b/plugin/airline.vim index 433c4a2..5900ca7 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -19,7 +19,7 @@ call s:check_defined('g:airline_enable_syntastic', 1) call s:check_defined('g:airline_fugitive_prefix', exists('g:airline_powerline_fonts')?' ':'') call s:check_defined('g:airline_readonly_symbol', exists('g:airline_powerline_fonts')?'':'RO') call s:check_defined('g:airline_linecolumn_prefix', exists('g:airline_powerline_fonts')?' ':':') -call s:check_defined('g:airline_theme', 'default') +call s:check_defined('g:airline_theme', 'light') call s:check_defined('g:airline_modified_detection', 1) call s:check_defined('g:airline_exclude_filenames', ['DebuggerWatch','DebuggerStack','DebuggerStatus']) call s:check_defined('g:airline_exclude_filetypes', ['qf','netrw','diff','undotree','gundo','nerdtree','tagbar'])