diff --git a/autoload/airline/themes/base16_atelierdune.vim b/autoload/airline/themes/base16_atelierdune.vim index 94cfacd..785a673 100644 --- a/autoload/airline/themes/base16_atelierdune.vim +++ b/autoload/airline/themes/base16_atelierdune.vim @@ -1,22 +1,22 @@ " vim-airline template by chartoin (http://github.com/chartoin) " Base 16 Atelier Dune Scheme by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune) let g:airline#themes#base16_atelierdune#palette = {} -let s:gui00 = "#20201d" -let s:gui01 = "#292824" -let s:gui02 = "#6e6b5e" -let s:gui03 = "#7d7a68" -let s:gui04 = "#999580" -let s:gui05 = "#a6a28c" -let s:gui06 = "#e8e4cf" -let s:gui07 = "#fefbec" -let s:gui08 = "#d73737" -let s:gui09 = "#b65611" -let s:gui0A = "#cfb017" -let s:gui0B = "#60ac39" -let s:gui0C = "#1fad83" -let s:gui0D = "#6684e1" -let s:gui0E = "#b854d4" -let s:gui0F = "#d43552" +let s:gui00 = '#20201d' +let s:gui01 = '#292824' +let s:gui02 = '#6e6b5e' +let s:gui03 = '#7d7a68' +let s:gui04 = '#999580' +let s:gui05 = '#a6a28c' +let s:gui06 = '#e8e4cf' +let s:gui07 = '#fefbec' +let s:gui08 = '#d73737' +let s:gui09 = '#b65611' +let s:gui0A = '#cfb017' +let s:gui0B = '#60ac39' +let s:gui0C = '#1fad83' +let s:gui0D = '#6684e1' +let s:gui0E = '#b854d4' +let s:gui0F = '#d43552' let s:cterm00 = 0 let s:cterm01 = 0 @@ -71,3 +71,9 @@ let g:airline#themes#base16_atelierdune#palette.ctrlp = airline#extensions#ctrlp \ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ], \ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ], \ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ]) + +for mode in keys(g:airline#themes#fruit_punch#palette) + if mode == 'accents' + continue + endif +endfor diff --git a/autoload/airline/themes/fruit_punch.vim b/autoload/airline/themes/fruit_punch.vim new file mode 100644 index 0000000..02ba8a9 --- /dev/null +++ b/autoload/airline/themes/fruit_punch.vim @@ -0,0 +1,80 @@ +" Fruitpunch - A fruity airline theme! +" vim: tw=80 et sw=2 ts=2 + +" Colors {{{ +let s:dark_gray = ['#303030', 236] +let s:med_gray_hi = ['#444444', 238] +let s:med_gray_lo = ['#3a3a3a', 237] +let s:light_gray = ['#b2b2b2', 249] +let s:pretty_pink = ['#f29db4', 217] +let s:banana_smoothie = ['#fce78d', 222] +let s:faded_red = ['#f97070', 203] +let s:icy_sky = ['#79e5e0', 116] +let s:orangarine = ['#e8a15a', 179] +"}}} + +" Init {{{ +" Translate color defs to airline format +fun! s:gen_def(fg, bg) + return [a:fg[0], a:bg[0], a:fg[1], a:bg[1]] +endfun +let s:bar_main = s:gen_def(s:light_gray, s:med_gray_lo) + [''] +let g:airline#themes#fruit_punch#palette = {} +"}}} + +" Normal mode {{{ +let s:airline_a_normal = s:gen_def(s:dark_gray, s:pretty_pink) +let s:airline_c_normal = s:gen_def(s:pretty_pink, s:med_gray_hi) +let g:airline#themes#fruit_punch#palette.normal = + \ airline#themes#generate_color_map(s:airline_a_normal + \ , s:bar_main, s:airline_c_normal) +"}}} + +" Insert mode {{{ +let s:airline_a_insert = s:gen_def(s:dark_gray, s:banana_smoothie) +let s:airline_c_insert = s:gen_def(s:banana_smoothie, s:med_gray_hi) +let g:airline#themes#fruit_punch#palette.insert = + \ airline#themes#generate_color_map(s:airline_a_insert + \ , s:bar_main, s:airline_c_insert) +"}}} + +" Visual mode {{{ +let s:airline_a_visual = s:gen_def(s:dark_gray, s:icy_sky) +let s:airline_c_visual = s:gen_def(s:icy_sky, s:med_gray_hi) +let g:airline#themes#fruit_punch#palette.visual = + \ airline#themes#generate_color_map(s:airline_a_visual + \ , s:bar_main, s:airline_c_visual) +"}}} + +" Replace mode {{{ +let s:airline_a_replace = s:gen_def(s:dark_gray, s:faded_red) +let s:airline_c_replace = s:gen_def(s:faded_red, s:med_gray_hi) +let g:airline#themes#fruit_punch#palette.replace = + \ airline#themes#generate_color_map(s:airline_a_replace + \ , s:bar_main, s:airline_c_replace) +"}}} + +" Inactive color {{{ +let s:airline_inactive = s:gen_def(s:light_gray, s:med_gray_hi) +let g:airline#themes#fruit_punch#palette.inactive = + \ airline#themes#generate_color_map(s:airline_inactive + \ , s:airline_inactive, s:airline_inactive) +"}}} + +" Global colors {{{ +let s:tmp = {'normal_modified': {}, 'insert_modified': {} + \, 'visual_modified': {}, 'replace_modified': {}} + +for mode in keys(s:tmp) + let s:tmp[mode]['airline_c'] = s:airline_c_insert +endfor +call extend(g:airline#themes#fruit_punch#palette, s:tmp) + +let s:warning = s:gen_def(s:dark_gray, s:orangarine) +for mode in keys(g:airline#themes#fruit_punch#palette) + if mode == 'accents' + continue + endif + let g:airline#themes#fruit_punch#palette[mode]['airline_warning'] = s:warning +endfor +"}}} diff --git a/doc/airline-themes.txt b/doc/airline-themes.txt index 8533715..44697ad 100644 --- a/doc/airline-themes.txt +++ b/doc/airline-themes.txt @@ -94,6 +94,7 @@ Currently this repository contains the following themes: * dracula * durant * faryfloss + * fruit_punch * hybrid * hybridline * jay @@ -244,7 +245,7 @@ look more like classic powerline in normal mode. To enable it: > < *g:airline_solarized_dark_text* -Turns the text color of the outer-most sections of the statusline to be dark. +Turns the text color of the outer-most sections of the statusline to be dark. To enable it: > let g:airline_solarized_dark_text = 1 <