From ce980c739921be666f2b6dd36cbc503def119036 Mon Sep 17 00:00:00 2001 From: peach lasagna <59787538+peach-lasagna@users.noreply.github.com> Date: Mon, 30 Nov 2020 02:47:56 +0700 Subject: [PATCH 1/2] Create transparent.vim akhatib.com/minimal-and-clean-vim-airline-theme/ --- autoload/airline/themes/transparent.vim | 155 ++++++++++++++++++++++++ 1 file changed, 155 insertions(+) create mode 100644 autoload/airline/themes/transparent.vim diff --git a/autoload/airline/themes/transparent.vim b/autoload/airline/themes/transparent.vim new file mode 100644 index 0000000..f48f21a --- /dev/null +++ b/autoload/airline/themes/transparent.vim @@ -0,0 +1,155 @@ +"FROM https://github.com/khatiba + +" Colors +let s:gray = [245, '#3f4b59'] +let s:darkgray = [245, '#1d1f21'] +let s:golden = [143, '#BBE67E'] +let s:pink = [131, '#F07178'] +let s:blue = [ 67, '#D4BFFF'] +let s:orange = [166, '#ffae57'] +let s:outerfg = [ 16, '#8d96a1'] +let s:outerfgi = [ 16, '#2f3d4d'] + +" Backgrounds +let s:outerbg = [ 16, 'NONE'] +let s:innerbg = [234, 'NONE'] + +" Normal mode +let s:N1 = [s:outerfg[1], s:outerbg[1], s:outerfg[0], s:gray[0]] +let s:N3 = [s:gray[1] , s:innerbg[1], s:gray[0] , s:innerbg[0]] + +" Normal mode - modified +let s:NM1 = [s:darkgray[1], s:orange[1], s:darkgray[0], s:orange[0]] +let s:NM3 = [s:orange[1] , s:outerbg[1], s:orange[0], s:darkgray[0]] + +" Insert mode +let s:I1 = [s:darkgray[1], s:golden[1], s:outerfg[0], s:golden[0]] +let s:I3 = [s:golden[1] , s:innerbg[1], s:golden[0], s:innerbg[0]] + +" Visual mode +let s:V1 = [s:darkgray[1], s:pink[1], s:outerfg[0], s:pink[0]] +let s:V3 = [s:pink[1] , s:innerbg[1], s:pink[0], s:innerbg[0]] + +" Replace mode +let s:R1 = [s:darkgray[1], s:blue[1], s:outerfg[0], s:blue[0]] +let s:R3 = [s:blue[1], s:innerbg[1], s:blue[0], s:innerbg[0]] + +" Inactive pane +let s:IA = [s:darkgray[1], s:outerbg[1], s:innerbg[0], s:innerbg[0]] +let s:IAc = [s:gray[1], s:outerbg[1], s:outerbg[0], s:outerbg[0]] + +let g:airline#themes#transparent#palette = {} +let g:airline#themes#transparent#palette.accents = { + \ 'red': ['#d70000', '', 160, '', '']} + +let g:airline#themes#transparent#palette.inactive = { + \ 'airline_a': s:IA, + \ 'airline_b': s:IA, + \ 'airline_c': s:IAc, + \ 'airline_x': s:IA, + \ 'airline_y': s:IA, + \ 'airline_z': s:IA} + +let g:airline#themes#transparent#palette.inactive_modified = { + \ 'airline_a': s:IA, + \ 'airline_b': s:IA, + \ 'airline_c': s:NM3, + \ 'airline_x': s:IA, + \ 'airline_y': s:IA, + \ 'airline_z': s:IA} + +let g:airline#themes#transparent#palette.normal = { + \ 'airline_a': s:N1, + \ 'airline_b': s:N3, + \ 'airline_c': s:N3, + \ 'airline_x': s:N3, + \ 'airline_y': s:N3, + \ 'airline_z': s:N3} + +let g:airline#themes#transparent#palette.normal_modified = { + \ 'airline_a': s:NM1, + \ 'airline_b': s:N3, + \ 'airline_c': s:N3, + \ 'airline_x': s:N3, + \ 'airline_y': s:N3, + \ 'airline_z': s:NM3} + +let g:airline#themes#transparent#palette.insert = { + \ 'airline_a': s:I1, + \ 'airline_b': s:N3, + \ 'airline_c': s:N3, + \ 'airline_x': s:N3, + \ 'airline_y': s:N3, + \ 'airline_z': s:I3} +let g:airline#themes#transparent#palette.insert_modified = {} + +let g:airline#themes#transparent#palette.replace = { + \ 'airline_a': s:R1, + \ 'airline_b': s:N3, + \ 'airline_c': s:N3, + \ 'airline_x': s:N3, + \ 'airline_y': s:N3, + \ 'airline_z': s:R3} +let g:airline#themes#transparent#palette.replace_modified = {} + +let g:airline#themes#transparent#palette.visual = { + \ 'airline_a': s:V1, + \ 'airline_b': s:N3, + \ 'airline_c': s:N3, + \ 'airline_x': s:N3, + \ 'airline_y': s:N3, + \ 'airline_z': s:V3} +let g:airline#themes#transparent#palette.visual_modified = {} + + +" Warnings +let g:airline#themes#transparent#palette.normal.airline_warning = s:NM1 + +let g:airline#themes#transparent#palette.normal_modified.airline_warning = + \ g:airline#themes#transparent#palette.normal.airline_warning + +let g:airline#themes#transparent#palette.insert.airline_warning = + \ g:airline#themes#transparent#palette.normal.airline_warning + +let g:airline#themes#transparent#palette.insert_modified.airline_warning = + \ g:airline#themes#transparent#palette.normal.airline_warning + +let g:airline#themes#transparent#palette.visual.airline_warning = + \ g:airline#themes#transparent#palette.normal.airline_warning + +let g:airline#themes#transparent#palette.visual_modified.airline_warning = + \ g:airline#themes#transparent#palette.normal.airline_warning + +let g:airline#themes#transparent#palette.replace.airline_warning = + \ g:airline#themes#transparent#palette.normal.airline_warning + +let g:airline#themes#transparent#palette.replace_modified.airline_warning = + \ g:airline#themes#transparent#palette.normal.airline_warning + + +" Errors +let g:airline#themes#transparent#palette.normal.airline_error = s:V1 + +let g:airline#themes#transparent#palette.normal_modified.airline_error = + \ g:airline#themes#transparent#palette.normal.airline_error + +let g:airline#themes#transparent#palette.insert.airline_error = + \ g:airline#themes#transparent#palette.normal.airline_error + +let g:airline#themes#transparent#palette.insert_modified.airline_error = + \ g:airline#themes#transparent#palette.normal.airline_error + +let g:airline#themes#transparent#palette.insert_modified.airline_error = + \ g:airline#themes#transparent#palette.normal.airline_error + +let g:airline#themes#transparent#palette.visual.airline_error = + \ g:airline#themes#transparent#palette.normal.airline_error + +let g:airline#themes#transparent#palette.visual_modified.airline_error = + \ g:airline#themes#transparent#palette.normal.airline_error + +let g:airline#themes#transparent#palette.replace.airline_error = + \ g:airline#themes#transparent#palette.normal.airline_error + +let g:airline#themes#transparent#palette.replace_modified.airline_error = + \ g:airline#themes#transparent#palette.normal.airline_error From 433d7abcad6f83eac16b482aee2493c64c58d2d4 Mon Sep 17 00:00:00 2001 From: peach lasagna <59787538+peach-lasagna@users.noreply.github.com> Date: Wed, 2 Dec 2020 00:25:38 +0700 Subject: [PATCH 2/2] Update airline-themes.txt --- doc/airline-themes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/airline-themes.txt b/doc/airline-themes.txt index 02451ed..0786bc3 100644 --- a/doc/airline-themes.txt +++ b/doc/airline-themes.txt @@ -140,6 +140,7 @@ Currently this repository contains the following themes: * wombat * xtermlight * zenburn + * transparent ============================================================================== NAME *airline-themes-configuration*