aurora icon indicating copy to clipboard operation
aurora copied to clipboard

Could you add a transparent background option like this: let g:aurora_transparent = 'true'

Open forbearing opened this issue 3 years ago • 11 comments
trafficstars

forbearing avatar Jun 14 '22 12:06 forbearing

I have added a transparent option to aurora.

set termguicolors
let t_Co=256
let g:airline_theme='oceanicnext'
hi Normal guibg=None ctermbg=None
hi Terminal guibg=NONE ctermbg=NONE
hi LineNr guibg=NONE ctermbg=NONE
hi SignColumn guibg=NONE ctermbg=NONE
hi EndOfBuffer guibg=NONE ctermbg=NONE

but when i open a floating terminal, the transparency is not complete. Screen Shot 2022-06-14 at 8 24 07 PM Screen Shot 2022-06-14 at 8 25 06 PM

forbearing avatar Jun 14 '22 12:06 forbearing

Default terminal looks good to me image Using kitty...

ray-x avatar Jul 05 '22 08:07 ray-x

Which kitty theme can make it transparent?

peleusj avatar Jul 20 '22 14:07 peleusj

I think it comes with Kitty setup, not the color scheme

ray-x avatar Jul 20 '22 19:07 ray-x

But the default setup seems can not make this theme transparent?

The background_opacity setup also will not effect the nvim theme transparency.

The author of Kitty mentioned here: https://github.com/dracula/vim/issues/284#issuecomment-1086532742:

In kitty the background color is made transparent if it is the same as the terminals background color. In alacritty, the background color is made transparent only if there is no background color set. In typical vim color themes, the normal background is set explicitly to a color instead of remaining unset (which is bad for performance, but that's another issue). So since the normal background is set, alacritty wont make it transparent, but kitty will, assuming the color is the same as the terminal's background color.

So how do you achieve the result of your screenshot is interesting.

peleusj avatar Jul 21 '22 00:07 peleusj

Ok, I was wrong. I have this in my setup

  vim.cmd("hi Normal guibg=NONE ctermbg=NONE") -- remove background
  vim.cmd("hi EndOfBuffer guibg=NONE ctermbg=NONE") -- remove background

Those will remove background. It was not kitty

ray-x avatar Jul 21 '22 11:07 ray-x

@peleusj Would you check if latest version works for you?

ray-x avatar Sep 02 '22 05:09 ray-x

Sorry for the delay. It works perfect. Thanks for your work!

peleusj avatar Sep 05 '22 00:09 peleusj

And I hava a little problem. Each cmp compeltion item's document is not transparent when colorscheme's transparent is on. Not sure if it is setttings of colorscheme or cmp itself.

peleusj avatar Sep 05 '22 00:09 peleusj

image Not 100% sure, because my cmp popup is transparent.

ray-x avatar Sep 05 '22 02:09 ray-x

You are right, I test again, it is transparent. May be it is the background color too black and I did not discover it.

Screen Shot 2022-09-05 at 10 14 47

peleusj avatar Sep 05 '22 02:09 peleusj