Skip to content

Commit

Permalink
Add g:wwdc16_palette variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
lifepillar committed Jun 11, 2017
1 parent f533b7a commit 9f74888
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
20 changes: 19 additions & 1 deletion colors/wwdc16.vim
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,29 @@ if exists('syntax_on')
endif
let colors_name = 'wwdc16'

if !has('gui_running') && get(g:, "wwdc16_term_trans_bg", 0)
if !has('gui_running') && get(g:, 'wwdc16_term_trans_bg', 0)
hi Normal ctermfg=15 ctermbg=NONE cterm=NONE guifg=#ffffff guibg=NONE gui=NONE
else
hi Normal ctermfg=15 ctermbg=0 cterm=NONE guifg=#ffffff guibg=#292c36 gui=NONE
endif
let g:wwdc16_palette = [
\ ['#292c36', '0'],
\ ['#dc3c3c', '1'],
\ ['#64878f', '2'],
\ ['#d28e5d', '3'],
\ ['#4670d8', '4'],
\ ['#b73999', '5'],
\ ['#00aba5', '6'],
\ ['#999999', '7'],
\ ['#333333', '8'],
\ ['#666666', '9'],
\ ['#52bd58', '10'],
\ ['#95c76f', '11'],
\ ['#4670d8', '12'],
\ ['#8485ce', '13'],
\ ['#00aba5', '14'],
\ ['#ffffff', '15'],
\ ]

hi ColorColumn ctermfg=NONE ctermbg=8 cterm=NONE guifg=NONE guibg=#333333 gui=NONE guisp=NONE
hi Conceal ctermfg=2 ctermbg=NONE cterm=NONE guifg=#64878f guibg=NONE gui=NONE guisp=NONE
Expand Down
7 changes: 7 additions & 0 deletions src/wwdc16.vim
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ call s:put("else")
call s:put(" hi Normal ctermfg=".s:fg[1]." ctermbg=".s:bg[1]." cterm=NONE guifg=".s:fg[0]." guibg=".s:bg[0]." gui=NONE")
call s:put("endif")

call s:put("let g:wwdc16_palette = [")
for col in s:palette
call s:put(" \\ ['" . col[0] . "', '" . col[1] . "'],")
endfor
call s:put(" \\ ]")
call s:put("")

call s:hl("ColorColumn", s:none, s:grey1)
call s:hl("Conceal", s:forestgreen, s:none)
call s:hl("Cursor", s:fg, s:blue)
Expand Down

0 comments on commit 9f74888

Please sign in to comment.