While experimenting with GTK+3 and CSS I discovered several colors that don't work when referring to them by name. I mention this in the "Colors:" subsection of my post here in the tutorials:
http://www.gtkforums.com/viewtopic.php?f=3&t=988&p=72088=GTK3+with+CSS#p72088These colors are "Basic color keywords" or "Extended color keywords" as defined by w3.org. Since the names don't work, you must use the RGB, RGBA or hex representations instead. A grep search of the libraries revealed the missing definitions in pango-color-table.h and xpm-color-table.h.
I filed a bug for both these and received a request from a Pango developer for a patch. I have never submitted a patch. This area is totally new to me. What is the proper way to do this? The entries are in alphabetic order in
static const char color_names[] =. Then the matching RGBA values are in
static const ColorEntry color_entries[] = These are where the new colors should be places.
Code:
static const char color_names[] =
Line:
16 "aqua\0"
178 "fuchsia\0"
510 "lime\0"
571 "olive\0"
681 "silver\0"
723 "teal\0"
static const ColorEntry color_entries[] = {
Line:
777 { 0, 255, 255, 1 },
939 { 255, 0, 255, 1 ),
1271 { 0, 255, 0, 1 ),
1332 { 128, 128, 0, 1 ),
1442 { 192, 192, 192, 1 ),
1484 { 0, 128, 128, 1 ),