Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config option to change folded line bg #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,26 @@ darker than the normal background, or the same.

Default: `0` (off, gutters are the same as the background)

### g:badwolf\_folded

Determines how light to render the background of folded linese.

Can be set to `0`, `1`, `2`, or `3`.

" Make folded lines darker than the background.
let g:badwolf_folded = 0

" Make folded lines the same color as the background.
let g:badwolf_folded = 1

" Make folded lines lighter than the background.
let g:badwolf_folded = 2

" Make folded lines much lighter than the background.
let g:badwolf_folded = 3

Default: `1` (same color as the background)

### g:badwolf\_tabline

Determines how light to render the background of the tab line (the line at the
Expand Down
18 changes: 17 additions & 1 deletion colors/badwolf.vim
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,22 @@ else
let s:gutter = 'blackgravel'
endif

if exists('g:badwolf_folded')
if g:badwolf_folded == 0
let s:folded = 'blackestgravel'
elseif g:badwolf_folded == 1
let s:folded = 'blackgravel'
elseif g:badwolf_folded == 2
let s:folded = 'darkgravel'
elseif g:badwolf_folded == 3
let s:folded = 'deepgravel'
else
let s:folded = 'blackestgravel'
endif
else
let s:folded = 'blackgravel'
endif

if exists('g:badwolf_tabline')
if g:badwolf_tabline == 0
let s:tabline = 'blackestgravel'
Expand All @@ -185,7 +201,7 @@ endif

call s:HL('Normal', 'plain', 'blackgravel')

call s:HL('Folded', 'mediumgravel', 'bg', 'none')
call s:HL('Folded', 'mediumgravel', s:folded, 'none')

call s:HL('VertSplit', 'lightgravel', 'bg', 'none')

Expand Down
18 changes: 17 additions & 1 deletion colors/goodwolf.vim
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,22 @@ else
let s:gutter = 'blackgravel'
endif

if exists('g:badwolf_folded')
if g:badwolf_folded == 0
let s:folded = 'blackestgravel'
elseif g:badwolf_folded == 1
let s:folded = 'blackgravel'
elseif g:badwolf_folded == 2
let s:folded = 'darkgravel'
elseif g:badwolf_folded == 3
let s:folded = 'deepgravel'
else
let s:folded = 'blackestgravel'
endif
else
let s:folded = 'blackgravel'
endif

if exists('g:badwolf_tabline')
if g:badwolf_tabline == 0
let s:tabline = 'blackestgravel'
Expand All @@ -165,7 +181,7 @@ endif
" call GoodWolfHL('Normal', 'plain', 'blackgravel')
call GoodWolfHL('Normal', 'plain', 'blackestgravel')

call GoodWolfHL('Folded', 'mediumgravel', 'bg', 'none')
call GoodWolfHL('Folded', 'mediumgravel', s:folded, 'none')

call GoodWolfHL('VertSplit', 'lightgravel', 'bg', 'none')

Expand Down