-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
ensure Todo highlight on dark bg is at least 233 #71
base: master
Are you sure you want to change the base?
Conversation
atweiden
commented
Jul 18, 2020
•
edited
Loading
edited
- note
- existing s:dark_bg_2 handling is beneficial for hl-VertSplit
- hence
- this variable is kept in tact
- hence
- existing s:dark_bg_2 handling is beneficial for hl-VertSplit
- previously
- with g:seoul256_background set to 233
- todo syntax was rendered with dark background contrast
- as bg colors dropped to #000000
- todo syntax was rendered with dark background contrast
- with g:seoul256_background set to 233
- now
- use the equivalent to light bg handling for dark bg todos
- for equivalently balanced visual effect
- see: s:light_bg_2
- use the equivalent to light bg handling for dark bg todos
Reason for PR: " s:light_bg_2 becomes background colour for |hl-Todo| when colorscheme
" is seoul256-light
"
" n.b. it cannot exceed 256, hence with |g:seoul256_light_background|
" set to 256, |hl-Todo| background colour matches seoul256-light
" background colour, thereby enabling opting out of background colour
" contrast
let s:light_bg_2 = min([s:light_bg + 2, 256])
" s:dark_bg_2 becomes background colour for |hl-Todo| when colorscheme
" is seoul256
"
" n.b. if |g:seoul256_background| is set to 233, |hl-Todo| background
" colour drops to 16 — this is noticeably higher contrast than in the
" seoul256-light corollary, where users can completely opt out of contrast
let s:dark_bg_2 = s:dark_bg > 233 ? s:dark_bg - 2 : 16 This PR should only affect users who set I agree it’s better said to be a minor nitpick. |
So the difference is only noticeable to the users who switch between light and dark modes, using What I didn't understand at first was your initial expression
|
Yes. Alas, I use seoul256-light for gvim and seoul256 for vim.
Support for 16 would be a welcome addition. 233 is perfectly fine, but either way. |
- note - existing s:dark_bg_2 handling is beneficial for hl-VertSplit - hence - this variable is kept in tact - previously - with g:seoul256_background set to 233 - todo syntax was rendered with dark background contrast - as bg colors dropped to #000000 - now - use the equivalent to light bg handling for dark bg todos - for equivalently balanced visual effect - see: s:light_bg_2