kovidgoyal / kitty

Cross-platform, fast, feature-rich, GPU based terminal
https://sw.kovidgoyal.net/kitty/
GNU General Public License v3.0
24.73k stars 991 forks source link

Colors set in config file are displayed pale #4322

Closed GscheadaHamme closed 2 years ago

GscheadaHamme commented 2 years ago

I'm afraid the solution to this issue could be rather simple but after researching for quite a while I still have no Idea what's going on.

I'm using the OneDark color scheme for Vim and set the kitty colors according to the One Dark.kitty file included in the package. This is my kitty.conf.

However, the displayed colors are pale compared to the color reference. This extends to Vim after setting OneDark to use terminal emulator colors: OneDark-terminal_colors

The expected colors can be shown by setting OneDark to use the colors defined in the package: OneDark-original

Is there a way to get kitty to use those true colors?

Many thanks in advance.

page-down commented 2 years ago

I tried the following configuration and it worked fine. vim 8.2

~/.vim/autoload/onedark.vim ~/.vim/colors/onedark.vim

~/.vimrc

syntax on                                                                            
colorscheme onedark                                                                  

if $TERM == "xterm-kitty"                                                            
    set termguicolors                                                                
    let &t_ut=''                                                                     
endif
kitty --config=NONE -o include=onedark.kitty.conf
kovidgoyal commented 2 years ago

I dont see how this can be a kitty bug, there has been extensive checking of kitty's color rendering including measuring of the output colors with colorimeter. And it has been found to be correct (a bit of searching in the closed issues will find the relevant ones). This must be some kind of misconfiguration and since its not reproducible with a minimal vim config, I am closing.

GscheadaHamme commented 2 years ago

Turns out my .vimrc is broken and got the wrong impression of how One Dark colors look.

Thanks for your effort and sorry for posing insufficiently researched questions.