From 531bcc9e5a4cb1b1fb4dec8face230bf3d205ac7 Mon Sep 17 00:00:00 2001 From: novenary Date: Tue, 18 May 2021 08:48:56 +0200 Subject: [PATCH] New themes selenized and selenized_bw closes #257 --- autoload/airline/themes/selenized.vim | 136 +++++++++++++++++++++++ autoload/airline/themes/selenized_bw.vim | 136 +++++++++++++++++++++++ doc/airline-themes.txt | 2 + 3 files changed, 274 insertions(+) create mode 100644 autoload/airline/themes/selenized.vim create mode 100644 autoload/airline/themes/selenized_bw.vim diff --git a/autoload/airline/themes/selenized.vim b/autoload/airline/themes/selenized.vim new file mode 100644 index 0000000..6a60ad4 --- /dev/null +++ b/autoload/airline/themes/selenized.vim @@ -0,0 +1,136 @@ +" MIT License. Copyright (c) 2021 novenary +" vim: et ts=2 sts=2 sw=2 tw=80 + +scriptencoding utf-8 + +let s:term_bg_0 = 'NONE' +let s:term_bg_1 = 0 +let s:term_bg_2 = 8 +let s:term_dim_0 = 7 +let s:term_fg_0 = 'NONE' +let s:term_fg_1 = 15 + +let s:term_red = 1 +let s:term_green = 2 +let s:term_yellow = 3 +let s:term_blue = 4 +let s:term_magenta = 5 +let s:term_cyan = 6 +let s:term_orange = s:term_yellow +let s:term_violet = s:term_magenta + +let s:term_br_red = 9 +let s:term_br_green = 10 +let s:term_br_yellow = 11 +let s:term_br_blue = 12 +let s:term_br_magenta = 13 +let s:term_br_cyan = 14 +let s:term_br_orange = s:term_br_yellow +let s:term_br_violet = s:term_br_magenta + +if &background ==# 'dark' + let s:bg_0 = '#112e38' + let s:bg_1 = '#163945' + let s:bg_2 = '#254a57' + let s:dim_0 = '#61777c' + let s:fg_0 = '#9faeae' + let s:fg_1 = '#bfd0d0' + + let s:red = '#f13c3e' + let s:green = '#69ad21' + let s:yellow = '#d1a416' + let s:blue = '#3a82f8' + let s:magenta = '#e75bb3' + let s:cyan = '#42bdaa' + let s:orange = '#e26f35' + let s:violet = '#9b72e9' + + let s:br_red = '#ff4b49' + let s:br_green = '#78be2e' + let s:br_yellow = '#e4b424' + let s:br_blue = '#4a91ff' + let s:br_magenta = '#fb69c4' + let s:br_cyan = '#50cfba' + let s:br_orange = '#f67e41' + let s:br_violet = '#ab80fc' +else + let s:bg_0 = '#faf0d2' + let s:bg_1 = '#e7ddc0' + let s:bg_2 = '#cbc2a6' + let s:dim_0 = '#7e8783' + let s:fg_0 = '#43545a' + let s:fg_1 = '#2d3c42' + + let s:red = '#c00221' + let s:green = '#3f8100' + let s:yellow = '#9b7600' + let s:blue = '#005dcc' + let s:magenta = '#b73088' + let s:cyan = '#038d7c' + let s:orange = '#b04713' + let s:violet = '#714cbc' + + let s:br_red = '#b9001e' + let s:br_green = '#3a7b00' + let s:br_yellow = '#957000' + let s:br_blue = '#0059c6' + let s:br_magenta = '#b12b82' + let s:br_cyan = '#008777' + let s:br_orange = '#a9430f' + let s:br_violet = '#6b47b6' +endif + +let g:airline#themes#selenized#palette = {} + +let s:NA = [ s:bg_1, s:green, s:term_bg_1, s:term_green ] +let s:NB = [ s:fg_0, s:bg_2, s:term_fg_0, s:term_bg_2 ] +let s:NC = [ s:dim_0, s:bg_1, s:term_dim_0, s:term_bg_1 ] +let s:NC_modified = [ s:yellow, s:NC[1], s:term_yellow, s:NC[3] ] +let g:airline#themes#selenized#palette.normal = airline#themes#generate_color_map(s:NA, s:NB, s:NC) +let g:airline#themes#selenized#palette.normal_modified = { + \ 'airline_c': s:NC_modified, + \ } + +let s:IA = [ s:bg_1, s:blue, s:term_bg_1, s:term_blue ] +let g:airline#themes#selenized#palette.insert = airline#themes#generate_color_map(s:IA, s:NB, s:NC) +let g:airline#themes#selenized#palette.terminal = airline#themes#generate_color_map(s:IA, s:NB, s:NC) +let g:airline#themes#selenized#palette.insert_modified = copy(g:airline#themes#selenized#palette.normal_modified) + +let s:RA = [ s:bg_1, s:red, s:term_bg_1, s:term_red ] +let g:airline#themes#selenized#palette.replace = airline#themes#generate_color_map(s:RA, s:NB, s:NC) +let g:airline#themes#selenized#palette.replace_modified = copy(g:airline#themes#selenized#palette.normal_modified) + +let s:VA = [ s:bg_1, s:violet, s:term_bg_1, s:term_violet ] +let g:airline#themes#selenized#palette.visual = airline#themes#generate_color_map(s:VA, s:NB, s:NC) +let g:airline#themes#selenized#palette.visual_modified = copy(g:airline#themes#selenized#palette.normal_modified) + +let s:INACTIVE = [ s:dim_0, s:bg_2, s:term_dim_0, s:term_bg_2 ] +let s:INACTIVE_modified = [ s:yellow, s:INACTIVE[1], s:term_yellow, s:INACTIVE[3] ] +let g:airline#themes#selenized#palette.inactive = airline#themes#generate_color_map(s:INACTIVE, s:INACTIVE, s:INACTIVE) +let g:airline#themes#selenized#palette.inactive_modified = { + \ 'airline_c': s:INACTIVE_modified, + \ } + +let s:WARNING = [ s:bg_1, s:br_yellow, s:term_bg_1, s:term_br_yellow ] +let g:airline#themes#selenized#palette.normal.airline_warning = s:WARNING +let g:airline#themes#selenized#palette.normal_modified.airline_warning = s:WARNING +let g:airline#themes#selenized#palette.insert.airline_warning = s:WARNING +let g:airline#themes#selenized#palette.insert_modified.airline_warning = s:WARNING +let g:airline#themes#selenized#palette.replace.airline_warning = s:WARNING +let g:airline#themes#selenized#palette.replace_modified.airline_warning = s:WARNING +let g:airline#themes#selenized#palette.visual.airline_warning = s:WARNING +let g:airline#themes#selenized#palette.visual_modified.airline_warning = s:WARNING + +let s:ERROR = [ s:bg_1, s:br_red, s:term_bg_1, s:term_br_red ] +let g:airline#themes#selenized#palette.normal.airline_error = s:ERROR +let g:airline#themes#selenized#palette.normal_modified.airline_error = s:ERROR +let g:airline#themes#selenized#palette.insert.airline_error = s:ERROR +let g:airline#themes#selenized#palette.insert_modified.airline_error = s:ERROR +let g:airline#themes#selenized#palette.replace.airline_error = s:ERROR +let g:airline#themes#selenized#palette.replace_modified.airline_error = s:ERROR +let g:airline#themes#selenized#palette.visual.airline_error = s:ERROR +let g:airline#themes#selenized#palette.visual_modified.airline_error = s:ERROR + +let g:airline#themes#selenized#palette.accents = { + \ 'red': [ s:red, '', s:term_red, '' ] + \ } diff --git a/autoload/airline/themes/selenized_bw.vim b/autoload/airline/themes/selenized_bw.vim new file mode 100644 index 0000000..b34f3af --- /dev/null +++ b/autoload/airline/themes/selenized_bw.vim @@ -0,0 +1,136 @@ +" MIT License. Copyright (c) 2021 novenary +" vim: et ts=2 sts=2 sw=2 tw=80 + +scriptencoding utf-8 + +let s:term_bg_0 = 'NONE' +let s:term_bg_1 = 0 +let s:term_bg_2 = 8 +let s:term_dim_0 = 7 +let s:term_fg_0 = 'NONE' +let s:term_fg_1 = 15 + +let s:term_red = 1 +let s:term_green = 2 +let s:term_yellow = 3 +let s:term_blue = 4 +let s:term_magenta = 5 +let s:term_cyan = 6 +let s:term_orange = s:term_yellow +let s:term_violet = s:term_magenta + +let s:term_br_red = 9 +let s:term_br_green = 10 +let s:term_br_yellow = 11 +let s:term_br_blue = 12 +let s:term_br_magenta = 13 +let s:term_br_cyan = 14 +let s:term_br_orange = s:term_br_yellow +let s:term_br_violet = s:term_br_magenta + +if &background ==# 'dark' + let s:bg_0 = '#181818' + let s:bg_1 = '#252525' + let s:bg_2 = '#3b3b3b' + let s:dim_0 = '#777777' + let s:fg_0 = '#b9b9b9' + let s:fg_1 = '#dedede' + + let s:red = '#ed4a46' + let s:green = '#70b433' + let s:yellow = '#dbb32d' + let s:blue = '#368aeb' + let s:magenta = '#eb6eb7' + let s:cyan = '#3fc5b7' + let s:orange = '#e67f43' + let s:violet = '#a580e2' + + let s:br_red = '#ff5e56' + let s:br_green = '#83c746' + let s:br_yellow = '#efc541' + let s:br_blue = '#4f9cfe' + let s:br_magenta = '#ff81ca' + let s:br_cyan = '#56d8c9' + let s:br_orange = '#fa9153' + let s:br_violet = '#b891f5' +else + let s:bg_0 = '#ffffff' + let s:bg_1 = '#ebebeb' + let s:bg_2 = '#cdcdcd' + let s:dim_0 = '#878787' + let s:fg_0 = '#474747' + let s:fg_1 = '#282828' + + let s:red = '#d6000c' + let s:green = '#1d9700' + let s:yellow = '#c49700' + let s:blue = '#0064e4' + let s:magenta = '#dd0f9d' + let s:cyan = '#00ad9c' + let s:orange = '#d04a00' + let s:violet = '#7f51d6' + + let s:br_red = '#bf0000' + let s:br_green = '#008400' + let s:br_yellow = '#af8500' + let s:br_blue = '#0054cf' + let s:br_magenta = '#c7008b' + let s:br_cyan = '#009a8a' + let s:br_orange = '#ba3700' + let s:br_violet = '#6b40c3' +endif + +let g:airline#themes#selenized_bw#palette = {} + +let s:NA = [ s:bg_1, s:green, s:term_bg_1, s:term_green ] +let s:NB = [ s:fg_0, s:bg_2, s:term_fg_0, s:term_bg_2 ] +let s:NC = [ s:dim_0, s:bg_1, s:term_dim_0, s:term_bg_1 ] +let s:NC_modified = [ s:yellow, s:NC[1], s:term_yellow, s:NC[3] ] +let g:airline#themes#selenized_bw#palette.normal = airline#themes#generate_color_map(s:NA, s:NB, s:NC) +let g:airline#themes#selenized_bw#palette.normal_modified = { + \ 'airline_c': s:NC_modified, + \ } + +let s:IA = [ s:bg_1, s:blue, s:term_bg_1, s:term_blue ] +let g:airline#themes#selenized_bw#palette.insert = airline#themes#generate_color_map(s:IA, s:NB, s:NC) +let g:airline#themes#selenized_bw#palette.terminal = airline#themes#generate_color_map(s:IA, s:NB, s:NC) +let g:airline#themes#selenized_bw#palette.insert_modified = copy(g:airline#themes#selenized_bw#palette.normal_modified) + +let s:RA = [ s:bg_1, s:red, s:term_bg_1, s:term_red ] +let g:airline#themes#selenized_bw#palette.replace = airline#themes#generate_color_map(s:RA, s:NB, s:NC) +let g:airline#themes#selenized_bw#palette.replace_modified = copy(g:airline#themes#selenized_bw#palette.normal_modified) + +let s:VA = [ s:bg_1, s:violet, s:term_bg_1, s:term_violet ] +let g:airline#themes#selenized_bw#palette.visual = airline#themes#generate_color_map(s:VA, s:NB, s:NC) +let g:airline#themes#selenized_bw#palette.visual_modified = copy(g:airline#themes#selenized_bw#palette.normal_modified) + +let s:INACTIVE = [ s:dim_0, s:bg_2, s:term_dim_0, s:term_bg_2 ] +let s:INACTIVE_modified = [ s:yellow, s:INACTIVE[1], s:term_yellow, s:INACTIVE[3] ] +let g:airline#themes#selenized_bw#palette.inactive = airline#themes#generate_color_map(s:INACTIVE, s:INACTIVE, s:INACTIVE) +let g:airline#themes#selenized_bw#palette.inactive_modified = { + \ 'airline_c': s:INACTIVE_modified, + \ } + +let s:WARNING = [ s:bg_1, s:br_yellow, s:term_bg_1, s:term_br_yellow ] +let g:airline#themes#selenized_bw#palette.normal.airline_warning = s:WARNING +let g:airline#themes#selenized_bw#palette.normal_modified.airline_warning = s:WARNING +let g:airline#themes#selenized_bw#palette.insert.airline_warning = s:WARNING +let g:airline#themes#selenized_bw#palette.insert_modified.airline_warning = s:WARNING +let g:airline#themes#selenized_bw#palette.replace.airline_warning = s:WARNING +let g:airline#themes#selenized_bw#palette.replace_modified.airline_warning = s:WARNING +let g:airline#themes#selenized_bw#palette.visual.airline_warning = s:WARNING +let g:airline#themes#selenized_bw#palette.visual_modified.airline_warning = s:WARNING + +let s:ERROR = [ s:bg_1, s:br_red, s:term_bg_1, s:term_br_red ] +let g:airline#themes#selenized_bw#palette.normal.airline_error = s:ERROR +let g:airline#themes#selenized_bw#palette.normal_modified.airline_error = s:ERROR +let g:airline#themes#selenized_bw#palette.insert.airline_error = s:ERROR +let g:airline#themes#selenized_bw#palette.insert_modified.airline_error = s:ERROR +let g:airline#themes#selenized_bw#palette.replace.airline_error = s:ERROR +let g:airline#themes#selenized_bw#palette.replace_modified.airline_error = s:ERROR +let g:airline#themes#selenized_bw#palette.visual.airline_error = s:ERROR +let g:airline#themes#selenized_bw#palette.visual_modified.airline_error = s:ERROR + +let g:airline#themes#selenized_bw#palette.accents = { + \ 'red': [ s:red, '', s:term_red, '' ] + \ } diff --git a/doc/airline-themes.txt b/doc/airline-themes.txt index 9127797..4eaf04a 100644 --- a/doc/airline-themes.txt +++ b/doc/airline-themes.txt @@ -237,6 +237,8 @@ Currently this repository contains the following themes: * raven * ravenpower * seagull + * selenized + * selenized_bw * seoul256 * serene * sierra