vorange.vim 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. " vim-airline companion theme of vorange
  2. " this theme was shamelessly created by modifying
  3. " the srcery airline theme.
  4. " Palette
  5. let s:bg = ["#1C1B19", 234]
  6. let s:bg2 = ["#2D2C29", 235]
  7. let s:fg = ["#FCE8C3", 223]
  8. let s:muted = ["#918175", 240] "131
  9. let s:key1 = ['#D75F00', 166]
  10. let s:key2 = ["#FBB829", 3]
  11. let s:string = ["#98BC37", 10]
  12. let s:special = ["#5573A3", 4]
  13. let s:middle = [s:muted[0], s:bg2[0], s:muted[1], s:bg2[1]]
  14. " Normal mode
  15. let s:N1 = [s:bg2[0], s:muted[0], s:bg2[1], s:muted[1]]
  16. let s:N3 = [s:fg[0], s:bg2[0], s:fg[1], s:bg2[1]]
  17. " Insert mode
  18. let s:I1 = [s:bg2[0], s:key2[0], s:bg2[1], s:key2[1]]
  19. let s:I3 = [s:key2[0], s:bg2[0], s:key2[1], s:bg2[1]]
  20. " Visual mode
  21. let s:V1 = [s:bg2[0], s:key1[0], s:bg2[1], s:key1[1]]
  22. let s:V3 = [s:key1[0], s:bg2[0], s:key1[1], s:bg2[1]]
  23. " Replace mode
  24. let s:R1 = [s:bg2[0], s:special[0], s:bg2[1], s:special[1]]
  25. let s:R3 = [s:special[0], s:bg2[0], s:special[1], s:bg2[1]]
  26. " Inactive pane
  27. let s:IA = [s:muted[0], s:bg[0], s:muted[1], s:bg[1]]
  28. let g:airline#themes#vorange#palette = {}
  29. let g:airline#themes#vorange#palette.accents = {
  30. \ 'red': [s:key1[0], '', s:key1[1], '', '']}
  31. let g:airline#themes#vorange#palette.inactive = {
  32. \ 'airline_a': s:IA,
  33. \ 'airline_b': s:IA,
  34. \ 'airline_c': s:IA}
  35. let g:airline#themes#vorange#palette.normal = airline#themes#generate_color_map(s:N1, s:middle, s:N3)
  36. let g:airline#themes#vorange#palette.normal.airline_warning = [s:key2[0], s:bg2[0], s:key2[1], s:bg2[1], 'bold']
  37. let g:airline#themes#vorange#palette.normal_modified = {
  38. \ 'airline_c': [s:key2[0], '', s:key2[1], '', ''],
  39. \ 'airline_x': [s:key2[0], '', s:key2[1], '', '']
  40. \ }
  41. let g:airline#themes#vorange#palette.normal_modified.airline_warning = g:airline#themes#vorange#palette.normal.airline_warning
  42. let g:airline#themes#vorange#palette.insert = airline#themes#generate_color_map(s:I1, s:middle, s:I3)
  43. let g:airline#themes#vorange#palette.insert.airline_warning = g:airline#themes#vorange#palette.normal.airline_warning
  44. let g:airline#themes#vorange#palette.insert_modified = {}
  45. let g:airline#themes#vorange#palette.insert_modified.airline_warning = g:airline#themes#vorange#palette.normal.airline_warning
  46. let g:airline#themes#vorange#palette.replace = airline#themes#generate_color_map(s:R1, s:middle, s:R3)
  47. let g:airline#themes#vorange#palette.replace.airline_warning = g:airline#themes#vorange#palette.normal.airline_warning
  48. let g:airline#themes#vorange#palette.replace_modified = {}
  49. let g:airline#themes#vorange#palette.replace_modified.airline_warning = g:airline#themes#vorange#palette.normal.airline_warning
  50. let g:airline#themes#vorange#palette.visual = airline#themes#generate_color_map(s:V1, s:middle, s:V3)
  51. let g:airline#themes#vorange#palette.visual.airline_warning = g:airline#themes#vorange#palette.normal.airline_warning
  52. let g:airline#themes#vorange#palette.visual_modified = {}
  53. let g:airline#themes#vorange#palette.visual_modified.airline_warning = g:airline#themes#vorange#palette.normal.airline_warning