Skip to content

Commit

Permalink
new default color scheme for ansi terminals (8 colors)
Browse files Browse the repository at this point in the history
  • Loading branch information
skywind3000 committed Dec 8, 2021
1 parent 084fe4c commit 9aaf8db
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
19 changes: 19 additions & 0 deletions colors/quickui/default.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

hi! QuickDefaultBackground ctermfg=0 ctermbg=7 guifg=black guibg=#c0c0c0
hi! QuickDefaultSel cterm=bold ctermfg=0 ctermbg=2 gui=bold guibg=brown guifg=#c0c0c0
hi! QuickDefaultKey term=bold ctermfg=1 gui=bold guifg=#f92772
hi! QuickDefaultDisable ctermfg=6 guifg=#75715e
hi! QuickDefaultHelp ctermfg=6 guifg=#959173
hi! QuickDefaultBorder ctermfg=0 ctermbg=7 guifg=black guibg=#c0c0c0
hi! QuickDefaultTermBorder ctermfg=0 ctermbg=7 guifg=black guibg=#c0c0c0

if &background == 'dark'
hi! QuickDefaultPreview ctermbg=7 guibg=#4c4846
else
hi! QuickDefaultPreview ctermbg=4 guibg=#dddddd
endif

hi! QuickDefaultInput ctermfg=7 ctermbg=4 guifg=#e4e4e4 guibg=#0000a0
hi! QuickDefaultCursor ctermfg=4 ctermbg=7 guifg=#0000a0 guibg=#e4e4e4
hi! QuickDefaultVisual ctermfg=4 ctermbg=6 guifg=#0000a0 guibg=#f4f4f4

14 changes: 9 additions & 5 deletions plugin/quickui.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
" quickui.vim -
"
" Created by skywind on 2019/12/26
" Last Modified: 2019/12/26 18:20:52
" Last Modified: 2021/12/08 23:01
"
"======================================================================

Expand Down Expand Up @@ -47,10 +47,12 @@ function! s:set_quickui_hi()
endfunc

function! QuickThemeChange(theme)
let theme = 'borland'
if a:theme == 'default'
let theme = 'borland'
elseif a:theme == '' || a:theme == 'borland' || a:theme == 'turboc'
let theme = 'default'
if a:theme == ''
let theme = 'default'
elseif a:theme == 'default' || a:theme == 'ansi'
let theme = 'default'
elseif a:theme == 'borland' || a:theme == 'turboc'
let theme = 'borland'
elseif a:theme == 'colorscheme' || a:theme == 'system' || a:theme == 'vim'
let theme = 'system'
Expand Down Expand Up @@ -86,3 +88,5 @@ augroup quickui "{{{
augroup END "}}}

call s:set_quickui_hi()


0 comments on commit 9aaf8db

Please sign in to comment.