Compare commits

..

2 commits

5 changed files with 19 additions and 17 deletions

@ -1 +1 @@
Subproject commit 09bad640e4507885fa0e7035348c7854c531b3d6
Subproject commit 9e66d5c72dabfc6417c6015ed8991f3c4b504f7d

@ -1 +1 @@
Subproject commit 48128953949b51235ccada535f021a505fdaf3df
Subproject commit 33a17515b79ddb10d750320fa994098bdc3e93ef

@ -1 +1 @@
Subproject commit 1d80fe5809205d8d0144a5e3e383e06b9514621f
Subproject commit 30010a6b38cdba49df9e1a94b95700675d493e41

View file

@ -19,30 +19,32 @@ endif
"declare the name of our theme
let colors_name = "darkcloud"
"sets the highlighting for the given group | format: s:C("Name","Foreground","Background","Style")
fun! s:C(group, fg, bg, attr)
"declare the term type
if has("gui_running") || &termguicolors
let l:term = "gui"
let g:term_colors_type = "gui"
else
let l:term = "cterm"
set notermguicolors "required to use cterm colors
let g:term_colors_type = "cterm"
endif
"sets the highlighting for the given group | format: s:C("Name","Foreground","Background","Style")
fun! s:C(group, fg, bg, attr)
if a:fg != ""
exec "hi " . a:group . " " . l:term . "fg=" . a:fg
exec "hi " . a:group . " " . g:term_colors_type . "fg=" . a:fg
else
exec "hi " . a:group . " " . l:term . "fg=NONE"
exec "hi " . a:group . " " . g:term_colors_type . "fg=NONE"
endif
if a:bg != ""
exec "hi " . a:group . " " . l:term . "bg=" . a:bg
exec "hi " . a:group . " " . g:term_colors_type . "bg=" . a:bg
else
exec "hi " . a:group . " " . l:term . "bg=NONE"
exec "hi " . a:group . " " . g:term_colors_type . "bg=NONE"
endif
if a:attr != ""
exec "hi " . a:group . " " . l:term . "=" . a:attr
exec "hi " . a:group . " " . g:term_colors_type . "=" . a:attr
else
exec "hi " . a:group . " " . l:term . "=NONE"
exec "hi " . a:group . " " . g:term_colors_type . "=NONE"
endif
endfun

View file

@ -1,4 +1,4 @@
if has("gui_running") || &termguicolors
if has("gui_running") || &term != "linux" && &termguicolors
let g:cBlack = '#000000'
let g:cWhite = '#ffffff'
@ -17,7 +17,7 @@ if has("gui_running") || &termguicolors
let g:cLightBg = '#303030'
let g:cDarkBg = '#262626'
elseif &term != "linux" && &t_Co >= 256
elseif &t_Co >= 256 && &term != "linux"
let g:cBlack = '0' "#000000
let g:cWhite = '15' "#ffffff