Merge pull request #174 from paroxayte/fruitpunch

Add fruit punch theme
This commit is contained in:
Christian Brabandt 2019-05-06 14:16:48 +02:00 committed by GitHub
commit 012c62c058
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 104 additions and 17 deletions

View File

@ -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

View File

@ -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
"}}}

View File

@ -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
<