On Mo, 08 Jan 2018, Renato Fabbri wrote:
> The colors in :h gui-colors, but not in
> rgb.txt are: ['LightRed', 'LightMagenta', 'DarkYellow']
> Any idea on how to find these RGB values from the system
> (i.e. without using a color picker)?
> 
> There is no light red, for example, in $VIMRUNTIME/rgb.txt
> 
> Although the color exists.
> E.g.: hi Normal guibg=lightred
> is ok.
> 
> I found light red in source tree src/terminal.c
> with RGB: 255 64 64,
> which does not correspond to the color applied
> (found 255 140 140 in a color picker, and if I do
> :hi Normal guibg=#ff8b8b, it stays the same.)
IIRC, rgb.txt came from the X11 Server sources and those colors were not 
defined there.
Anyhow, I cannot find it in the X11 Server source and in some commits 
they removed all references to that file. So it might no longer exist in 
a maintained form.
As for LightRed, LightMagenta and DarkYellow, those colors are defined 
in src/term.c:
    {(char_u *)"darkyellow",	RGB(0x8B, 0x8B, 0x00)}, /* No X11 */
    {(char_u *)"lightmagenta",	RGB(0xFF, 0x8B, 0xFF)}, /* No X11 */
    {(char_u *)"lightred",	RGB(0xFF, 0x8B, 0x8B)}, /* No X11 */
Best,
Christian
-- 
Heutzutage kennen die Leute den Preis von allem und den Wert von
nichts.
		-- Horst Stern
-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment