fix colortheme is null when in installation process
This commit is contained in:
+4
-8
@@ -198,11 +198,11 @@
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" what to use for dark theme
|
" what to use for dark theme
|
||||||
let g:dark_theme = ''
|
let g:dark_theme = 'default'
|
||||||
let g:airline_dark_theme = "deus"
|
let g:airline_dark_theme = "deus"
|
||||||
|
|
||||||
" what to use for light theme
|
" what to use for light theme
|
||||||
let g:light_theme = ''
|
let g:light_theme = 'default'
|
||||||
let g:airline_light_theme = "silver"
|
let g:airline_light_theme = "silver"
|
||||||
|
|
||||||
" transparent backgroud for supported terminal emulator
|
" transparent backgroud for supported terminal emulator
|
||||||
@@ -219,17 +219,13 @@
|
|||||||
|
|
||||||
function! SetDarkTheme()
|
function! SetDarkTheme()
|
||||||
set background=dark
|
set background=dark
|
||||||
if g:dark_theme != ""
|
execute("colorscheme " . g:dark_theme)
|
||||||
execute("colorscheme " . g:dark_theme)
|
|
||||||
endif
|
|
||||||
let g:theme_color = 'dark'
|
let g:theme_color = 'dark'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! SetLightTheme()
|
function! SetLightTheme()
|
||||||
set background=light
|
set background=light
|
||||||
if g:light_theme != ""
|
execute("colorscheme " . g:light_theme)
|
||||||
execute("colorscheme " . g:light_theme)
|
|
||||||
endif
|
|
||||||
let g:theme_color = 'light'
|
let g:theme_color = 'light'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user