2013-07-29 08:06:35 +00:00
|
|
|
" Color palette
|
|
|
|
let s:gui_dark_gray = '#303030'
|
|
|
|
let s:cterm_dark_gray = 236
|
|
|
|
let s:gui_med_gray_hi = '#444444'
|
|
|
|
let s:cterm_med_gray_hi = 238
|
|
|
|
let s:gui_med_gray_lo = '#3a3a3a'
|
|
|
|
let s:cterm_med_gray_lo = 237
|
|
|
|
let s:gui_light_gray = '#b2b2b2'
|
|
|
|
let s:cterm_light_gray = 249
|
|
|
|
let s:gui_green = '#afd787'
|
|
|
|
let s:cterm_green = 150
|
|
|
|
let s:gui_blue = '#87afd7'
|
|
|
|
let s:cterm_blue = 110
|
|
|
|
let s:gui_purple = '#afafd7'
|
|
|
|
let s:cterm_purple = 146
|
|
|
|
let s:gui_orange = '#d7af5f'
|
|
|
|
let s:cterm_orange = 179
|
|
|
|
let s:gui_red = '#d78787'
|
|
|
|
let s:cterm_red = 174
|
|
|
|
let s:gui_pink = '#d7afd7'
|
|
|
|
let s:cterm_pink = 182
|
|
|
|
|
2013-08-18 00:59:49 +00:00
|
|
|
let g:airline#themes#bubblegum#palette = {}
|
|
|
|
|
2013-07-29 08:06:35 +00:00
|
|
|
" Normal mode
|
2013-08-17 19:20:40 +00:00
|
|
|
let s:N1 = [s:gui_dark_gray, s:gui_green, s:cterm_dark_gray, s:cterm_green]
|
|
|
|
let s:N2 = [s:gui_light_gray, s:gui_med_gray_lo, s:cterm_light_gray, s:cterm_med_gray_lo]
|
|
|
|
let s:N3 = [s:gui_green, s:gui_med_gray_hi, s:cterm_green, s:cterm_med_gray_hi]
|
2013-09-18 03:13:32 +00:00
|
|
|
let g:airline#themes#bubblegum#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
2013-08-18 00:59:49 +00:00
|
|
|
let g:airline#themes#bubblegum#palette.normal_modified = {
|
2013-08-17 19:20:40 +00:00
|
|
|
\ 'airline_c': [s:gui_orange, s:gui_med_gray_hi, s:cterm_orange, s:cterm_med_gray_hi, ''],
|
2013-07-29 08:06:35 +00:00
|
|
|
\ }
|
|
|
|
|
|
|
|
" Insert mode
|
|
|
|
let s:I1 = [s:gui_med_gray_hi, s:gui_blue, s:cterm_med_gray_hi, s:cterm_blue]
|
|
|
|
let s:I3 = [s:gui_blue, s:gui_med_gray_hi, s:cterm_blue, s:cterm_med_gray_hi]
|
2013-09-18 03:13:32 +00:00
|
|
|
let g:airline#themes#bubblegum#palette.insert = airline#themes#generate_color_map(s:I1, s:N2, s:I3)
|
2013-08-18 00:59:49 +00:00
|
|
|
let g:airline#themes#bubblegum#palette.insert_modified = copy(g:airline#themes#bubblegum#palette.normal_modified)
|
|
|
|
let g:airline#themes#bubblegum#palette.insert_paste = {
|
2013-08-17 19:20:40 +00:00
|
|
|
\ 'airline_a': [s:gui_dark_gray, s:gui_orange, s:cterm_dark_gray, s:cterm_orange, ''],
|
2013-07-29 08:06:35 +00:00
|
|
|
\ }
|
|
|
|
|
|
|
|
" Replace mode
|
2013-08-18 00:59:49 +00:00
|
|
|
let g:airline#themes#bubblegum#palette.replace = {
|
2013-08-17 19:20:40 +00:00
|
|
|
\ 'airline_a': [s:gui_dark_gray, s:gui_red, s:cterm_dark_gray, s:cterm_red, ''],
|
|
|
|
\ 'airline_c': [s:gui_red, s:gui_med_gray_hi, s:cterm_red, s:cterm_med_gray_hi, ''],
|
2013-07-29 08:06:35 +00:00
|
|
|
\ }
|
2013-08-18 00:59:49 +00:00
|
|
|
let g:airline#themes#bubblegum#palette.replace_modified = copy(g:airline#themes#bubblegum#palette.insert_modified)
|
2013-07-29 08:06:35 +00:00
|
|
|
|
|
|
|
" Visual mode
|
|
|
|
let s:V1 = [s:gui_dark_gray, s:gui_pink, s:cterm_dark_gray, s:cterm_pink]
|
|
|
|
let s:V3 = [s:gui_pink, s:gui_med_gray_hi, s:cterm_pink, s:cterm_med_gray_hi]
|
2013-09-18 03:13:32 +00:00
|
|
|
let g:airline#themes#bubblegum#palette.visual = airline#themes#generate_color_map(s:V1, s:N2, s:V3)
|
2013-08-18 00:59:49 +00:00
|
|
|
let g:airline#themes#bubblegum#palette.visual_modified = copy(g:airline#themes#bubblegum#palette.insert_modified)
|
2013-07-29 08:06:35 +00:00
|
|
|
|
|
|
|
" Inactive window
|
2014-05-04 19:58:04 +00:00
|
|
|
let s:IA = [s:gui_light_gray, s:gui_med_gray_hi, s:cterm_light_gray, s:cterm_med_gray_hi, '']
|
2013-09-18 03:13:32 +00:00
|
|
|
let g:airline#themes#bubblegum#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
|
2013-09-05 21:34:48 +00:00
|
|
|
let g:airline#themes#bubblegum#palette.inactive_modified = {
|
|
|
|
\ 'airline_c': [s:gui_orange, '', s:cterm_orange, '', ''],
|
|
|
|
\ }
|
2013-07-29 08:06:35 +00:00
|
|
|
|
2014-11-20 13:27:26 +00:00
|
|
|
" CtrlP
|
|
|
|
if !get(g:, 'loaded_ctrlp', 0)
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
let g:airline#themes#bubblegum#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
|
|
|
\ [ s:gui_orange, s:gui_med_gray_hi, s:cterm_orange, s:cterm_med_gray_hi, '' ] ,
|
|
|
|
\ [ s:gui_orange, s:gui_med_gray_lo, s:cterm_orange, s:cterm_med_gray_lo, '' ] ,
|
|
|
|
\ [ s:gui_dark_gray, s:gui_green, s:cterm_dark_gray, s:cterm_green, 'bold' ] )
|