Skyler Grey | a7feb6e | 2022-08-26 06:51:55 +0100 | [diff] [blame] | 1 | let g:airline#themes#onehalf#palette = {} |
| 2 | function! airline#themes#onehalf#refresh() |
| 3 | |
| 4 | function! s:generateAirlinePalette(primary) |
| 5 | return { |
| 6 | \ 'airline_a' : [g:black.gui, a:primary.gui, g:black.cterm, a:primary.cterm], |
| 7 | \ 'airline_b' : [g:white.gui, g:lightgrey.gui, g:white.cterm, g:lightgrey.cterm], |
| 8 | \ 'airline_c' : [a:primary.gui, g:statusline.gui, a:primary.cterm, g:statusline.cterm], |
| 9 | \ 'airline_x' : [a:primary.gui, g:statusline.gui, a:primary.cterm, g:statusline.cterm], |
| 10 | \ 'airline_y' : [g:white.gui, g:lightgrey.gui, g:white.cterm, g:lightgrey.cterm], |
| 11 | \ 'airline_z' : [g:black.gui, a:primary.gui, g:black.cterm, a:primary.cterm], |
| 12 | \ 'airline_warning': [g:black.gui, g:yellow.gui, g:black.cterm, g:yellow.cterm], |
| 13 | \ 'airline_error' : [g:black.gui, g:red.gui, g:black.cterm, g:red.cterm]} |
| 14 | endfunction |
| 15 | |
| 16 | let g:airline#themes#onehalf#palette.normal = s:generateAirlinePalette(g:green) |
| 17 | let g:airline#themes#onehalf#palette.visual = s:generateAirlinePalette(g:purple) |
| 18 | let g:airline#themes#onehalf#palette.select = s:generateAirlinePalette(g:purple) |
| 19 | let g:airline#themes#onehalf#palette.multi = s:generateAirlinePalette(g:purple) |
| 20 | let g:airline#themes#onehalf#palette.insert = s:generateAirlinePalette(g:yellow) |
| 21 | let g:airline#themes#onehalf#palette.commandline = s:generateAirlinePalette(g:red) |
| 22 | let g:airline#themes#onehalf#palette.terminal = s:generateAirlinePalette(g:cyan) |
| 23 | let g:airline#themes#onehalf#palette.replace = s:generateAirlinePalette(g:blue) |
| 24 | let g:airline#themes#onehalf#palette.inactive = s:generateAirlinePalette(g:white) |
| 25 | let g:airline#themes#onehalf#palette.normal_modified = s:generateAirlinePalette(g:green) |
| 26 | let g:airline#themes#onehalf#palette.visual_modified = s:generateAirlinePalette(g:purple) |
| 27 | let g:airline#themes#onehalf#palette.select_modified = s:generateAirlinePalette(g:purple) |
| 28 | let g:airline#themes#onehalf#palette.multi_modified = s:generateAirlinePalette(g:purple) |
| 29 | let g:airline#themes#onehalf#palette.insert_modified = s:generateAirlinePalette(g:yellow) |
| 30 | let g:airline#themes#onehalf#palette.commandline_modified = s:generateAirlinePalette(g:red) |
| 31 | let g:airline#themes#onehalf#palette.terminal_modified = s:generateAirlinePalette(g:cyan) |
| 32 | let g:airline#themes#onehalf#palette.replace_modified = s:generateAirlinePalette(g:blue) |
| 33 | |
| 34 | |
| 35 | let g:airline#themes#onehalf#palette.tabline = { |
| 36 | \ 'airline_tabtype' : [g:white.gui, g:lightgrey.gui, g:white.cterm, g:lightgrey.cterm]} |
| 37 | |
| 38 | endfunction |
| 39 | |
| 40 | call airline#themes#onehalf#refresh() |