From ad7d5b5d8c33720ce3727228bcb2626957235d53 Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 14 Sep 2022 19:43:23 +0200 Subject: refactor: remove the light and mirage variants --- colors/ayu.vim | 105 ++++++++++++++++++++++++++++----------------------------- 1 file changed, 52 insertions(+), 53 deletions(-) (limited to 'colors') diff --git a/colors/ayu.vim b/colors/ayu.vim index 6029c1a..40492c8 100644 --- a/colors/ayu.vim +++ b/colors/ayu.vim @@ -5,7 +5,6 @@ if exists("syntax_on") syntax reset endif -let s:style = get(g:, 'ayucolor', 'dark') let g:colors_name = "ayu" "}}} @@ -14,29 +13,29 @@ let g:colors_name = "ayu" let s:palette = {} -let s:palette.bg = {'dark': "#0F1419", 'light': "#FAFAFA", 'mirage': "#212733"} - -let s:palette.comment = {'dark': "#7A8999", 'light': "#ABB0B6", 'mirage': "#5C6773"} -let s:palette.markup = {'dark': "#F07178", 'light': "#F07178", 'mirage': "#F07178"} -let s:palette.constant = {'dark': "#FFEE99", 'light': "#A37ACC", 'mirage': "#D4BFFF"} -let s:palette.operator = {'dark': "#E7C547", 'light': "#E7C547", 'mirage': "#80D4FF"} -let s:palette.tag = {'dark': "#36A3D9", 'light': "#36A3D9", 'mirage': "#5CCFE6"} -let s:palette.regexp = {'dark': "#95E6CB", 'light': "#4CBF99", 'mirage': "#95E6CB"} -let s:palette.string = {'dark': "#B8CC52", 'light': "#86B300", 'mirage': "#BBE67E"} -let s:palette.function = {'dark': "#FFB454", 'light': "#F29718", 'mirage': "#FFD57F"} -let s:palette.special = {'dark': "#E6B673", 'light': "#E6B673", 'mirage': "#FFC44C"} -let s:palette.keyword = {'dark': "#FF7733", 'light': "#FF7733", 'mirage': "#FFAE57"} -let s:palette.info = {'dark': "#6C36D8"} -let s:palette.nogo = {'dark': "#670000"} - -let s:palette.error = {'dark': "#FF3333", 'light': "#FF3333", 'mirage': "#FF3333"} -let s:palette.accent = {'dark': "#F29718", 'light': "#FF6A00", 'mirage': "#FFCC66"} -let s:palette.panel = {'dark': "#14191F", 'light': "#FFFFFF", 'mirage': "#272D38"} -let s:palette.guide = {'dark': "#2D3640", 'light': "#D9D8D7", 'mirage': "#3D4751"} -let s:palette.line = {'dark': "#151A1E", 'light': "#F3F3F3", 'mirage': "#242B38"} -let s:palette.selection = {'dark': "#253340", 'light': "#F0EEE4", 'mirage': "#343F4C"} -let s:palette.fg = {'dark': "#E6E1CF", 'light': "#5C6773", 'mirage': "#D9D7CE"} -let s:palette.fg_idle = {'dark': "#3E4B59", 'light': "#828C99", 'mirage': "#607080"} +let s:palette.bg = "#0F1419" + +let s:palette.comment = "#7A8999" +let s:palette.markup = "#F07178" +let s:palette.constant = "#FFEE99" +let s:palette.operator = "#E7C547" +let s:palette.tag = "#36A3D9" +let s:palette.regexp = "#95E6CB" +let s:palette.string = "#B8CC52" +let s:palette.function = "#FFB454" +let s:palette.special = "#E6B673" +let s:palette.keyword = "#FF7733" +let s:palette.info = "#6C36D8" +let s:palette.nogo = "#670000" + +let s:palette.error = "#FF3333" +let s:palette.accent = "#F29718" +let s:palette.panel = "#14191F" +let s:palette.guide = "#2D3640" +let s:palette.line = "#151A1E" +let s:palette.selection = "#253340" +let s:palette.fg = "#E6E1CF" +let s:palette.fg_idle = "#3E4B59" "}}} @@ -45,7 +44,7 @@ let s:palette.fg_idle = {'dark': "#3E4B59", 'light': "#828C99", 'mirage': "# function! s:build_prim(hi_elem, field) let l:vname = "s:" . a:hi_elem . "_" . a:field " s:bg_gray - let l:gui_assign = "gui".a:hi_elem."=".s:palette[a:field][s:style] " guibg=... + let l:gui_assign = "gui".a:hi_elem."=".s:palette[a:field] " guibg=... exe "let " . l:vname . " = ' " . l:gui_assign . "'" endfunction @@ -130,9 +129,9 @@ exe "hi! Visual" .s:fg_none .s:bg_selection .s:fmt_none exe "hi! WarningMsg" .s:fg_error .s:bg_none .s:fmt_none " Tab line -exe "hi! TabLineFill " . "guifg=" . s:palette["panel"][s:style] . " guibg=" . s:palette["fg"][s:style] . " gui=reverse" -exe "hi! TabLine " . "guifg=" . s:palette["panel"][s:style] . " guibg=" . s:palette["fg_idle"][s:style] . " gui=reverse" -exe "hi! TabLineSel " . "guifg=" . s:palette["panel"][s:style] . " guibg=" . s:palette["fg"][s:style] . " gui=reverse" +exe "hi! TabLineFill " . "guifg=" . s:palette["panel"] . " guibg=" . s:palette["fg"] . " gui=reverse" +exe "hi! TabLine " . "guifg=" . s:palette["panel"] . " guibg=" . s:palette["fg_idle"] . " gui=reverse" +exe "hi! TabLineSel " . "guifg=" . s:palette["panel"] . " guibg=" . s:palette["fg"] . " gui=reverse" " TODO LongLineWarning to use variables instead of hardcoding hi LongLineWarning guifg=NONE guibg=#371F1C gui=underline ctermfg=NONE ctermbg=NONE cterm=underline @@ -201,33 +200,33 @@ exe "hi! CursorLineConceal" .s:fg_guide .s:bg_line .s:fmt_none " Terminal " --------- if has("nvim") - let g:terminal_color_0 = s:palette.bg[s:style] - let g:terminal_color_1 = s:palette.markup[s:style] - let g:terminal_color_2 = s:palette.string[s:style] - let g:terminal_color_3 = s:palette.accent[s:style] - let g:terminal_color_4 = s:palette.tag[s:style] - let g:terminal_color_5 = s:palette.constant[s:style] - let g:terminal_color_6 = s:palette.regexp[s:style] + let g:terminal_color_0 = s:palette.bg + let g:terminal_color_1 = s:palette.markup + let g:terminal_color_2 = s:palette.string + let g:terminal_color_3 = s:palette.accent + let g:terminal_color_4 = s:palette.tag + let g:terminal_color_5 = s:palette.constant + let g:terminal_color_6 = s:palette.regexp let g:terminal_color_7 = "#FFFFFF" - let g:terminal_color_8 = s:palette.fg_idle[s:style] - let g:terminal_color_9 = s:palette.error[s:style] - let g:terminal_color_10 = s:palette.string[s:style] - let g:terminal_color_11 = s:palette.accent[s:style] - let g:terminal_color_12 = s:palette.tag[s:style] - let g:terminal_color_13 = s:palette.constant[s:style] - let g:terminal_color_14 = s:palette.regexp[s:style] - let g:terminal_color_15 = s:palette.comment[s:style] + let g:terminal_color_8 = s:palette.fg_idle + let g:terminal_color_9 = s:palette.error + let g:terminal_color_10 = s:palette.string + let g:terminal_color_11 = s:palette.accent + let g:terminal_color_12 = s:palette.tag + let g:terminal_color_13 = s:palette.constant + let g:terminal_color_14 = s:palette.regexp + let g:terminal_color_15 = s:palette.comment let g:terminal_color_background = g:terminal_color_0 - let g:terminal_color_foreground = s:palette.fg[s:style] + let g:terminal_color_foreground = s:palette.fg else - let g:terminal_ansi_colors = [s:palette.bg[s:style], s:palette.markup[s:style]] - let g:terminal_ansi_colors += [s:palette.string[s:style], s:palette.accent[s:style]] - let g:terminal_ansi_colors += [s:palette.tag[s:style], s:palette.constant[s:style]] - let g:terminal_ansi_colors += [s:palette.regexp[s:style], "#FFFFFF"] - let g:terminal_ansi_colors += [s:palette.fg_idle[s:style], s:palette.error[s:style]] - let g:terminal_ansi_colors += [s:palette.string[s:style], s:palette.accent[s:style]] - let g:terminal_ansi_colors += [s:palette.tag[s:style], s:palette.constant[s:style]] - let g:terminal_ansi_colors += [s:palette.regexp[s:style], s:palette.comment[s:style]] + let g:terminal_ansi_colors = [s:palette.bg, s:palette.markup] + let g:terminal_ansi_colors += [s:palette.string, s:palette.accent] + let g:terminal_ansi_colors += [s:palette.tag, s:palette.constant] + let g:terminal_ansi_colors += [s:palette.regexp, "#FFFFFF"] + let g:terminal_ansi_colors += [s:palette.fg_idle, s:palette.error] + let g:terminal_ansi_colors += [s:palette.string, s:palette.accent] + let g:terminal_ansi_colors += [s:palette.tag, s:palette.constant] + let g:terminal_ansi_colors += [s:palette.regexp, s:palette.comment] endif @@ -278,7 +277,7 @@ hi! link diffAdded String " " This is needed for some reason: {{{ -let &background = s:style +let &background = "dark" " }}} -- cgit v1.2.3-18-g5258