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

can't turn transparent bg solid #35

Closed
Chaitanyabsprip opened this issue May 11, 2021 · 7 comments
Closed

can't turn transparent bg solid #35

Chaitanyabsprip opened this issue May 11, 2021 · 7 comments

Comments

@Chaitanyabsprip
Copy link

I have not set tokyonight_transparent to true or 1 and still the bg is transparent

@folke
Copy link
Owner

folke commented May 11, 2021

Are you using kitty with the tokyonight kitty theme?

If so, Kitty has a setting background_opacity, that makes a color that is the same as the terminal background color transparent.

@folke
Copy link
Owner

folke commented May 11, 2021

If not the above, then what does :au ColorScheme give? Most likely some autocommand that unsets guibg for Normal

@Chaitanyabsprip
Copy link
Author

I am using kitty with the kitty_tokyonight_storm theme

@folke
Copy link
Owner

folke commented May 12, 2021

@Chaitanyabsprip do you have that specific kitty setting enabled? If so kitty will make the BG transparent. Nothing vim can do about that

@Chaitanyabsprip
Copy link
Author

I did have the background_opacity as 0.6 in kitty.conf but why does that affect neovim configuration? They should be independent right?

@folke
Copy link
Owner

folke commented May 12, 2021

Nope, that is effectively what that setting in Kitty does. Vim doesn't render it transparent. It's Kitty that makes any color that is the same as the kitty bg color transparent. Since you're using the storm theme in kitty and the storm theme in vim, Kitty will make the vim bg color transparent. Try changing the kitty theme to something else (like the night style) and restart Kitty. Vim will properly have a background now. Please read the Kitty documentation. It explains it very well.

I'll close this, since this is not related to vim at all.

@folke folke closed this as completed May 12, 2021
@hansemschnokeloch
Copy link

hansemschnokeloch commented Jan 16, 2022

Hi, I resolved this issue by slightly changing the background colour of kitty's colorscheme to get a different bg color in kitty and neovim (example: change #1a1b26 of tokyo night bg to #1a1b27 or #1a1b25). You won't notice any difference in kitty with a background opacity of 0.6.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants