Shade.nvim icon indicating copy to clipboard operation
Shade.nvim copied to clipboard

lose background color?

Open v6cc opened this issue 4 years ago • 7 comments

au ColorScheme * hi Normal ctermbg=none guibg=none cause lose background color?

not use Shade.nvim and au ColorScheme * hi Normal ctermbg=none guibg=none before colorscheme

1

use Shade.nvim and au ColorScheme * hi Normal ctermbg=none guibg=none before colorscheme

au ColorScheme * hi Normal ctermbg=none guibg=none
colorscheme xxx

3-fix

change the order:

colorscheme xxx
au ColorScheme * hi Normal ctermbg=none guibg=none

5

but I still want to use au ColorScheme * hi Normal ctermbg=none guibg=none before colorscheme

v6cc avatar Apr 28 '21 00:04 v6cc

Can you let me know if it's fixed with https://github.com/sunjon/Shade.nvim/commit/0507aa26c0d33f75ed68bc38c1800ffb8d634200 please.

sunjon avatar Apr 29 '21 17:04 sunjon

@sunjon

I update this issue , seems now problem is au ColorScheme * hi Normal ctermbg=none guibg=none

v6cc avatar May 01 '21 09:05 v6cc

@sunjon

I update this issue , seems now problem is au ColorScheme * hi Normal ctermbg=none guibg=none

Ah, you've got a transparent bg? I think what's happening is that it's trying to blend 'none' with 'none'.

There's a config key debug=true that sets an actual colour to blend with. Could you try that and report back how it's looks please?

sunjon avatar May 01 '21 11:05 sunjon

@sunjon

debug=true

au ColorScheme * hi Normal ctermbg=none guibg=none
colorscheme xxx

vsplit get this:

20:10:34 [shade:428]      : AutoCmd: WinEnter : 1003 nil
20:10:34 [shade:273]      : WinEnter   1003
20:10:34 [shade:203]      : create overlay [1003] : overlay 1004 created
20:10:34 [shade:167]      : unshade_window [1003] : overlay 1004 OFF (winblend: 100 [disabled])
20:10:34 [shade:180]      : deactivating window 1000
20:10:34 [shade:156]      : shade_window [1000] : overlay 1002 ON (winblend: 50)

debug1

debug=true

colorscheme xxx
au ColorScheme * hi Normal ctermbg=none guibg=none

vsplit get this:

20:14:51 [shade:428]      : AutoCmd: WinEnter : 1003 nil
20:14:51 [shade:273]      : WinEnter   1003
20:14:51 [shade:203]      : create overlay [1003] : overlay 1004 created
20:14:51 [shade:167]      : unshade_window [1003] : overlay 1004 OFF (winblend: 100 [disabled])
20:14:51 [shade:180]      : deactivating window 1000
20:14:51 [shade:156]      : shade_window [1000] : overlay 1002 ON (winblend: 50)

debug2

v6cc avatar May 01 '21 12:05 v6cc

alright. So it shades fine like that. So if I make it a user configurable color and default it to 'None', everything should be fine.

sunjon avatar May 02 '21 02:05 sunjon

Just FYI that it popped up when using meterial-nvim. Ref: https://github.com/marko-cerovac/material.nvim/issues/40

kornicameister avatar Jun 22 '21 19:06 kornicameister

Perhaps a possible solution could be something like what other users are doing for twilight.nvim

axieax avatar Jan 04 '22 02:01 axieax