vhakulinen / gnvim

GUI for neovim, without any web bloat
MIT License
1.84k stars 69 forks source link

Darker color within terminal inside gnvim #191

Closed tuanbass closed 2 years ago

tuanbass commented 2 years ago

image

Hi,

When I open terminal inside gnvim, the color is very strange. Left is original color(open terminal directly using alacritty. Right is open inside gnvim. Text in gnvim is much darker, and sometime I cannot read it.

I'm using Ubuntu 22.04, but the problem occurs also in 20.04

Any idea ? Thanks

vhakulinen commented 2 years ago

gnvim uses what ever colors neovim tells it to. You'll have to fiddle with your colorscheme.

FWIW, for me the desert colorscheme that comes with neovim also has darker terminal background when compared to non-terminal buffer.

tuanbass commented 2 years ago

Thanks @vhakulinen for the response.

gnvim uses what ever colors neovim tells it to. You'll have to fiddle with your colorscheme.

It's quite strange for me. Below is the comparison (left is nvim, right is gnvim), the difference is still occurred.

image

I also tried with another nvim client (neovide), and they have the same problem. Do you think the difference comes from how GTK define the colorschme?

vhakulinen commented 2 years ago

I also tried with another nvim client (neovide), and they have the same problem.

By having the same problem, do you mean that they (neovide) also has the same color(s) as gnvim?

Do you think the difference comes from how GTK define the colorschme?

Gnvim doesn't use colors from gtk.

tuanbass commented 2 years ago

By having the same problem, do you mean that they (neovide) also has the same color(s) as gnvim?

Sorry for the confusion as English is not my native language. Yes. I mean "neovide" has same colors as "gnvim". When original "nvim" has same colors with "original" terminal (It might because of nvim is run inside a "original" terminal I guess)

vhakulinen commented 2 years ago

When original "nvim" has same colors with "original" terminal (It might because of nvim is run inside a "original" terminal I guess)

Thats indeed because its running inside the terminal.

I suggest you read through :h highlight-args and :h terminal-config to get a bit more in-depth view on coloring.

tuanbass commented 2 years ago

I suggest you read through :h highlight-args and :h terminal-config to get a bit more in-depth view on coloring.

I will check. Thanks for the advice.