2013-08-18 08:59:49 +08:00
|
|
|
let g:airline#themes#tomorrow#palette = {}
|
|
|
|
|
2013-08-05 00:18:05 +08:00
|
|
|
function! s:generate()
|
2013-09-18 11:13:32 +08:00
|
|
|
let g:airline#themes#tomorrow#palette.accents = {
|
|
|
|
\ 'red': airline#themes#get_highlight('Constant'),
|
|
|
|
\ }
|
2013-08-05 03:44:57 +08:00
|
|
|
|
2013-08-05 03:51:41 +08:00
|
|
|
let s:N1 = airline#themes#get_highlight2(['Normal', 'bg'], ['Directory', 'fg'], 'bold')
|
2013-08-05 00:18:05 +08:00
|
|
|
let s:N2 = airline#themes#get_highlight('Pmenu')
|
2013-08-05 03:10:44 +08:00
|
|
|
let s:N3 = airline#themes#get_highlight('CursorLine')
|
2013-09-18 11:13:32 +08:00
|
|
|
let g:airline#themes#tomorrow#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
2013-08-05 03:37:30 +08:00
|
|
|
|
|
|
|
let group = airline#themes#get_highlight('vimCommand')
|
2013-08-18 08:59:49 +08:00
|
|
|
let g:airline#themes#tomorrow#palette.normal_modified = {
|
2013-08-18 03:20:40 +08:00
|
|
|
\ 'airline_c': [ group[0], '', group[2], '', '' ]
|
2013-08-05 00:18:05 +08:00
|
|
|
\ }
|
|
|
|
|
2013-08-05 03:44:57 +08:00
|
|
|
let s:I1 = airline#themes#get_highlight2(['Normal', 'bg'], ['MoreMsg', 'fg'], 'bold')
|
2013-08-05 03:37:30 +08:00
|
|
|
let s:I2 = airline#themes#get_highlight2(['MoreMsg', 'fg'], ['Normal', 'bg'])
|
2013-08-05 00:18:05 +08:00
|
|
|
let s:I3 = s:N3
|
2013-09-18 11:13:32 +08:00
|
|
|
let g:airline#themes#tomorrow#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
2013-08-18 08:59:49 +08:00
|
|
|
let g:airline#themes#tomorrow#palette.insert_modified = g:airline#themes#tomorrow#palette.normal_modified
|
2013-08-05 00:18:05 +08:00
|
|
|
|
|
|
|
let s:R1 = airline#themes#get_highlight('Error', 'bold')
|
|
|
|
let s:R2 = s:N2
|
|
|
|
let s:R3 = s:N3
|
2013-09-18 11:13:32 +08:00
|
|
|
let g:airline#themes#tomorrow#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
2013-08-18 08:59:49 +08:00
|
|
|
let g:airline#themes#tomorrow#palette.replace_modified = g:airline#themes#tomorrow#palette.normal_modified
|
2013-08-05 00:18:05 +08:00
|
|
|
|
|
|
|
let s:V1 = airline#themes#get_highlight2(['Normal', 'bg'], ['Constant', 'fg'], 'bold')
|
2013-08-05 03:44:57 +08:00
|
|
|
let s:V2 = airline#themes#get_highlight2(['Constant', 'fg'], ['Normal', 'bg'])
|
2013-08-05 00:18:05 +08:00
|
|
|
let s:V3 = s:N3
|
2013-09-18 11:13:32 +08:00
|
|
|
let g:airline#themes#tomorrow#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
2013-08-18 08:59:49 +08:00
|
|
|
let g:airline#themes#tomorrow#palette.visual_modified = g:airline#themes#tomorrow#palette.normal_modified
|
2013-08-05 00:18:05 +08:00
|
|
|
|
2013-08-05 03:10:44 +08:00
|
|
|
let s:IA = airline#themes#get_highlight2(['NonText', 'fg'], ['CursorLine', 'bg'])
|
2013-09-18 11:13:32 +08:00
|
|
|
let g:airline#themes#tomorrow#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
|
2013-09-06 05:34:48 +08:00
|
|
|
let g:airline#themes#tomorrow#palette.inactive_modified = {
|
|
|
|
\ 'airline_c': [ group[0], '', group[2], '', '' ]
|
|
|
|
\ }
|
2013-08-05 00:18:05 +08:00
|
|
|
endfunction
|
|
|
|
|
|
|
|
call s:generate()
|
|
|
|
augroup airline_tomorrow
|
|
|
|
autocmd!
|
2013-08-18 01:35:06 +08:00
|
|
|
autocmd ColorScheme * call <sid>generate() | call airline#load_theme()
|
2013-08-05 00:18:05 +08:00
|
|
|
augroup END
|