The Wikipedia article titled "X11 color names"
http://en.wikipedia.org/wiki/X11_color_names
says w.r.t. the so called "X11 colours" the following:
"Color names are not standardized by Xlib or the X11 protocol.
The list does not show continuity either in selected color
values or in color names, and some color triplets have multiple
names. Despite this, graphic designers and others got used to
them, making it practically impossible to introduce a different
list."
The article also lists those colours.
The X11 colour list has been adopted in both SVG and CSS.
As for the three specific colour names LightRed, LightMagenta and
DarkYellow, they are apparently not part of the X11 list. They are
mentioned in neither the Wikipedia article nor in any of
http://w3.org/TR/SVG/types.html#ColorKeywords
http://w3.org/TR/css3-color/#svg-color
http://cgit.freedesktop.org/xorg/app/rgb/tree/rgb.txt
They are also absent from /usr/share/X11/rgb.txt on my system.
Perhaps it is better to avoid these names and use standard ones
with the same or similar values.
On 9 January 2018 at 08:55, Christian Brabandt <cblists@256bit.org> wrote:
>
> 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.
--
--
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.
Tuesday, January 9, 2018
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment