Removed all 'background' handling

This commit is contained in:
Romain Lafourcade 2019-12-08 19:05:05 +01:00
parent f0591f30de
commit d41eed0ed8
1 changed files with 0 additions and 12 deletions

View File

@ -39,13 +39,11 @@
# #
# Make sure the name of your colorscheme is unique and attractive. # Make sure the name of your colorscheme is unique and attractive.
# The description should fit in a single line with no linefeed. # The description should fit in a single line with no linefeed.
# 'background' can be "light" or "dark".
information = { information = {
author: "foo", author: "foo",
email: "foo@foo.foo", email: "foo@foo.foo",
name: "rnb", name: "rnb",
description: "Lorem ipsum dolor sit amet.", description: "Lorem ipsum dolor sit amet.",
background: "light",
webpage: "http://www.example.com" webpage: "http://www.example.com"
} }
@ -331,11 +329,6 @@ if ($TERM =~ '256' || &t_Co >= 256) || has("gui_running")
<% for highlight in highlights -%> <% for highlight in highlights -%>
<% if highlight.length == 4 -%> <% if highlight.length == 4 -%>
hi <%= highlight[0] %> ctermbg=<%= highlight[1].kind_of?(String) ? highlight[1] : highlight[1][1] %> ctermfg=<%= highlight[2].kind_of?(String) ? highlight[2] : highlight[2][1] %> cterm=<%= highlight[3] %> guibg=<%= highlight[1].kind_of?(String) ? highlight[1] : highlight[1][0] %> guifg=<%= highlight[2].kind_of?(String) ? highlight[2] : highlight[2][0] %> gui=<%= highlight[3] %> hi <%= highlight[0] %> ctermbg=<%= highlight[1].kind_of?(String) ? highlight[1] : highlight[1][1] %> ctermfg=<%= highlight[2].kind_of?(String) ? highlight[2] : highlight[2][1] %> cterm=<%= highlight[3] %> guibg=<%= highlight[1].kind_of?(String) ? highlight[1] : highlight[1][0] %> guifg=<%= highlight[2].kind_of?(String) ? highlight[2] : highlight[2][0] %> gui=<%= highlight[3] %>
<% if highlight[0] == "Normal" -%>
<%= '' %>
set background=<%= information[:background] %>
<%= '' %>
<% end -%>
<% elsif highlight.length > 4 -%> <% elsif highlight.length > 4 -%>
hi <%= highlight[0] %> ctermbg=<%= highlight[1].kind_of?(String) ? highlight[1] : highlight[1][1] %> ctermfg=<%= highlight[2].kind_of?(String) ? highlight[2] : highlight[2][1] %> cterm=<%= highlight[3] %> guibg=<%= highlight[1].kind_of?(String) ? highlight[1] : highlight[1][0] %> guifg=<%= highlight[2].kind_of?(String) ? highlight[2] : highlight[2][0] %> gui=<%= highlight[3] %> guisp=<%= highlight[4].kind_of?(String) ? highlight[4] : highlight[4][0] %> hi <%= highlight[0] %> ctermbg=<%= highlight[1].kind_of?(String) ? highlight[1] : highlight[1][1] %> ctermfg=<%= highlight[2].kind_of?(String) ? highlight[2] : highlight[2][1] %> cterm=<%= highlight[3] %> guibg=<%= highlight[1].kind_of?(String) ? highlight[1] : highlight[1][0] %> guifg=<%= highlight[2].kind_of?(String) ? highlight[2] : highlight[2][0] %> gui=<%= highlight[3] %> guisp=<%= highlight[4].kind_of?(String) ? highlight[4] : highlight[4][0] %>
<% end -%> <% end -%>
@ -347,11 +340,6 @@ elseif &t_Co == 8 || $TERM !~# '^linux' || &t_Co == 16
<% for highlight in highlights -%> <% for highlight in highlights -%>
<% if highlight.length > 2 -%> <% if highlight.length > 2 -%>
hi <%= highlight[0] %> ctermbg=<%= highlight[1].kind_of?(String) ? highlight[1] : highlight[1][2] %> ctermfg=<%= highlight[2].kind_of?(String) ? highlight[2] : highlight[2][2] %> cterm=<%= highlight[3] %> hi <%= highlight[0] %> ctermbg=<%= highlight[1].kind_of?(String) ? highlight[1] : highlight[1][2] %> ctermfg=<%= highlight[2].kind_of?(String) ? highlight[2] : highlight[2][2] %> cterm=<%= highlight[3] %>
<% if highlight[0] == "Normal" -%>
<%= '' %>
set background=<%= information[:background] %>
<%= '' %>
<% end -%>
<% end -%> <% end -%>
<% end -%> <% end -%>
endif endif