2013-08-08 04:10:08 +00:00
|
|
|
" vim-airline companion theme of Laederon
|
2013-07-14 08:13:51 +00:00
|
|
|
" (https://github.com/Donearm/Laederon)
|
2018-11-09 08:48:49 +00:00
|
|
|
"
|
|
|
|
" Author: Gianluca fiore <https://github.com/Donearm/>
|
2018-11-14 08:15:36 +00:00
|
|
|
" Version: 1.12
|
2018-11-09 08:48:49 +00:00
|
|
|
" License: MIT
|
2013-07-14 08:13:51 +00:00
|
|
|
|
|
|
|
" Normal mode
|
2018-11-14 08:15:36 +00:00
|
|
|
"
|
2018-11-09 08:48:49 +00:00
|
|
|
let s:N1 = [ '#081c8c' , '#f8f6f2','18','15']
|
|
|
|
let s:N2 = [ '#1693a5' , '#f8f6f2','62','15']
|
2018-11-14 08:15:36 +00:00
|
|
|
let s:N3 = [ '#90a680' , '#2e2d2a' , 64, 235 ]
|
|
|
|
let s:N4 = [ '#081c8c' , 18 ]
|
2013-07-14 08:13:51 +00:00
|
|
|
|
|
|
|
" Insert mode
|
2018-11-09 08:48:49 +00:00
|
|
|
let s:I1 = [ '#f8f6f2', '#ab3e5b','15','161']
|
|
|
|
let s:I2 = [ '#242321', '#ab3e5b','235','161']
|
|
|
|
let s:I3 = [ '#1693a5', '#f8f6f2', '62', '15']
|
2018-11-14 08:15:36 +00:00
|
|
|
let s:I4 = [ '#1693a5' , 62 ]
|
2013-07-14 08:13:51 +00:00
|
|
|
|
|
|
|
" Visual mode
|
2018-11-09 08:48:49 +00:00
|
|
|
let s:V1 = [ '#005f00', '#f8f6f2','22','15']
|
|
|
|
let s:V2 = [ '#f8f6f2', '#005f00','15','22']
|
|
|
|
let s:V3 = [ '#594512', '#f8f6f2','64','15']
|
2018-11-14 08:15:36 +00:00
|
|
|
let s:V4 = [ '#594512' , 64 ]
|
2013-07-14 08:13:51 +00:00
|
|
|
|
|
|
|
" Replace mode
|
2018-11-09 08:48:49 +00:00
|
|
|
let s:R1 = [ '#90a680' , '#f8f6f2','66','15']
|
|
|
|
let s:R2 = [ '#90a680' , '#242321','66','235']
|
|
|
|
let s:R3 = [ '#f8f6f2' , '#90a680','15','66']
|
2018-11-14 08:15:36 +00:00
|
|
|
let s:R4 = [ '#90a680' , 66 ]
|
2013-07-14 08:13:51 +00:00
|
|
|
|
|
|
|
" Paste mode
|
2018-11-14 08:15:36 +00:00
|
|
|
let s:PA = [ '#ab3e5d' , 161 ]
|
|
|
|
|
|
|
|
" Info modified
|
|
|
|
let s:IM = [ '#242321' , 235 ]
|
2013-07-14 08:13:51 +00:00
|
|
|
|
2018-11-14 08:15:36 +00:00
|
|
|
" Inactive mode
|
|
|
|
let s:IA = [ s:N2[1], s:N3[1], s:N2[3], s:N3[3], '' ]
|
2013-07-14 08:13:51 +00:00
|
|
|
|
2013-08-18 00:59:49 +00:00
|
|
|
let g:airline#themes#laederon#palette = {}
|
|
|
|
|
2018-11-14 08:15:36 +00:00
|
|
|
let g:airline#themes#laederon#palette.accents = {
|
|
|
|
\ 'red': [ '#ef393d' , '' , 196 , '' , '' ],
|
|
|
|
\ }
|
2013-09-18 03:13:32 +00:00
|
|
|
|
|
|
|
let g:airline#themes#laederon#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#laederon#palette.normal_modified = {
|
2018-11-14 08:15:36 +00:00
|
|
|
\ 'airline_a': [ s:N1[0] , s:N4[0] , s:N1[2] , s:N4[1] , '' ] ,
|
|
|
|
\ 'airline_b': [ s:N4[0] , s:IM[0] , s:N4[1] , s:IM[1] , '' ] ,
|
|
|
|
\ 'airline_c': [ s:N4[0] , s:N3[1] , s:N4[1] , s:N3[3] , '' ] }
|
|
|
|
|
2013-07-14 08:13:51 +00:00
|
|
|
|
2013-09-18 03:13:32 +00:00
|
|
|
let g:airline#themes#laederon#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
2013-08-18 00:59:49 +00:00
|
|
|
let g:airline#themes#laederon#palette.insert_modified = {
|
2018-11-14 08:15:36 +00:00
|
|
|
\ 'airline_a': [ s:I1[0] , s:I4[0] , s:I1[2] , s:I4[1] , '' ] ,
|
|
|
|
\ 'airline_b': [ s:I4[0] , s:IM[0] , s:I4[1] , s:IM[1] , '' ] ,
|
|
|
|
\ 'airline_c': [ s:I4[0] , s:N3[1] , s:I4[1] , s:N3[3] , '' ] }
|
2013-07-14 08:13:51 +00:00
|
|
|
|
|
|
|
|
2013-09-18 03:13:32 +00:00
|
|
|
let g:airline#themes#laederon#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
2013-08-18 00:59:49 +00:00
|
|
|
let g:airline#themes#laederon#palette.visual_modified = {
|
2018-11-14 08:15:36 +00:00
|
|
|
\ 'airline_a': [ s:V1[0] , s:V4[0] , s:V1[2] , s:V4[1] , '' ] ,
|
|
|
|
\ 'airline_b': [ s:V4[0] , s:IM[0] , s:V4[1] , s:IM[1] , '' ] ,
|
|
|
|
\ 'airline_c': [ s:V4[0] , s:N3[1] , s:V4[1] , s:N3[3] , '' ] }
|
|
|
|
|
|
|
|
|
|
|
|
let g:airline#themes#laederon#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
|
|
|
let g:airline#themes#laederon#palette.replace_modified = {
|
|
|
|
\ 'airline_a': [ s:R1[0] , s:R4[0] , s:R1[2] , s:R4[1] , '' ] ,
|
|
|
|
\ 'airline_b': [ s:R4[0] , s:IM[0] , s:R4[1] , s:IM[1] , '' ] ,
|
|
|
|
\ 'airline_c': [ s:R4[0] , s:N3[1] , s:R4[1] , s:N3[3] , '' ] }
|
|
|
|
|
|
|
|
|
|
|
|
let g:airline#themes#laederon#palette.insert_paste = {
|
|
|
|
\ 'airline_a': [ s:I1[0] , s:PA[0] , s:I1[2] , s:PA[1] , '' ] ,
|
|
|
|
\ 'airline_b': [ s:PA[0] , s:IM[0] , s:PA[1] , s:IM[1] , '' ] ,
|
|
|
|
\ 'airline_c': [ s:PA[0] , s:N3[1] , s:PA[1] , s:N3[3] , '' ] }
|
2013-07-14 08:13:51 +00:00
|
|
|
|
2013-07-16 03:09:41 +00:00
|
|
|
|
2013-09-18 03:13:32 +00:00
|
|
|
let g:airline#themes#laederon#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#laederon#palette.inactive_modified = {
|
2018-11-14 08:15:36 +00:00
|
|
|
\ 'airline_c': [ s:N4[0] , '' , s:N4[1] , '' , '' ] }
|
|
|
|
|
2018-11-09 08:48:49 +00:00
|
|
|
|
2013-08-11 20:13:04 +00:00
|
|
|
|