aboutsummaryrefslogtreecommitdiff
path: root/ui.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-10-22 00:09:51 +0800
committerjdhao <jdhao@hotmail.com>2020-10-22 00:09:51 +0800
commitb54988e61abe5ab1c011049c8610392c258f4205 (patch)
tree680334dec89f75d73f11f5700067011f73cfa98d /ui.vim
parent2b9a3992d8c0dfa1ef1fb419bc4f57bf281f51ad (diff)
update colorscheme
Diffstat (limited to 'ui.vim')
-rw-r--r--ui.vim27
1 files changed, 8 insertions, 19 deletions
diff --git a/ui.vim b/ui.vim
index 6db458e..aca4cce 100644
--- a/ui.vim
+++ b/ui.vim
@@ -12,13 +12,7 @@ set background=dark
"}}
"{{ Colorscheme settings
-let s:candidate_theme = ['gruvbox8', 'srcery', 'badwolf', 'deus', 'happy_hacking', 'solarized8',
- \ 'monokai_tasty', 'vim_one', 'material', 'onedark']
-let s:idx = utils#RandInt(0, len(s:candidate_theme)-1)
-let s:theme = s:candidate_theme[s:idx]
-
let s:my_theme_dict = {}
-
function! s:my_theme_dict.srcery() dict abort
colorscheme srcery
endfunction
@@ -43,15 +37,6 @@ function! s:my_theme_dict.srcery() dict abort
colorscheme srcery
endfunction
-function! s:my_theme_dict.badwolf() dict abort
- if !utils#HasColorscheme('badwolf') | return | endif
-
- let g:badwolf_darkgutter = 0
- " Make the tab line lighter than the background.
- let g:badwolf_tabline = 2
- colorscheme badwolf
-endfunction
-
function! s:my_theme_dict.deus() dict abort
if !utils#HasColorscheme('deus') | return | endif
@@ -72,10 +57,9 @@ function! s:my_theme_dict.solarized8() dict abort
colorscheme solarized8_high
endfunction
-function! s:my_theme_dict.monokai_tasty() dict abort
- if !utils#HasColorscheme('vim-monokai-tasty') | return | endif
- let g:vim_monokai_tasty_italic = 1
- colorscheme vim-monokai-tasty
+function! s:my_theme_dict.monokai() dict abort
+ if !utils#HasColorscheme('monokai') | return | endif
+ colorscheme monokai
endfunction
function! s:my_theme_dict.vim_one() dict abort
@@ -107,6 +91,11 @@ function! s:my_theme_dict.neodark() dict abort
colorscheme neodark
endfunction
+let s:candidate_theme = ['gruvbox8', 'srcery', 'deus', 'happy_hacking', 'solarized8',
+ \ 'monokai', 'vim_one', 'material', 'onedark']
+let s:idx = utils#RandInt(0, len(s:candidate_theme)-1)
+let s:theme = s:candidate_theme[s:idx]
+
let s:colorscheme_func = printf('s:my_theme_dict.%s()', s:theme)
if has_key(s:my_theme_dict, s:theme)
execute 'call ' . s:colorscheme_func