OSDN Git Service

move X11 colors table data to qcolor_p header
authorIvailo Monev <xakepa10@gmail.com>
Wed, 15 Jun 2022 20:48:00 +0000 (23:48 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Wed, 15 Jun 2022 20:48:00 +0000 (23:48 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/gui/image/qxpmhandler.cpp
src/gui/painting/qcolor.cpp
src/gui/painting/qcolor_p.h
tests/auto/qcolor/tst_qcolor.cpp

index fdb0fdf..2a5c322 100644 (file)
@@ -44,673 +44,6 @@ static quint64 xpmHash(const char *str)
     return hashValue;
 }
 
-#define QRGB(r,g,b) (r*65536 + g*256 + b)
-
-static const struct XPMRGBData {
-    const QRgb value;
-    const char *name;
-} xpmRgbTbl[] = {
-  { QRGB(240,248,255),  "aliceblue" },
-  { QRGB(250,235,215),  "antiquewhite" },
-  { QRGB(255,239,219),  "antiquewhite1" },
-  { QRGB(238,223,204),  "antiquewhite2" },
-  { QRGB(205,192,176),  "antiquewhite3" },
-  { QRGB(139,131,120),  "antiquewhite4" },
-  { QRGB(127,255,212),  "aquamarine" },
-  { QRGB(127,255,212),  "aquamarine1" },
-  { QRGB(118,238,198),  "aquamarine2" },
-  { QRGB(102,205,170),  "aquamarine3" },
-  { QRGB( 69,139,116),  "aquamarine4" },
-  { QRGB(240,255,255),  "azure" },
-  { QRGB(240,255,255),  "azure1" },
-  { QRGB(224,238,238),  "azure2" },
-  { QRGB(193,205,205),  "azure3" },
-  { QRGB(131,139,139),  "azure4" },
-  { QRGB(245,245,220),  "beige" },
-  { QRGB(255,228,196),  "bisque" },
-  { QRGB(255,228,196),  "bisque1" },
-  { QRGB(238,213,183),  "bisque2" },
-  { QRGB(205,183,158),  "bisque3" },
-  { QRGB(139,125,107),  "bisque4" },
-  { QRGB(  0,  0,  0),  "black" },
-  { QRGB(255,235,205),  "blanchedalmond" },
-  { QRGB(  0,  0,255),  "blue" },
-  { QRGB(  0,  0,255),  "blue1" },
-  { QRGB(  0,  0,238),  "blue2" },
-  { QRGB(  0,  0,205),  "blue3" },
-  { QRGB(  0,  0,139),  "blue4" },
-  { QRGB(138, 43,226),  "blueviolet" },
-  { QRGB(165, 42, 42),  "brown" },
-  { QRGB(255, 64, 64),  "brown1" },
-  { QRGB(238, 59, 59),  "brown2" },
-  { QRGB(205, 51, 51),  "brown3" },
-  { QRGB(139, 35, 35),  "brown4" },
-  { QRGB(222,184,135),  "burlywood" },
-  { QRGB(255,211,155),  "burlywood1" },
-  { QRGB(238,197,145),  "burlywood2" },
-  { QRGB(205,170,125),  "burlywood3" },
-  { QRGB(139,115, 85),  "burlywood4" },
-  { QRGB( 95,158,160),  "cadetblue" },
-  { QRGB(152,245,255),  "cadetblue1" },
-  { QRGB(142,229,238),  "cadetblue2" },
-  { QRGB(122,197,205),  "cadetblue3" },
-  { QRGB( 83,134,139),  "cadetblue4" },
-  { QRGB(127,255,  0),  "chartreuse" },
-  { QRGB(127,255,  0),  "chartreuse1" },
-  { QRGB(118,238,  0),  "chartreuse2" },
-  { QRGB(102,205,  0),  "chartreuse3" },
-  { QRGB( 69,139,  0),  "chartreuse4" },
-  { QRGB(210,105, 30),  "chocolate" },
-  { QRGB(255,127, 36),  "chocolate1" },
-  { QRGB(238,118, 33),  "chocolate2" },
-  { QRGB(205,102, 29),  "chocolate3" },
-  { QRGB(139, 69, 19),  "chocolate4" },
-  { QRGB(255,127, 80),  "coral" },
-  { QRGB(255,114, 86),  "coral1" },
-  { QRGB(238,106, 80),  "coral2" },
-  { QRGB(205, 91, 69),  "coral3" },
-  { QRGB(139, 62, 47),  "coral4" },
-  { QRGB(100,149,237),  "cornflowerblue" },
-  { QRGB(255,248,220),  "cornsilk" },
-  { QRGB(255,248,220),  "cornsilk1" },
-  { QRGB(238,232,205),  "cornsilk2" },
-  { QRGB(205,200,177),  "cornsilk3" },
-  { QRGB(139,136,120),  "cornsilk4" },
-  { QRGB(  0,255,255),  "cyan" },
-  { QRGB(  0,255,255),  "cyan1" },
-  { QRGB(  0,238,238),  "cyan2" },
-  { QRGB(  0,205,205),  "cyan3" },
-  { QRGB(  0,139,139),  "cyan4" },
-  { QRGB(  0,  0,139),  "darkblue" },
-  { QRGB(  0,139,139),  "darkcyan" },
-  { QRGB(184,134, 11),  "darkgoldenrod" },
-  { QRGB(255,185, 15),  "darkgoldenrod1" },
-  { QRGB(238,173, 14),  "darkgoldenrod2" },
-  { QRGB(205,149, 12),  "darkgoldenrod3" },
-  { QRGB(139,101,  8),  "darkgoldenrod4" },
-  { QRGB(169,169,169),  "darkgray" },
-  { QRGB(  0,100,  0),  "darkgreen" },
-  { QRGB(169,169,169),  "darkgrey" },
-  { QRGB(189,183,107),  "darkkhaki" },
-  { QRGB(139,  0,139),  "darkmagenta" },
-  { QRGB( 85,107, 47),  "darkolivegreen" },
-  { QRGB(202,255,112),  "darkolivegreen1" },
-  { QRGB(188,238,104),  "darkolivegreen2" },
-  { QRGB(162,205, 90),  "darkolivegreen3" },
-  { QRGB(110,139, 61),  "darkolivegreen4" },
-  { QRGB(255,140,  0),  "darkorange" },
-  { QRGB(255,127,  0),  "darkorange1" },
-  { QRGB(238,118,  0),  "darkorange2" },
-  { QRGB(205,102,  0),  "darkorange3" },
-  { QRGB(139, 69,  0),  "darkorange4" },
-  { QRGB(153, 50,204),  "darkorchid" },
-  { QRGB(191, 62,255),  "darkorchid1" },
-  { QRGB(178, 58,238),  "darkorchid2" },
-  { QRGB(154, 50,205),  "darkorchid3" },
-  { QRGB(104, 34,139),  "darkorchid4" },
-  { QRGB(139,  0,  0),  "darkred" },
-  { QRGB(233,150,122),  "darksalmon" },
-  { QRGB(143,188,143),  "darkseagreen" },
-  { QRGB(193,255,193),  "darkseagreen1" },
-  { QRGB(180,238,180),  "darkseagreen2" },
-  { QRGB(155,205,155),  "darkseagreen3" },
-  { QRGB(105,139,105),  "darkseagreen4" },
-  { QRGB( 72, 61,139),  "darkslateblue" },
-  { QRGB( 47, 79, 79),  "darkslategray" },
-  { QRGB(151,255,255),  "darkslategray1" },
-  { QRGB(141,238,238),  "darkslategray2" },
-  { QRGB(121,205,205),  "darkslategray3" },
-  { QRGB( 82,139,139),  "darkslategray4" },
-  { QRGB( 47, 79, 79),  "darkslategrey" },
-  { QRGB(  0,206,209),  "darkturquoise" },
-  { QRGB(148,  0,211),  "darkviolet" },
-  { QRGB(255, 20,147),  "deeppink" },
-  { QRGB(255, 20,147),  "deeppink1" },
-  { QRGB(238, 18,137),  "deeppink2" },
-  { QRGB(205, 16,118),  "deeppink3" },
-  { QRGB(139, 10, 80),  "deeppink4" },
-  { QRGB(  0,191,255),  "deepskyblue" },
-  { QRGB(  0,191,255),  "deepskyblue1" },
-  { QRGB(  0,178,238),  "deepskyblue2" },
-  { QRGB(  0,154,205),  "deepskyblue3" },
-  { QRGB(  0,104,139),  "deepskyblue4" },
-  { QRGB(105,105,105),  "dimgray" },
-  { QRGB(105,105,105),  "dimgrey" },
-  { QRGB( 30,144,255),  "dodgerblue" },
-  { QRGB( 30,144,255),  "dodgerblue1" },
-  { QRGB( 28,134,238),  "dodgerblue2" },
-  { QRGB( 24,116,205),  "dodgerblue3" },
-  { QRGB( 16, 78,139),  "dodgerblue4" },
-  { QRGB(178, 34, 34),  "firebrick" },
-  { QRGB(255, 48, 48),  "firebrick1" },
-  { QRGB(238, 44, 44),  "firebrick2" },
-  { QRGB(205, 38, 38),  "firebrick3" },
-  { QRGB(139, 26, 26),  "firebrick4" },
-  { QRGB(255,250,240),  "floralwhite" },
-  { QRGB( 34,139, 34),  "forestgreen" },
-  { QRGB(220,220,220),  "gainsboro" },
-  { QRGB(248,248,255),  "ghostwhite" },
-  { QRGB(255,215,  0),  "gold" },
-  { QRGB(255,215,  0),  "gold1" },
-  { QRGB(238,201,  0),  "gold2" },
-  { QRGB(205,173,  0),  "gold3" },
-  { QRGB(139,117,  0),  "gold4" },
-  { QRGB(218,165, 32),  "goldenrod" },
-  { QRGB(255,193, 37),  "goldenrod1" },
-  { QRGB(238,180, 34),  "goldenrod2" },
-  { QRGB(205,155, 29),  "goldenrod3" },
-  { QRGB(139,105, 20),  "goldenrod4" },
-  { QRGB(190,190,190),  "gray" },
-  { QRGB(  0,  0,  0),  "gray0" },
-  { QRGB(  3,  3,  3),  "gray1" },
-  { QRGB( 26, 26, 26),  "gray10" },
-  { QRGB(255,255,255),  "gray100" },
-  { QRGB( 28, 28, 28),  "gray11" },
-  { QRGB( 31, 31, 31),  "gray12" },
-  { QRGB( 33, 33, 33),  "gray13" },
-  { QRGB( 36, 36, 36),  "gray14" },
-  { QRGB( 38, 38, 38),  "gray15" },
-  { QRGB( 41, 41, 41),  "gray16" },
-  { QRGB( 43, 43, 43),  "gray17" },
-  { QRGB( 46, 46, 46),  "gray18" },
-  { QRGB( 48, 48, 48),  "gray19" },
-  { QRGB(  5,  5,  5),  "gray2" },
-  { QRGB( 51, 51, 51),  "gray20" },
-  { QRGB( 54, 54, 54),  "gray21" },
-  { QRGB( 56, 56, 56),  "gray22" },
-  { QRGB( 59, 59, 59),  "gray23" },
-  { QRGB( 61, 61, 61),  "gray24" },
-  { QRGB( 64, 64, 64),  "gray25" },
-  { QRGB( 66, 66, 66),  "gray26" },
-  { QRGB( 69, 69, 69),  "gray27" },
-  { QRGB( 71, 71, 71),  "gray28" },
-  { QRGB( 74, 74, 74),  "gray29" },
-  { QRGB(  8,  8,  8),  "gray3" },
-  { QRGB( 77, 77, 77),  "gray30" },
-  { QRGB( 79, 79, 79),  "gray31" },
-  { QRGB( 82, 82, 82),  "gray32" },
-  { QRGB( 84, 84, 84),  "gray33" },
-  { QRGB( 87, 87, 87),  "gray34" },
-  { QRGB( 89, 89, 89),  "gray35" },
-  { QRGB( 92, 92, 92),  "gray36" },
-  { QRGB( 94, 94, 94),  "gray37" },
-  { QRGB( 97, 97, 97),  "gray38" },
-  { QRGB( 99, 99, 99),  "gray39" },
-  { QRGB( 10, 10, 10),  "gray4" },
-  { QRGB(102,102,102),  "gray40" },
-  { QRGB(105,105,105),  "gray41" },
-  { QRGB(107,107,107),  "gray42" },
-  { QRGB(110,110,110),  "gray43" },
-  { QRGB(112,112,112),  "gray44" },
-  { QRGB(115,115,115),  "gray45" },
-  { QRGB(117,117,117),  "gray46" },
-  { QRGB(120,120,120),  "gray47" },
-  { QRGB(122,122,122),  "gray48" },
-  { QRGB(125,125,125),  "gray49" },
-  { QRGB( 13, 13, 13),  "gray5" },
-  { QRGB(127,127,127),  "gray50" },
-  { QRGB(130,130,130),  "gray51" },
-  { QRGB(133,133,133),  "gray52" },
-  { QRGB(135,135,135),  "gray53" },
-  { QRGB(138,138,138),  "gray54" },
-  { QRGB(140,140,140),  "gray55" },
-  { QRGB(143,143,143),  "gray56" },
-  { QRGB(145,145,145),  "gray57" },
-  { QRGB(148,148,148),  "gray58" },
-  { QRGB(150,150,150),  "gray59" },
-  { QRGB( 15, 15, 15),  "gray6" },
-  { QRGB(153,153,153),  "gray60" },
-  { QRGB(156,156,156),  "gray61" },
-  { QRGB(158,158,158),  "gray62" },
-  { QRGB(161,161,161),  "gray63" },
-  { QRGB(163,163,163),  "gray64" },
-  { QRGB(166,166,166),  "gray65" },
-  { QRGB(168,168,168),  "gray66" },
-  { QRGB(171,171,171),  "gray67" },
-  { QRGB(173,173,173),  "gray68" },
-  { QRGB(176,176,176),  "gray69" },
-  { QRGB( 18, 18, 18),  "gray7" },
-  { QRGB(179,179,179),  "gray70" },
-  { QRGB(181,181,181),  "gray71" },
-  { QRGB(184,184,184),  "gray72" },
-  { QRGB(186,186,186),  "gray73" },
-  { QRGB(189,189,189),  "gray74" },
-  { QRGB(191,191,191),  "gray75" },
-  { QRGB(194,194,194),  "gray76" },
-  { QRGB(196,196,196),  "gray77" },
-  { QRGB(199,199,199),  "gray78" },
-  { QRGB(201,201,201),  "gray79" },
-  { QRGB( 20, 20, 20),  "gray8" },
-  { QRGB(204,204,204),  "gray80" },
-  { QRGB(207,207,207),  "gray81" },
-  { QRGB(209,209,209),  "gray82" },
-  { QRGB(212,212,212),  "gray83" },
-  { QRGB(214,214,214),  "gray84" },
-  { QRGB(217,217,217),  "gray85" },
-  { QRGB(219,219,219),  "gray86" },
-  { QRGB(222,222,222),  "gray87" },
-  { QRGB(224,224,224),  "gray88" },
-  { QRGB(227,227,227),  "gray89" },
-  { QRGB( 23, 23, 23),  "gray9" },
-  { QRGB(229,229,229),  "gray90" },
-  { QRGB(232,232,232),  "gray91" },
-  { QRGB(235,235,235),  "gray92" },
-  { QRGB(237,237,237),  "gray93" },
-  { QRGB(240,240,240),  "gray94" },
-  { QRGB(242,242,242),  "gray95" },
-  { QRGB(245,245,245),  "gray96" },
-  { QRGB(247,247,247),  "gray97" },
-  { QRGB(250,250,250),  "gray98" },
-  { QRGB(252,252,252),  "gray99" },
-  { QRGB(  0,255,  0),  "green" },
-  { QRGB(  0,255,  0),  "green1" },
-  { QRGB(  0,238,  0),  "green2" },
-  { QRGB(  0,205,  0),  "green3" },
-  { QRGB(  0,139,  0),  "green4" },
-  { QRGB(173,255, 47),  "greenyellow" },
-  { QRGB(190,190,190),  "grey" },
-  { QRGB(  0,  0,  0),  "grey0" },
-  { QRGB(  3,  3,  3),  "grey1" },
-  { QRGB( 26, 26, 26),  "grey10" },
-  { QRGB(255,255,255),  "grey100" },
-  { QRGB( 28, 28, 28),  "grey11" },
-  { QRGB( 31, 31, 31),  "grey12" },
-  { QRGB( 33, 33, 33),  "grey13" },
-  { QRGB( 36, 36, 36),  "grey14" },
-  { QRGB( 38, 38, 38),  "grey15" },
-  { QRGB( 41, 41, 41),  "grey16" },
-  { QRGB( 43, 43, 43),  "grey17" },
-  { QRGB( 46, 46, 46),  "grey18" },
-  { QRGB( 48, 48, 48),  "grey19" },
-  { QRGB(  5,  5,  5),  "grey2" },
-  { QRGB( 51, 51, 51),  "grey20" },
-  { QRGB( 54, 54, 54),  "grey21" },
-  { QRGB( 56, 56, 56),  "grey22" },
-  { QRGB( 59, 59, 59),  "grey23" },
-  { QRGB( 61, 61, 61),  "grey24" },
-  { QRGB( 64, 64, 64),  "grey25" },
-  { QRGB( 66, 66, 66),  "grey26" },
-  { QRGB( 69, 69, 69),  "grey27" },
-  { QRGB( 71, 71, 71),  "grey28" },
-  { QRGB( 74, 74, 74),  "grey29" },
-  { QRGB(  8,  8,  8),  "grey3" },
-  { QRGB( 77, 77, 77),  "grey30" },
-  { QRGB( 79, 79, 79),  "grey31" },
-  { QRGB( 82, 82, 82),  "grey32" },
-  { QRGB( 84, 84, 84),  "grey33" },
-  { QRGB( 87, 87, 87),  "grey34" },
-  { QRGB( 89, 89, 89),  "grey35" },
-  { QRGB( 92, 92, 92),  "grey36" },
-  { QRGB( 94, 94, 94),  "grey37" },
-  { QRGB( 97, 97, 97),  "grey38" },
-  { QRGB( 99, 99, 99),  "grey39" },
-  { QRGB( 10, 10, 10),  "grey4" },
-  { QRGB(102,102,102),  "grey40" },
-  { QRGB(105,105,105),  "grey41" },
-  { QRGB(107,107,107),  "grey42" },
-  { QRGB(110,110,110),  "grey43" },
-  { QRGB(112,112,112),  "grey44" },
-  { QRGB(115,115,115),  "grey45" },
-  { QRGB(117,117,117),  "grey46" },
-  { QRGB(120,120,120),  "grey47" },
-  { QRGB(122,122,122),  "grey48" },
-  { QRGB(125,125,125),  "grey49" },
-  { QRGB( 13, 13, 13),  "grey5" },
-  { QRGB(127,127,127),  "grey50" },
-  { QRGB(130,130,130),  "grey51" },
-  { QRGB(133,133,133),  "grey52" },
-  { QRGB(135,135,135),  "grey53" },
-  { QRGB(138,138,138),  "grey54" },
-  { QRGB(140,140,140),  "grey55" },
-  { QRGB(143,143,143),  "grey56" },
-  { QRGB(145,145,145),  "grey57" },
-  { QRGB(148,148,148),  "grey58" },
-  { QRGB(150,150,150),  "grey59" },
-  { QRGB( 15, 15, 15),  "grey6" },
-  { QRGB(153,153,153),  "grey60" },
-  { QRGB(156,156,156),  "grey61" },
-  { QRGB(158,158,158),  "grey62" },
-  { QRGB(161,161,161),  "grey63" },
-  { QRGB(163,163,163),  "grey64" },
-  { QRGB(166,166,166),  "grey65" },
-  { QRGB(168,168,168),  "grey66" },
-  { QRGB(171,171,171),  "grey67" },
-  { QRGB(173,173,173),  "grey68" },
-  { QRGB(176,176,176),  "grey69" },
-  { QRGB( 18, 18, 18),  "grey7" },
-  { QRGB(179,179,179),  "grey70" },
-  { QRGB(181,181,181),  "grey71" },
-  { QRGB(184,184,184),  "grey72" },
-  { QRGB(186,186,186),  "grey73" },
-  { QRGB(189,189,189),  "grey74" },
-  { QRGB(191,191,191),  "grey75" },
-  { QRGB(194,194,194),  "grey76" },
-  { QRGB(196,196,196),  "grey77" },
-  { QRGB(199,199,199),  "grey78" },
-  { QRGB(201,201,201),  "grey79" },
-  { QRGB( 20, 20, 20),  "grey8" },
-  { QRGB(204,204,204),  "grey80" },
-  { QRGB(207,207,207),  "grey81" },
-  { QRGB(209,209,209),  "grey82" },
-  { QRGB(212,212,212),  "grey83" },
-  { QRGB(214,214,214),  "grey84" },
-  { QRGB(217,217,217),  "grey85" },
-  { QRGB(219,219,219),  "grey86" },
-  { QRGB(222,222,222),  "grey87" },
-  { QRGB(224,224,224),  "grey88" },
-  { QRGB(227,227,227),  "grey89" },
-  { QRGB( 23, 23, 23),  "grey9" },
-  { QRGB(229,229,229),  "grey90" },
-  { QRGB(232,232,232),  "grey91" },
-  { QRGB(235,235,235),  "grey92" },
-  { QRGB(237,237,237),  "grey93" },
-  { QRGB(240,240,240),  "grey94" },
-  { QRGB(242,242,242),  "grey95" },
-  { QRGB(245,245,245),  "grey96" },
-  { QRGB(247,247,247),  "grey97" },
-  { QRGB(250,250,250),  "grey98" },
-  { QRGB(252,252,252),  "grey99" },
-  { QRGB(240,255,240),  "honeydew" },
-  { QRGB(240,255,240),  "honeydew1" },
-  { QRGB(224,238,224),  "honeydew2" },
-  { QRGB(193,205,193),  "honeydew3" },
-  { QRGB(131,139,131),  "honeydew4" },
-  { QRGB(255,105,180),  "hotpink" },
-  { QRGB(255,110,180),  "hotpink1" },
-  { QRGB(238,106,167),  "hotpink2" },
-  { QRGB(205, 96,144),  "hotpink3" },
-  { QRGB(139, 58, 98),  "hotpink4" },
-  { QRGB(205, 92, 92),  "indianred" },
-  { QRGB(255,106,106),  "indianred1" },
-  { QRGB(238, 99, 99),  "indianred2" },
-  { QRGB(205, 85, 85),  "indianred3" },
-  { QRGB(139, 58, 58),  "indianred4" },
-  { QRGB(255,255,240),  "ivory" },
-  { QRGB(255,255,240),  "ivory1" },
-  { QRGB(238,238,224),  "ivory2" },
-  { QRGB(205,205,193),  "ivory3" },
-  { QRGB(139,139,131),  "ivory4" },
-  { QRGB(240,230,140),  "khaki" },
-  { QRGB(255,246,143),  "khaki1" },
-  { QRGB(238,230,133),  "khaki2" },
-  { QRGB(205,198,115),  "khaki3" },
-  { QRGB(139,134, 78),  "khaki4" },
-  { QRGB(230,230,250),  "lavender" },
-  { QRGB(255,240,245),  "lavenderblush" },
-  { QRGB(255,240,245),  "lavenderblush1" },
-  { QRGB(238,224,229),  "lavenderblush2" },
-  { QRGB(205,193,197),  "lavenderblush3" },
-  { QRGB(139,131,134),  "lavenderblush4" },
-  { QRGB(124,252,  0),  "lawngreen" },
-  { QRGB(255,250,205),  "lemonchiffon" },
-  { QRGB(255,250,205),  "lemonchiffon1" },
-  { QRGB(238,233,191),  "lemonchiffon2" },
-  { QRGB(205,201,165),  "lemonchiffon3" },
-  { QRGB(139,137,112),  "lemonchiffon4" },
-  { QRGB(173,216,230),  "lightblue" },
-  { QRGB(191,239,255),  "lightblue1" },
-  { QRGB(178,223,238),  "lightblue2" },
-  { QRGB(154,192,205),  "lightblue3" },
-  { QRGB(104,131,139),  "lightblue4" },
-  { QRGB(240,128,128),  "lightcoral" },
-  { QRGB(224,255,255),  "lightcyan" },
-  { QRGB(224,255,255),  "lightcyan1" },
-  { QRGB(209,238,238),  "lightcyan2" },
-  { QRGB(180,205,205),  "lightcyan3" },
-  { QRGB(122,139,139),  "lightcyan4" },
-  { QRGB(238,221,130),  "lightgoldenrod" },
-  { QRGB(255,236,139),  "lightgoldenrod1" },
-  { QRGB(238,220,130),  "lightgoldenrod2" },
-  { QRGB(205,190,112),  "lightgoldenrod3" },
-  { QRGB(139,129, 76),  "lightgoldenrod4" },
-  { QRGB(250,250,210),  "lightgoldenrodyellow" },
-  { QRGB(211,211,211),  "lightgray" },
-  { QRGB(144,238,144),  "lightgreen" },
-  { QRGB(211,211,211),  "lightgrey" },
-  { QRGB(255,182,193),  "lightpink" },
-  { QRGB(255,174,185),  "lightpink1" },
-  { QRGB(238,162,173),  "lightpink2" },
-  { QRGB(205,140,149),  "lightpink3" },
-  { QRGB(139, 95,101),  "lightpink4" },
-  { QRGB(255,160,122),  "lightsalmon" },
-  { QRGB(255,160,122),  "lightsalmon1" },
-  { QRGB(238,149,114),  "lightsalmon2" },
-  { QRGB(205,129, 98),  "lightsalmon3" },
-  { QRGB(139, 87, 66),  "lightsalmon4" },
-  { QRGB( 32,178,170),  "lightseagreen" },
-  { QRGB(135,206,250),  "lightskyblue" },
-  { QRGB(176,226,255),  "lightskyblue1" },
-  { QRGB(164,211,238),  "lightskyblue2" },
-  { QRGB(141,182,205),  "lightskyblue3" },
-  { QRGB( 96,123,139),  "lightskyblue4" },
-  { QRGB(132,112,255),  "lightslateblue" },
-  { QRGB(119,136,153),  "lightslategray" },
-  { QRGB(119,136,153),  "lightslategrey" },
-  { QRGB(176,196,222),  "lightsteelblue" },
-  { QRGB(202,225,255),  "lightsteelblue1" },
-  { QRGB(188,210,238),  "lightsteelblue2" },
-  { QRGB(162,181,205),  "lightsteelblue3" },
-  { QRGB(110,123,139),  "lightsteelblue4" },
-  { QRGB(255,255,224),  "lightyellow" },
-  { QRGB(255,255,224),  "lightyellow1" },
-  { QRGB(238,238,209),  "lightyellow2" },
-  { QRGB(205,205,180),  "lightyellow3" },
-  { QRGB(139,139,122),  "lightyellow4" },
-  { QRGB( 50,205, 50),  "limegreen" },
-  { QRGB(250,240,230),  "linen" },
-  { QRGB(255,  0,255),  "magenta" },
-  { QRGB(255,  0,255),  "magenta1" },
-  { QRGB(238,  0,238),  "magenta2" },
-  { QRGB(205,  0,205),  "magenta3" },
-  { QRGB(139,  0,139),  "magenta4" },
-  { QRGB(176, 48, 96),  "maroon" },
-  { QRGB(255, 52,179),  "maroon1" },
-  { QRGB(238, 48,167),  "maroon2" },
-  { QRGB(205, 41,144),  "maroon3" },
-  { QRGB(139, 28, 98),  "maroon4" },
-  { QRGB(102,205,170),  "mediumaquamarine" },
-  { QRGB(  0,  0,205),  "mediumblue" },
-  { QRGB(186, 85,211),  "mediumorchid" },
-  { QRGB(224,102,255),  "mediumorchid1" },
-  { QRGB(209, 95,238),  "mediumorchid2" },
-  { QRGB(180, 82,205),  "mediumorchid3" },
-  { QRGB(122, 55,139),  "mediumorchid4" },
-  { QRGB(147,112,219),  "mediumpurple" },
-  { QRGB(171,130,255),  "mediumpurple1" },
-  { QRGB(159,121,238),  "mediumpurple2" },
-  { QRGB(137,104,205),  "mediumpurple3" },
-  { QRGB( 93, 71,139),  "mediumpurple4" },
-  { QRGB( 60,179,113),  "mediumseagreen" },
-  { QRGB(123,104,238),  "mediumslateblue" },
-  { QRGB(  0,250,154),  "mediumspringgreen" },
-  { QRGB( 72,209,204),  "mediumturquoise" },
-  { QRGB(199, 21,133),  "mediumvioletred" },
-  { QRGB( 25, 25,112),  "midnightblue" },
-  { QRGB(245,255,250),  "mintcream" },
-  { QRGB(255,228,225),  "mistyrose" },
-  { QRGB(255,228,225),  "mistyrose1" },
-  { QRGB(238,213,210),  "mistyrose2" },
-  { QRGB(205,183,181),  "mistyrose3" },
-  { QRGB(139,125,123),  "mistyrose4" },
-  { QRGB(255,228,181),  "moccasin" },
-  { QRGB(255,222,173),  "navajowhite" },
-  { QRGB(255,222,173),  "navajowhite1" },
-  { QRGB(238,207,161),  "navajowhite2" },
-  { QRGB(205,179,139),  "navajowhite3" },
-  { QRGB(139,121, 94),  "navajowhite4" },
-  { QRGB(  0,  0,128),  "navy" },
-  { QRGB(  0,  0,128),  "navyblue" },
-  { QRGB(253,245,230),  "oldlace" },
-  { QRGB(107,142, 35),  "olivedrab" },
-  { QRGB(192,255, 62),  "olivedrab1" },
-  { QRGB(179,238, 58),  "olivedrab2" },
-  { QRGB(154,205, 50),  "olivedrab3" },
-  { QRGB(105,139, 34),  "olivedrab4" },
-  { QRGB(255,165,  0),  "orange" },
-  { QRGB(255,165,  0),  "orange1" },
-  { QRGB(238,154,  0),  "orange2" },
-  { QRGB(205,133,  0),  "orange3" },
-  { QRGB(139, 90,  0),  "orange4" },
-  { QRGB(255, 69,  0),  "orangered" },
-  { QRGB(255, 69,  0),  "orangered1" },
-  { QRGB(238, 64,  0),  "orangered2" },
-  { QRGB(205, 55,  0),  "orangered3" },
-  { QRGB(139, 37,  0),  "orangered4" },
-  { QRGB(218,112,214),  "orchid" },
-  { QRGB(255,131,250),  "orchid1" },
-  { QRGB(238,122,233),  "orchid2" },
-  { QRGB(205,105,201),  "orchid3" },
-  { QRGB(139, 71,137),  "orchid4" },
-  { QRGB(238,232,170),  "palegoldenrod" },
-  { QRGB(152,251,152),  "palegreen" },
-  { QRGB(154,255,154),  "palegreen1" },
-  { QRGB(144,238,144),  "palegreen2" },
-  { QRGB(124,205,124),  "palegreen3" },
-  { QRGB( 84,139, 84),  "palegreen4" },
-  { QRGB(175,238,238),  "paleturquoise" },
-  { QRGB(187,255,255),  "paleturquoise1" },
-  { QRGB(174,238,238),  "paleturquoise2" },
-  { QRGB(150,205,205),  "paleturquoise3" },
-  { QRGB(102,139,139),  "paleturquoise4" },
-  { QRGB(219,112,147),  "palevioletred" },
-  { QRGB(255,130,171),  "palevioletred1" },
-  { QRGB(238,121,159),  "palevioletred2" },
-  { QRGB(205,104,137),  "palevioletred3" },
-  { QRGB(139, 71, 93),  "palevioletred4" },
-  { QRGB(255,239,213),  "papayawhip" },
-  { QRGB(255,218,185),  "peachpuff" },
-  { QRGB(255,218,185),  "peachpuff1" },
-  { QRGB(238,203,173),  "peachpuff2" },
-  { QRGB(205,175,149),  "peachpuff3" },
-  { QRGB(139,119,101),  "peachpuff4" },
-  { QRGB(205,133, 63),  "peru" },
-  { QRGB(255,192,203),  "pink" },
-  { QRGB(255,181,197),  "pink1" },
-  { QRGB(238,169,184),  "pink2" },
-  { QRGB(205,145,158),  "pink3" },
-  { QRGB(139, 99,108),  "pink4" },
-  { QRGB(221,160,221),  "plum" },
-  { QRGB(255,187,255),  "plum1" },
-  { QRGB(238,174,238),  "plum2" },
-  { QRGB(205,150,205),  "plum3" },
-  { QRGB(139,102,139),  "plum4" },
-  { QRGB(176,224,230),  "powderblue" },
-  { QRGB(160, 32,240),  "purple" },
-  { QRGB(155, 48,255),  "purple1" },
-  { QRGB(145, 44,238),  "purple2" },
-  { QRGB(125, 38,205),  "purple3" },
-  { QRGB( 85, 26,139),  "purple4" },
-  { QRGB(255,  0,  0),  "red" },
-  { QRGB(255,  0,  0),  "red1" },
-  { QRGB(238,  0,  0),  "red2" },
-  { QRGB(205,  0,  0),  "red3" },
-  { QRGB(139,  0,  0),  "red4" },
-  { QRGB(188,143,143),  "rosybrown" },
-  { QRGB(255,193,193),  "rosybrown1" },
-  { QRGB(238,180,180),  "rosybrown2" },
-  { QRGB(205,155,155),  "rosybrown3" },
-  { QRGB(139,105,105),  "rosybrown4" },
-  { QRGB( 65,105,225),  "royalblue" },
-  { QRGB( 72,118,255),  "royalblue1" },
-  { QRGB( 67,110,238),  "royalblue2" },
-  { QRGB( 58, 95,205),  "royalblue3" },
-  { QRGB( 39, 64,139),  "royalblue4" },
-  { QRGB(139, 69, 19),  "saddlebrown" },
-  { QRGB(250,128,114),  "salmon" },
-  { QRGB(255,140,105),  "salmon1" },
-  { QRGB(238,130, 98),  "salmon2" },
-  { QRGB(205,112, 84),  "salmon3" },
-  { QRGB(139, 76, 57),  "salmon4" },
-  { QRGB(244,164, 96),  "sandybrown" },
-  { QRGB( 46,139, 87),  "seagreen" },
-  { QRGB( 84,255,159),  "seagreen1" },
-  { QRGB( 78,238,148),  "seagreen2" },
-  { QRGB( 67,205,128),  "seagreen3" },
-  { QRGB( 46,139, 87),  "seagreen4" },
-  { QRGB(255,245,238),  "seashell" },
-  { QRGB(255,245,238),  "seashell1" },
-  { QRGB(238,229,222),  "seashell2" },
-  { QRGB(205,197,191),  "seashell3" },
-  { QRGB(139,134,130),  "seashell4" },
-  { QRGB(160, 82, 45),  "sienna" },
-  { QRGB(255,130, 71),  "sienna1" },
-  { QRGB(238,121, 66),  "sienna2" },
-  { QRGB(205,104, 57),  "sienna3" },
-  { QRGB(139, 71, 38),  "sienna4" },
-  { QRGB(135,206,235),  "skyblue" },
-  { QRGB(135,206,255),  "skyblue1" },
-  { QRGB(126,192,238),  "skyblue2" },
-  { QRGB(108,166,205),  "skyblue3" },
-  { QRGB( 74,112,139),  "skyblue4" },
-  { QRGB(106, 90,205),  "slateblue" },
-  { QRGB(131,111,255),  "slateblue1" },
-  { QRGB(122,103,238),  "slateblue2" },
-  { QRGB(105, 89,205),  "slateblue3" },
-  { QRGB( 71, 60,139),  "slateblue4" },
-  { QRGB(112,128,144),  "slategray" },
-  { QRGB(198,226,255),  "slategray1" },
-  { QRGB(185,211,238),  "slategray2" },
-  { QRGB(159,182,205),  "slategray3" },
-  { QRGB(108,123,139),  "slategray4" },
-  { QRGB(112,128,144),  "slategrey" },
-  { QRGB(255,250,250),  "snow" },
-  { QRGB(255,250,250),  "snow1" },
-  { QRGB(238,233,233),  "snow2" },
-  { QRGB(205,201,201),  "snow3" },
-  { QRGB(139,137,137),  "snow4" },
-  { QRGB(  0,255,127),  "springgreen" },
-  { QRGB(  0,255,127),  "springgreen1" },
-  { QRGB(  0,238,118),  "springgreen2" },
-  { QRGB(  0,205,102),  "springgreen3" },
-  { QRGB(  0,139, 69),  "springgreen4" },
-  { QRGB( 70,130,180),  "steelblue" },
-  { QRGB( 99,184,255),  "steelblue1" },
-  { QRGB( 92,172,238),  "steelblue2" },
-  { QRGB( 79,148,205),  "steelblue3" },
-  { QRGB( 54,100,139),  "steelblue4" },
-  { QRGB(210,180,140),  "tan" },
-  { QRGB(255,165, 79),  "tan1" },
-  { QRGB(238,154, 73),  "tan2" },
-  { QRGB(205,133, 63),  "tan3" },
-  { QRGB(139, 90, 43),  "tan4" },
-  { QRGB(216,191,216),  "thistle" },
-  { QRGB(255,225,255),  "thistle1" },
-  { QRGB(238,210,238),  "thistle2" },
-  { QRGB(205,181,205),  "thistle3" },
-  { QRGB(139,123,139),  "thistle4" },
-  { QRGB(255, 99, 71),  "tomato" },
-  { QRGB(255, 99, 71),  "tomato1" },
-  { QRGB(238, 92, 66),  "tomato2" },
-  { QRGB(205, 79, 57),  "tomato3" },
-  { QRGB(139, 54, 38),  "tomato4" },
-  { QRGB( 64,224,208),  "turquoise" },
-  { QRGB(  0,245,255),  "turquoise1" },
-  { QRGB(  0,229,238),  "turquoise2" },
-  { QRGB(  0,197,205),  "turquoise3" },
-  { QRGB(  0,134,139),  "turquoise4" },
-  { QRGB(238,130,238),  "violet" },
-  { QRGB(208, 32,144),  "violetred" },
-  { QRGB(255, 62,150),  "violetred1" },
-  { QRGB(238, 58,140),  "violetred2" },
-  { QRGB(205, 50,120),  "violetred3" },
-  { QRGB(139, 34, 82),  "violetred4" },
-  { QRGB(245,222,179),  "wheat" },
-  { QRGB(255,231,186),  "wheat1" },
-  { QRGB(238,216,174),  "wheat2" },
-  { QRGB(205,186,150),  "wheat3" },
-  { QRGB(139,126,102),  "wheat4" },
-  { QRGB(255,255,255),  "white" },
-  { QRGB(245,245,245),  "whitesmoke" },
-  { QRGB(255,255,  0),  "yellow" },
-  { QRGB(255,255,  0),  "yellow1" },
-  { QRGB(238,238,  0),  "yellow2" },
-  { QRGB(205,205,  0),  "yellow3" },
-  { QRGB(139,139,  0),  "yellow4" },
-  { QRGB(154,205, 50),  "yellowgreen" } };
-#undef QRGB
-
-static const qint16 xpmRgbTblSize = sizeof(xpmRgbTbl) / sizeof(XPMRGBData);
-
 // Skip until ", read until the next ", return the rest in *buf
 // Returns false on error, true on success
 static bool read_xpm_string(QByteArray &buf, QIODevice *d, const char * const *source, int &index,
@@ -825,9 +158,9 @@ static bool read_xpm_body(
                 }
                 qt_get_hex_rgb(buf, buf.length(), &c_rgb);
             } else {
-                for (qint16 j = 0; j < xpmRgbTblSize; j++) {
-                    if (qstrcmp(xpmRgbTbl[j].name, buf) == 0) {
-                        c_rgb = xpmRgbTbl[j].value;
+                for (qint16 j = 0; j < X11RGBTblSize; j++) {
+                    if (qstrcmp(X11RGBTbl[j].name, buf) == 0) {
+                        c_rgb = X11RGBTbl[j].value;
                         break;
                     }
                 }
index fe8c075..6cf201a 100644 (file)
@@ -528,9 +528,9 @@ bool QColor::setNamedColor(const QString &name)
     }
 
 #ifndef QT_NO_COLORNAMES
-    for (qint16 i = 0; i < rgbTblSize; i++) {
-        if (qstricmp(rgbTbl[i].name, latin.constData()) == 0) {
-            setRgba(rgbTbl[i].value);
+    for (qint16 i = 0; i < RGBTblSize; i++) {
+        if (qstricmp(RGBTbl[i].name, latin.constData()) == 0) {
+            setRgba(RGBTbl[i].value);
             return true;
         }
     }
@@ -584,8 +584,8 @@ bool QColor::isValidColor(const QString &name)
     }
 
 #ifndef QT_NO_COLORNAMES
-    for (qint16 i = 0; i < rgbTblSize; i++) {
-        if (qstricmp(rgbTbl[i].name, latin.constData()) == 0) {
+    for (qint16 i = 0; i < RGBTblSize; i++) {
+        if (qstricmp(RGBTbl[i].name, latin.constData()) == 0) {
             return true;
         }
     }
@@ -614,8 +614,8 @@ QStringList QColor::colorNames()
 #ifndef QT_NO_COLORNAMES
     static QStringList lst;
     if (lst.isEmpty()) {
-        for (qint16 i = 0; i < rgbTblSize; i++)
-            lst << QString::fromLatin1(rgbTbl[i].name);
+        for (qint16 i = 0; i < RGBTblSize; i++)
+            lst << QString::fromLatin1(RGBTbl[i].name);
     }
     return lst;
 #else
index dd9dd3a..d2df937 100644 (file)
@@ -41,163 +41,824 @@ QT_BEGIN_NAMESPACE
 /*
   CSS color names = SVG 1.0 color names + transparent (rgba(0,0,0,0))
 */
-#define RGBCOLOR(r,g,b) (0xff000000 | (r << 16) |  (g << 8) | b)
 static const struct RGBData {
     const char *name;
-    const uint value;
-} rgbTbl[] = {
-    { "aliceblue", RGBCOLOR(240, 248, 255) },
-    { "antiquewhite", RGBCOLOR(250, 235, 215) },
-    { "aqua", RGBCOLOR( 0, 255, 255) },
-    { "aquamarine", RGBCOLOR(127, 255, 212) },
-    { "azure", RGBCOLOR(240, 255, 255) },
-    { "beige", RGBCOLOR(245, 245, 220) },
-    { "bisque", RGBCOLOR(255, 228, 196) },
-    { "black", RGBCOLOR(0, 0, 0) },
-    { "blanchedalmond", RGBCOLOR(255, 235, 205) },
-    { "blue", RGBCOLOR(0, 0, 255) },
-    { "blueviolet", RGBCOLOR(138, 43, 226) },
-    { "brown", RGBCOLOR(165, 42, 42) },
-    { "burlywood", RGBCOLOR(222, 184, 135) },
-    { "cadetblue", RGBCOLOR( 95, 158, 160) },
-    { "chartreuse", RGBCOLOR(127, 255, 0) },
-    { "chocolate", RGBCOLOR(210, 105, 30) },
-    { "coral", RGBCOLOR(255, 127, 80) },
-    { "cornflowerblue", RGBCOLOR(100, 149, 237) },
-    { "cornsilk", RGBCOLOR(255, 248, 220) },
-    { "crimson", RGBCOLOR(220, 20, 60) },
-    { "cyan", RGBCOLOR(0, 255, 255) },
-    { "darkblue", RGBCOLOR(0, 0, 139) },
-    { "darkcyan", RGBCOLOR(0, 139, 139) },
-    { "darkgoldenrod", RGBCOLOR(184, 134, 11) },
-    { "darkgray", RGBCOLOR(169, 169, 169) },
-    { "darkgreen", RGBCOLOR(0, 100, 0) },
-    { "darkgrey", RGBCOLOR(169, 169, 169) },
-    { "darkkhaki", RGBCOLOR(189, 183, 107) },
-    { "darkmagenta", RGBCOLOR(139, 0, 139) },
-    { "darkolivegreen", RGBCOLOR( 85, 107, 47) },
-    { "darkorange", RGBCOLOR(255, 140, 0) },
-    { "darkorchid", RGBCOLOR(153, 50, 204) },
-    { "darkred", RGBCOLOR(139, 0, 0) },
-    { "darksalmon", RGBCOLOR(233, 150, 122) },
-    { "darkseagreen", RGBCOLOR(143, 188, 143) },
-    { "darkslateblue", RGBCOLOR(72, 61, 139) },
-    { "darkslategray", RGBCOLOR(47, 79, 79) },
-    { "darkslategrey", RGBCOLOR(47, 79, 79) },
-    { "darkturquoise", RGBCOLOR(0, 206, 209) },
-    { "darkviolet", RGBCOLOR(148, 0, 211) },
-    { "deeppink", RGBCOLOR(255, 20, 147) },
-    { "deepskyblue", RGBCOLOR( 0, 191, 255) },
-    { "dimgray", RGBCOLOR(105, 105, 105) },
-    { "dimgrey", RGBCOLOR(105, 105, 105) },
-    { "dodgerblue", RGBCOLOR( 30, 144, 255) },
-    { "firebrick", RGBCOLOR(178, 34, 34) },
-    { "floralwhite", RGBCOLOR(255, 250, 240) },
-    { "forestgreen", RGBCOLOR(34, 139, 34) },
-    { "fuchsia", RGBCOLOR(255, 0, 255) },
-    { "gainsboro", RGBCOLOR(220, 220, 220) },
-    { "ghostwhite", RGBCOLOR(248, 248, 255) },
-    { "gold", RGBCOLOR(255, 215, 0) },
-    { "goldenrod", RGBCOLOR(218, 165, 32) },
-    { "gray", RGBCOLOR(128, 128, 128) },
-    { "green", RGBCOLOR(0, 128, 0) },
-    { "greenyellow", RGBCOLOR(173, 255, 47) },
-    { "grey", RGBCOLOR(128, 128, 128) },
-    { "honeydew", RGBCOLOR(240, 255, 240) },
-    { "hotpink", RGBCOLOR(255, 105, 180) },
-    { "indianred", RGBCOLOR(205, 92, 92) },
-    { "indigo", RGBCOLOR(75, 0, 130) },
-    { "ivory", RGBCOLOR(255, 255, 240) },
-    { "khaki", RGBCOLOR(240, 230, 140) },
-    { "lavender", RGBCOLOR(230, 230, 250) },
-    { "lavenderblush", RGBCOLOR(255, 240, 245) },
-    { "lawngreen", RGBCOLOR(124, 252, 0) },
-    { "lemonchiffon", RGBCOLOR(255, 250, 205) },
-    { "lightblue", RGBCOLOR(173, 216, 230) },
-    { "lightcoral", RGBCOLOR(240, 128, 128) },
-    { "lightcyan", RGBCOLOR(224, 255, 255) },
-    { "lightgoldenrodyellow", RGBCOLOR(250, 250, 210) },
-    { "lightgray", RGBCOLOR(211, 211, 211) },
-    { "lightgreen", RGBCOLOR(144, 238, 144) },
-    { "lightgrey", RGBCOLOR(211, 211, 211) },
-    { "lightpink", RGBCOLOR(255, 182, 193) },
-    { "lightsalmon", RGBCOLOR(255, 160, 122) },
-    { "lightseagreen", RGBCOLOR( 32, 178, 170) },
-    { "lightskyblue", RGBCOLOR(135, 206, 250) },
-    { "lightslategray", RGBCOLOR(119, 136, 153) },
-    { "lightslategrey", RGBCOLOR(119, 136, 153) },
-    { "lightsteelblue", RGBCOLOR(176, 196, 222) },
-    { "lightyellow", RGBCOLOR(255, 255, 224) },
-    { "lime", RGBCOLOR(0, 255, 0) },
-    { "limegreen", RGBCOLOR(50, 205, 50) },
-    { "linen", RGBCOLOR(250, 240, 230) },
-    { "magenta", RGBCOLOR(255, 0, 255) },
-    { "maroon", RGBCOLOR(128, 0, 0) },
-    { "mediumaquamarine", RGBCOLOR(102, 205, 170) },
-    { "mediumblue", RGBCOLOR(0, 0, 205) },
-    { "mediumorchid", RGBCOLOR(186, 85, 211) },
-    { "mediumpurple", RGBCOLOR(147, 112, 219) },
-    { "mediumseagreen", RGBCOLOR( 60, 179, 113) },
-    { "mediumslateblue", RGBCOLOR(123, 104, 238) },
-    { "mediumspringgreen", RGBCOLOR(0, 250, 154) },
-    { "mediumturquoise", RGBCOLOR(72, 209, 204) },
-    { "mediumvioletred", RGBCOLOR(199, 21, 133) },
-    { "midnightblue", RGBCOLOR(25, 25, 112) },
-    { "mintcream", RGBCOLOR(245, 255, 250) },
-    { "mistyrose", RGBCOLOR(255, 228, 225) },
-    { "moccasin", RGBCOLOR(255, 228, 181) },
-    { "navajowhite", RGBCOLOR(255, 222, 173) },
-    { "navy", RGBCOLOR(0, 0, 128) },
-    { "oldlace", RGBCOLOR(253, 245, 230) },
-    { "olive", RGBCOLOR(128, 128, 0) },
-    { "olivedrab", RGBCOLOR(107, 142, 35) },
-    { "orange", RGBCOLOR(255, 165, 0) },
-    { "orangered", RGBCOLOR(255, 69, 0) },
-    { "orchid", RGBCOLOR(218, 112, 214) },
-    { "palegoldenrod", RGBCOLOR(238, 232, 170) },
-    { "palegreen", RGBCOLOR(152, 251, 152) },
-    { "paleturquoise", RGBCOLOR(175, 238, 238) },
-    { "palevioletred", RGBCOLOR(219, 112, 147) },
-    { "papayawhip", RGBCOLOR(255, 239, 213) },
-    { "peachpuff", RGBCOLOR(255, 218, 185) },
-    { "peru", RGBCOLOR(205, 133, 63) },
-    { "pink", RGBCOLOR(255, 192, 203) },
-    { "plum", RGBCOLOR(221, 160, 221) },
-    { "powderblue", RGBCOLOR(176, 224, 230) },
-    { "purple", RGBCOLOR(128, 0, 128) },
-    { "red", RGBCOLOR(255, 0, 0) },
-    { "rosybrown", RGBCOLOR(188, 143, 143) },
-    { "royalblue", RGBCOLOR(65, 105, 225) },
-    { "saddlebrown", RGBCOLOR(139, 69, 19) },
-    { "salmon", RGBCOLOR(250, 128, 114) },
-    { "sandybrown", RGBCOLOR(244, 164, 96) },
-    { "seagreen", RGBCOLOR(46, 139, 87) },
-    { "seashell", RGBCOLOR(255, 245, 238) },
-    { "sienna", RGBCOLOR(160, 82, 45) },
-    { "silver", RGBCOLOR(192, 192, 192) },
-    { "skyblue", RGBCOLOR(135, 206, 235) },
-    { "slateblue", RGBCOLOR(106, 90, 205) },
-    { "slategray", RGBCOLOR(112, 128, 144) },
-    { "slategrey", RGBCOLOR(112, 128, 144) },
-    { "snow", RGBCOLOR(255, 250, 250) },
-    { "springgreen", RGBCOLOR( 0, 255, 127) },
-    { "steelblue", RGBCOLOR(70, 130, 180) },
-    { "tan", RGBCOLOR(210, 180, 140) },
-    { "teal", RGBCOLOR(0, 128, 128) },
-    { "thistle", RGBCOLOR(216, 191, 216) },
-    { "tomato", RGBCOLOR(255, 99, 71) },
+    const QRgb value;
+} RGBTbl[] = {
+    { "aliceblue", qRgb(240, 248, 255) },
+    { "antiquewhite", qRgb(250, 235, 215) },
+    { "aqua", qRgb( 0, 255, 255) },
+    { "aquamarine", qRgb(127, 255, 212) },
+    { "azure", qRgb(240, 255, 255) },
+    { "beige", qRgb(245, 245, 220) },
+    { "bisque", qRgb(255, 228, 196) },
+    { "black", qRgb(0, 0, 0) },
+    { "blanchedalmond", qRgb(255, 235, 205) },
+    { "blue", qRgb(0, 0, 255) },
+    { "blueviolet", qRgb(138, 43, 226) },
+    { "brown", qRgb(165, 42, 42) },
+    { "burlywood", qRgb(222, 184, 135) },
+    { "cadetblue", qRgb( 95, 158, 160) },
+    { "chartreuse", qRgb(127, 255, 0) },
+    { "chocolate", qRgb(210, 105, 30) },
+    { "coral", qRgb(255, 127, 80) },
+    { "cornflowerblue", qRgb(100, 149, 237) },
+    { "cornsilk", qRgb(255, 248, 220) },
+    { "crimson", qRgb(220, 20, 60) },
+    { "cyan", qRgb(0, 255, 255) },
+    { "darkblue", qRgb(0, 0, 139) },
+    { "darkcyan", qRgb(0, 139, 139) },
+    { "darkgoldenrod", qRgb(184, 134, 11) },
+    { "darkgray", qRgb(169, 169, 169) },
+    { "darkgreen", qRgb(0, 100, 0) },
+    { "darkgrey", qRgb(169, 169, 169) },
+    { "darkkhaki", qRgb(189, 183, 107) },
+    { "darkmagenta", qRgb(139, 0, 139) },
+    { "darkolivegreen", qRgb( 85, 107, 47) },
+    { "darkorange", qRgb(255, 140, 0) },
+    { "darkorchid", qRgb(153, 50, 204) },
+    { "darkred", qRgb(139, 0, 0) },
+    { "darksalmon", qRgb(233, 150, 122) },
+    { "darkseagreen", qRgb(143, 188, 143) },
+    { "darkslateblue", qRgb(72, 61, 139) },
+    { "darkslategray", qRgb(47, 79, 79) },
+    { "darkslategrey", qRgb(47, 79, 79) },
+    { "darkturquoise", qRgb(0, 206, 209) },
+    { "darkviolet", qRgb(148, 0, 211) },
+    { "deeppink", qRgb(255, 20, 147) },
+    { "deepskyblue", qRgb( 0, 191, 255) },
+    { "dimgray", qRgb(105, 105, 105) },
+    { "dimgrey", qRgb(105, 105, 105) },
+    { "dodgerblue", qRgb( 30, 144, 255) },
+    { "firebrick", qRgb(178, 34, 34) },
+    { "floralwhite", qRgb(255, 250, 240) },
+    { "forestgreen", qRgb(34, 139, 34) },
+    { "fuchsia", qRgb(255, 0, 255) },
+    { "gainsboro", qRgb(220, 220, 220) },
+    { "ghostwhite", qRgb(248, 248, 255) },
+    { "gold", qRgb(255, 215, 0) },
+    { "goldenrod", qRgb(218, 165, 32) },
+    { "gray", qRgb(128, 128, 128) },
+    { "green", qRgb(0, 128, 0) },
+    { "greenyellow", qRgb(173, 255, 47) },
+    { "grey", qRgb(128, 128, 128) },
+    { "honeydew", qRgb(240, 255, 240) },
+    { "hotpink", qRgb(255, 105, 180) },
+    { "indianred", qRgb(205, 92, 92) },
+    { "indigo", qRgb(75, 0, 130) },
+    { "ivory", qRgb(255, 255, 240) },
+    { "khaki", qRgb(240, 230, 140) },
+    { "lavender", qRgb(230, 230, 250) },
+    { "lavenderblush", qRgb(255, 240, 245) },
+    { "lawngreen", qRgb(124, 252, 0) },
+    { "lemonchiffon", qRgb(255, 250, 205) },
+    { "lightblue", qRgb(173, 216, 230) },
+    { "lightcoral", qRgb(240, 128, 128) },
+    { "lightcyan", qRgb(224, 255, 255) },
+    { "lightgoldenrodyellow", qRgb(250, 250, 210) },
+    { "lightgray", qRgb(211, 211, 211) },
+    { "lightgreen", qRgb(144, 238, 144) },
+    { "lightgrey", qRgb(211, 211, 211) },
+    { "lightpink", qRgb(255, 182, 193) },
+    { "lightsalmon", qRgb(255, 160, 122) },
+    { "lightseagreen", qRgb( 32, 178, 170) },
+    { "lightskyblue", qRgb(135, 206, 250) },
+    { "lightslategray", qRgb(119, 136, 153) },
+    { "lightslategrey", qRgb(119, 136, 153) },
+    { "lightsteelblue", qRgb(176, 196, 222) },
+    { "lightyellow", qRgb(255, 255, 224) },
+    { "lime", qRgb(0, 255, 0) },
+    { "limegreen", qRgb(50, 205, 50) },
+    { "linen", qRgb(250, 240, 230) },
+    { "magenta", qRgb(255, 0, 255) },
+    { "maroon", qRgb(128, 0, 0) },
+    { "mediumaquamarine", qRgb(102, 205, 170) },
+    { "mediumblue", qRgb(0, 0, 205) },
+    { "mediumorchid", qRgb(186, 85, 211) },
+    { "mediumpurple", qRgb(147, 112, 219) },
+    { "mediumseagreen", qRgb( 60, 179, 113) },
+    { "mediumslateblue", qRgb(123, 104, 238) },
+    { "mediumspringgreen", qRgb(0, 250, 154) },
+    { "mediumturquoise", qRgb(72, 209, 204) },
+    { "mediumvioletred", qRgb(199, 21, 133) },
+    { "midnightblue", qRgb(25, 25, 112) },
+    { "mintcream", qRgb(245, 255, 250) },
+    { "mistyrose", qRgb(255, 228, 225) },
+    { "moccasin", qRgb(255, 228, 181) },
+    { "navajowhite", qRgb(255, 222, 173) },
+    { "navy", qRgb(0, 0, 128) },
+    { "oldlace", qRgb(253, 245, 230) },
+    { "olive", qRgb(128, 128, 0) },
+    { "olivedrab", qRgb(107, 142, 35) },
+    { "orange", qRgb(255, 165, 0) },
+    { "orangered", qRgb(255, 69, 0) },
+    { "orchid", qRgb(218, 112, 214) },
+    { "palegoldenrod", qRgb(238, 232, 170) },
+    { "palegreen", qRgb(152, 251, 152) },
+    { "paleturquoise", qRgb(175, 238, 238) },
+    { "palevioletred", qRgb(219, 112, 147) },
+    { "papayawhip", qRgb(255, 239, 213) },
+    { "peachpuff", qRgb(255, 218, 185) },
+    { "peru", qRgb(205, 133, 63) },
+    { "pink", qRgb(255, 192, 203) },
+    { "plum", qRgb(221, 160, 221) },
+    { "powderblue", qRgb(176, 224, 230) },
+    { "purple", qRgb(128, 0, 128) },
+    { "red", qRgb(255, 0, 0) },
+    { "rosybrown", qRgb(188, 143, 143) },
+    { "royalblue", qRgb(65, 105, 225) },
+    { "saddlebrown", qRgb(139, 69, 19) },
+    { "salmon", qRgb(250, 128, 114) },
+    { "sandybrown", qRgb(244, 164, 96) },
+    { "seagreen", qRgb(46, 139, 87) },
+    { "seashell", qRgb(255, 245, 238) },
+    { "sienna", qRgb(160, 82, 45) },
+    { "silver", qRgb(192, 192, 192) },
+    { "skyblue", qRgb(135, 206, 235) },
+    { "slateblue", qRgb(106, 90, 205) },
+    { "slategray", qRgb(112, 128, 144) },
+    { "slategrey", qRgb(112, 128, 144) },
+    { "snow", qRgb(255, 250, 250) },
+    { "springgreen", qRgb( 0, 255, 127) },
+    { "steelblue", qRgb(70, 130, 180) },
+    { "tan", qRgb(210, 180, 140) },
+    { "teal", qRgb(0, 128, 128) },
+    { "thistle", qRgb(216, 191, 216) },
+    { "tomato", qRgb(255, 99, 71) },
     { "transparent", 0 },
-    { "turquoise", RGBCOLOR(64, 224, 208) },
-    { "violet", RGBCOLOR(238, 130, 238) },
-    { "wheat", RGBCOLOR(245, 222, 179) },
-    { "white", RGBCOLOR(255, 255, 255) },
-    { "whitesmoke", RGBCOLOR(245, 245, 245) },
-    { "yellow", RGBCOLOR(255, 255, 0) },
-    { "yellowgreen", RGBCOLOR(154, 205, 50) }
+    { "turquoise", qRgb(64, 224, 208) },
+    { "violet", qRgb(238, 130, 238) },
+    { "wheat", qRgb(245, 222, 179) },
+    { "white", qRgb(255, 255, 255) },
+    { "whitesmoke", qRgb(245, 245, 245) },
+    { "yellow", qRgb(255, 255, 0) },
+    { "yellowgreen", qRgb(154, 205, 50) }
 };
-#undef RGBCOLOR
+static const qint16 RGBTblSize = sizeof(RGBTbl) / sizeof(RGBData);
+
+static const struct X11RGBTblData {
+    const QRgb value;
+    const char *name;
+} X11RGBTbl[] = {
+  { qRgb(240,248,255),  "aliceblue" },
+  { qRgb(250,235,215),  "antiquewhite" },
+  { qRgb(255,239,219),  "antiquewhite1" },
+  { qRgb(238,223,204),  "antiquewhite2" },
+  { qRgb(205,192,176),  "antiquewhite3" },
+  { qRgb(139,131,120),  "antiquewhite4" },
+  { qRgb(127,255,212),  "aquamarine" },
+  { qRgb(127,255,212),  "aquamarine1" },
+  { qRgb(118,238,198),  "aquamarine2" },
+  { qRgb(102,205,170),  "aquamarine3" },
+  { qRgb( 69,139,116),  "aquamarine4" },
+  { qRgb(240,255,255),  "azure" },
+  { qRgb(240,255,255),  "azure1" },
+  { qRgb(224,238,238),  "azure2" },
+  { qRgb(193,205,205),  "azure3" },
+  { qRgb(131,139,139),  "azure4" },
+  { qRgb(245,245,220),  "beige" },
+  { qRgb(255,228,196),  "bisque" },
+  { qRgb(255,228,196),  "bisque1" },
+  { qRgb(238,213,183),  "bisque2" },
+  { qRgb(205,183,158),  "bisque3" },
+  { qRgb(139,125,107),  "bisque4" },
+  { qRgb(  0,  0,  0),  "black" },
+  { qRgb(255,235,205),  "blanchedalmond" },
+  { qRgb(  0,  0,255),  "blue" },
+  { qRgb(  0,  0,255),  "blue1" },
+  { qRgb(  0,  0,238),  "blue2" },
+  { qRgb(  0,  0,205),  "blue3" },
+  { qRgb(  0,  0,139),  "blue4" },
+  { qRgb(138, 43,226),  "blueviolet" },
+  { qRgb(165, 42, 42),  "brown" },
+  { qRgb(255, 64, 64),  "brown1" },
+  { qRgb(238, 59, 59),  "brown2" },
+  { qRgb(205, 51, 51),  "brown3" },
+  { qRgb(139, 35, 35),  "brown4" },
+  { qRgb(222,184,135),  "burlywood" },
+  { qRgb(255,211,155),  "burlywood1" },
+  { qRgb(238,197,145),  "burlywood2" },
+  { qRgb(205,170,125),  "burlywood3" },
+  { qRgb(139,115, 85),  "burlywood4" },
+  { qRgb( 95,158,160),  "cadetblue" },
+  { qRgb(152,245,255),  "cadetblue1" },
+  { qRgb(142,229,238),  "cadetblue2" },
+  { qRgb(122,197,205),  "cadetblue3" },
+  { qRgb( 83,134,139),  "cadetblue4" },
+  { qRgb(127,255,  0),  "chartreuse" },
+  { qRgb(127,255,  0),  "chartreuse1" },
+  { qRgb(118,238,  0),  "chartreuse2" },
+  { qRgb(102,205,  0),  "chartreuse3" },
+  { qRgb( 69,139,  0),  "chartreuse4" },
+  { qRgb(210,105, 30),  "chocolate" },
+  { qRgb(255,127, 36),  "chocolate1" },
+  { qRgb(238,118, 33),  "chocolate2" },
+  { qRgb(205,102, 29),  "chocolate3" },
+  { qRgb(139, 69, 19),  "chocolate4" },
+  { qRgb(255,127, 80),  "coral" },
+  { qRgb(255,114, 86),  "coral1" },
+  { qRgb(238,106, 80),  "coral2" },
+  { qRgb(205, 91, 69),  "coral3" },
+  { qRgb(139, 62, 47),  "coral4" },
+  { qRgb(100,149,237),  "cornflowerblue" },
+  { qRgb(255,248,220),  "cornsilk" },
+  { qRgb(255,248,220),  "cornsilk1" },
+  { qRgb(238,232,205),  "cornsilk2" },
+  { qRgb(205,200,177),  "cornsilk3" },
+  { qRgb(139,136,120),  "cornsilk4" },
+  { qRgb(  0,255,255),  "cyan" },
+  { qRgb(  0,255,255),  "cyan1" },
+  { qRgb(  0,238,238),  "cyan2" },
+  { qRgb(  0,205,205),  "cyan3" },
+  { qRgb(  0,139,139),  "cyan4" },
+  { qRgb(  0,  0,139),  "darkblue" },
+  { qRgb(  0,139,139),  "darkcyan" },
+  { qRgb(184,134, 11),  "darkgoldenrod" },
+  { qRgb(255,185, 15),  "darkgoldenrod1" },
+  { qRgb(238,173, 14),  "darkgoldenrod2" },
+  { qRgb(205,149, 12),  "darkgoldenrod3" },
+  { qRgb(139,101,  8),  "darkgoldenrod4" },
+  { qRgb(169,169,169),  "darkgray" },
+  { qRgb(  0,100,  0),  "darkgreen" },
+  { qRgb(169,169,169),  "darkgrey" },
+  { qRgb(189,183,107),  "darkkhaki" },
+  { qRgb(139,  0,139),  "darkmagenta" },
+  { qRgb( 85,107, 47),  "darkolivegreen" },
+  { qRgb(202,255,112),  "darkolivegreen1" },
+  { qRgb(188,238,104),  "darkolivegreen2" },
+  { qRgb(162,205, 90),  "darkolivegreen3" },
+  { qRgb(110,139, 61),  "darkolivegreen4" },
+  { qRgb(255,140,  0),  "darkorange" },
+  { qRgb(255,127,  0),  "darkorange1" },
+  { qRgb(238,118,  0),  "darkorange2" },
+  { qRgb(205,102,  0),  "darkorange3" },
+  { qRgb(139, 69,  0),  "darkorange4" },
+  { qRgb(153, 50,204),  "darkorchid" },
+  { qRgb(191, 62,255),  "darkorchid1" },
+  { qRgb(178, 58,238),  "darkorchid2" },
+  { qRgb(154, 50,205),  "darkorchid3" },
+  { qRgb(104, 34,139),  "darkorchid4" },
+  { qRgb(139,  0,  0),  "darkred" },
+  { qRgb(233,150,122),  "darksalmon" },
+  { qRgb(143,188,143),  "darkseagreen" },
+  { qRgb(193,255,193),  "darkseagreen1" },
+  { qRgb(180,238,180),  "darkseagreen2" },
+  { qRgb(155,205,155),  "darkseagreen3" },
+  { qRgb(105,139,105),  "darkseagreen4" },
+  { qRgb( 72, 61,139),  "darkslateblue" },
+  { qRgb( 47, 79, 79),  "darkslategray" },
+  { qRgb(151,255,255),  "darkslategray1" },
+  { qRgb(141,238,238),  "darkslategray2" },
+  { qRgb(121,205,205),  "darkslategray3" },
+  { qRgb( 82,139,139),  "darkslategray4" },
+  { qRgb( 47, 79, 79),  "darkslategrey" },
+  { qRgb(  0,206,209),  "darkturquoise" },
+  { qRgb(148,  0,211),  "darkviolet" },
+  { qRgb(255, 20,147),  "deeppink" },
+  { qRgb(255, 20,147),  "deeppink1" },
+  { qRgb(238, 18,137),  "deeppink2" },
+  { qRgb(205, 16,118),  "deeppink3" },
+  { qRgb(139, 10, 80),  "deeppink4" },
+  { qRgb(  0,191,255),  "deepskyblue" },
+  { qRgb(  0,191,255),  "deepskyblue1" },
+  { qRgb(  0,178,238),  "deepskyblue2" },
+  { qRgb(  0,154,205),  "deepskyblue3" },
+  { qRgb(  0,104,139),  "deepskyblue4" },
+  { qRgb(105,105,105),  "dimgray" },
+  { qRgb(105,105,105),  "dimgrey" },
+  { qRgb( 30,144,255),  "dodgerblue" },
+  { qRgb( 30,144,255),  "dodgerblue1" },
+  { qRgb( 28,134,238),  "dodgerblue2" },
+  { qRgb( 24,116,205),  "dodgerblue3" },
+  { qRgb( 16, 78,139),  "dodgerblue4" },
+  { qRgb(178, 34, 34),  "firebrick" },
+  { qRgb(255, 48, 48),  "firebrick1" },
+  { qRgb(238, 44, 44),  "firebrick2" },
+  { qRgb(205, 38, 38),  "firebrick3" },
+  { qRgb(139, 26, 26),  "firebrick4" },
+  { qRgb(255,250,240),  "floralwhite" },
+  { qRgb( 34,139, 34),  "forestgreen" },
+  { qRgb(220,220,220),  "gainsboro" },
+  { qRgb(248,248,255),  "ghostwhite" },
+  { qRgb(255,215,  0),  "gold" },
+  { qRgb(255,215,  0),  "gold1" },
+  { qRgb(238,201,  0),  "gold2" },
+  { qRgb(205,173,  0),  "gold3" },
+  { qRgb(139,117,  0),  "gold4" },
+  { qRgb(218,165, 32),  "goldenrod" },
+  { qRgb(255,193, 37),  "goldenrod1" },
+  { qRgb(238,180, 34),  "goldenrod2" },
+  { qRgb(205,155, 29),  "goldenrod3" },
+  { qRgb(139,105, 20),  "goldenrod4" },
+  { qRgb(190,190,190),  "gray" },
+  { qRgb(  0,  0,  0),  "gray0" },
+  { qRgb(  3,  3,  3),  "gray1" },
+  { qRgb( 26, 26, 26),  "gray10" },
+  { qRgb(255,255,255),  "gray100" },
+  { qRgb( 28, 28, 28),  "gray11" },
+  { qRgb( 31, 31, 31),  "gray12" },
+  { qRgb( 33, 33, 33),  "gray13" },
+  { qRgb( 36, 36, 36),  "gray14" },
+  { qRgb( 38, 38, 38),  "gray15" },
+  { qRgb( 41, 41, 41),  "gray16" },
+  { qRgb( 43, 43, 43),  "gray17" },
+  { qRgb( 46, 46, 46),  "gray18" },
+  { qRgb( 48, 48, 48),  "gray19" },
+  { qRgb(  5,  5,  5),  "gray2" },
+  { qRgb( 51, 51, 51),  "gray20" },
+  { qRgb( 54, 54, 54),  "gray21" },
+  { qRgb( 56, 56, 56),  "gray22" },
+  { qRgb( 59, 59, 59),  "gray23" },
+  { qRgb( 61, 61, 61),  "gray24" },
+  { qRgb( 64, 64, 64),  "gray25" },
+  { qRgb( 66, 66, 66),  "gray26" },
+  { qRgb( 69, 69, 69),  "gray27" },
+  { qRgb( 71, 71, 71),  "gray28" },
+  { qRgb( 74, 74, 74),  "gray29" },
+  { qRgb(  8,  8,  8),  "gray3" },
+  { qRgb( 77, 77, 77),  "gray30" },
+  { qRgb( 79, 79, 79),  "gray31" },
+  { qRgb( 82, 82, 82),  "gray32" },
+  { qRgb( 84, 84, 84),  "gray33" },
+  { qRgb( 87, 87, 87),  "gray34" },
+  { qRgb( 89, 89, 89),  "gray35" },
+  { qRgb( 92, 92, 92),  "gray36" },
+  { qRgb( 94, 94, 94),  "gray37" },
+  { qRgb( 97, 97, 97),  "gray38" },
+  { qRgb( 99, 99, 99),  "gray39" },
+  { qRgb( 10, 10, 10),  "gray4" },
+  { qRgb(102,102,102),  "gray40" },
+  { qRgb(105,105,105),  "gray41" },
+  { qRgb(107,107,107),  "gray42" },
+  { qRgb(110,110,110),  "gray43" },
+  { qRgb(112,112,112),  "gray44" },
+  { qRgb(115,115,115),  "gray45" },
+  { qRgb(117,117,117),  "gray46" },
+  { qRgb(120,120,120),  "gray47" },
+  { qRgb(122,122,122),  "gray48" },
+  { qRgb(125,125,125),  "gray49" },
+  { qRgb( 13, 13, 13),  "gray5" },
+  { qRgb(127,127,127),  "gray50" },
+  { qRgb(130,130,130),  "gray51" },
+  { qRgb(133,133,133),  "gray52" },
+  { qRgb(135,135,135),  "gray53" },
+  { qRgb(138,138,138),  "gray54" },
+  { qRgb(140,140,140),  "gray55" },
+  { qRgb(143,143,143),  "gray56" },
+  { qRgb(145,145,145),  "gray57" },
+  { qRgb(148,148,148),  "gray58" },
+  { qRgb(150,150,150),  "gray59" },
+  { qRgb( 15, 15, 15),  "gray6" },
+  { qRgb(153,153,153),  "gray60" },
+  { qRgb(156,156,156),  "gray61" },
+  { qRgb(158,158,158),  "gray62" },
+  { qRgb(161,161,161),  "gray63" },
+  { qRgb(163,163,163),  "gray64" },
+  { qRgb(166,166,166),  "gray65" },
+  { qRgb(168,168,168),  "gray66" },
+  { qRgb(171,171,171),  "gray67" },
+  { qRgb(173,173,173),  "gray68" },
+  { qRgb(176,176,176),  "gray69" },
+  { qRgb( 18, 18, 18),  "gray7" },
+  { qRgb(179,179,179),  "gray70" },
+  { qRgb(181,181,181),  "gray71" },
+  { qRgb(184,184,184),  "gray72" },
+  { qRgb(186,186,186),  "gray73" },
+  { qRgb(189,189,189),  "gray74" },
+  { qRgb(191,191,191),  "gray75" },
+  { qRgb(194,194,194),  "gray76" },
+  { qRgb(196,196,196),  "gray77" },
+  { qRgb(199,199,199),  "gray78" },
+  { qRgb(201,201,201),  "gray79" },
+  { qRgb( 20, 20, 20),  "gray8" },
+  { qRgb(204,204,204),  "gray80" },
+  { qRgb(207,207,207),  "gray81" },
+  { qRgb(209,209,209),  "gray82" },
+  { qRgb(212,212,212),  "gray83" },
+  { qRgb(214,214,214),  "gray84" },
+  { qRgb(217,217,217),  "gray85" },
+  { qRgb(219,219,219),  "gray86" },
+  { qRgb(222,222,222),  "gray87" },
+  { qRgb(224,224,224),  "gray88" },
+  { qRgb(227,227,227),  "gray89" },
+  { qRgb( 23, 23, 23),  "gray9" },
+  { qRgb(229,229,229),  "gray90" },
+  { qRgb(232,232,232),  "gray91" },
+  { qRgb(235,235,235),  "gray92" },
+  { qRgb(237,237,237),  "gray93" },
+  { qRgb(240,240,240),  "gray94" },
+  { qRgb(242,242,242),  "gray95" },
+  { qRgb(245,245,245),  "gray96" },
+  { qRgb(247,247,247),  "gray97" },
+  { qRgb(250,250,250),  "gray98" },
+  { qRgb(252,252,252),  "gray99" },
+  { qRgb(  0,255,  0),  "green" },
+  { qRgb(  0,255,  0),  "green1" },
+  { qRgb(  0,238,  0),  "green2" },
+  { qRgb(  0,205,  0),  "green3" },
+  { qRgb(  0,139,  0),  "green4" },
+  { qRgb(173,255, 47),  "greenyellow" },
+  { qRgb(190,190,190),  "grey" },
+  { qRgb(  0,  0,  0),  "grey0" },
+  { qRgb(  3,  3,  3),  "grey1" },
+  { qRgb( 26, 26, 26),  "grey10" },
+  { qRgb(255,255,255),  "grey100" },
+  { qRgb( 28, 28, 28),  "grey11" },
+  { qRgb( 31, 31, 31),  "grey12" },
+  { qRgb( 33, 33, 33),  "grey13" },
+  { qRgb( 36, 36, 36),  "grey14" },
+  { qRgb( 38, 38, 38),  "grey15" },
+  { qRgb( 41, 41, 41),  "grey16" },
+  { qRgb( 43, 43, 43),  "grey17" },
+  { qRgb( 46, 46, 46),  "grey18" },
+  { qRgb( 48, 48, 48),  "grey19" },
+  { qRgb(  5,  5,  5),  "grey2" },
+  { qRgb( 51, 51, 51),  "grey20" },
+  { qRgb( 54, 54, 54),  "grey21" },
+  { qRgb( 56, 56, 56),  "grey22" },
+  { qRgb( 59, 59, 59),  "grey23" },
+  { qRgb( 61, 61, 61),  "grey24" },
+  { qRgb( 64, 64, 64),  "grey25" },
+  { qRgb( 66, 66, 66),  "grey26" },
+  { qRgb( 69, 69, 69),  "grey27" },
+  { qRgb( 71, 71, 71),  "grey28" },
+  { qRgb( 74, 74, 74),  "grey29" },
+  { qRgb(  8,  8,  8),  "grey3" },
+  { qRgb( 77, 77, 77),  "grey30" },
+  { qRgb( 79, 79, 79),  "grey31" },
+  { qRgb( 82, 82, 82),  "grey32" },
+  { qRgb( 84, 84, 84),  "grey33" },
+  { qRgb( 87, 87, 87),  "grey34" },
+  { qRgb( 89, 89, 89),  "grey35" },
+  { qRgb( 92, 92, 92),  "grey36" },
+  { qRgb( 94, 94, 94),  "grey37" },
+  { qRgb( 97, 97, 97),  "grey38" },
+  { qRgb( 99, 99, 99),  "grey39" },
+  { qRgb( 10, 10, 10),  "grey4" },
+  { qRgb(102,102,102),  "grey40" },
+  { qRgb(105,105,105),  "grey41" },
+  { qRgb(107,107,107),  "grey42" },
+  { qRgb(110,110,110),  "grey43" },
+  { qRgb(112,112,112),  "grey44" },
+  { qRgb(115,115,115),  "grey45" },
+  { qRgb(117,117,117),  "grey46" },
+  { qRgb(120,120,120),  "grey47" },
+  { qRgb(122,122,122),  "grey48" },
+  { qRgb(125,125,125),  "grey49" },
+  { qRgb( 13, 13, 13),  "grey5" },
+  { qRgb(127,127,127),  "grey50" },
+  { qRgb(130,130,130),  "grey51" },
+  { qRgb(133,133,133),  "grey52" },
+  { qRgb(135,135,135),  "grey53" },
+  { qRgb(138,138,138),  "grey54" },
+  { qRgb(140,140,140),  "grey55" },
+  { qRgb(143,143,143),  "grey56" },
+  { qRgb(145,145,145),  "grey57" },
+  { qRgb(148,148,148),  "grey58" },
+  { qRgb(150,150,150),  "grey59" },
+  { qRgb( 15, 15, 15),  "grey6" },
+  { qRgb(153,153,153),  "grey60" },
+  { qRgb(156,156,156),  "grey61" },
+  { qRgb(158,158,158),  "grey62" },
+  { qRgb(161,161,161),  "grey63" },
+  { qRgb(163,163,163),  "grey64" },
+  { qRgb(166,166,166),  "grey65" },
+  { qRgb(168,168,168),  "grey66" },
+  { qRgb(171,171,171),  "grey67" },
+  { qRgb(173,173,173),  "grey68" },
+  { qRgb(176,176,176),  "grey69" },
+  { qRgb( 18, 18, 18),  "grey7" },
+  { qRgb(179,179,179),  "grey70" },
+  { qRgb(181,181,181),  "grey71" },
+  { qRgb(184,184,184),  "grey72" },
+  { qRgb(186,186,186),  "grey73" },
+  { qRgb(189,189,189),  "grey74" },
+  { qRgb(191,191,191),  "grey75" },
+  { qRgb(194,194,194),  "grey76" },
+  { qRgb(196,196,196),  "grey77" },
+  { qRgb(199,199,199),  "grey78" },
+  { qRgb(201,201,201),  "grey79" },
+  { qRgb( 20, 20, 20),  "grey8" },
+  { qRgb(204,204,204),  "grey80" },
+  { qRgb(207,207,207),  "grey81" },
+  { qRgb(209,209,209),  "grey82" },
+  { qRgb(212,212,212),  "grey83" },
+  { qRgb(214,214,214),  "grey84" },
+  { qRgb(217,217,217),  "grey85" },
+  { qRgb(219,219,219),  "grey86" },
+  { qRgb(222,222,222),  "grey87" },
+  { qRgb(224,224,224),  "grey88" },
+  { qRgb(227,227,227),  "grey89" },
+  { qRgb( 23, 23, 23),  "grey9" },
+  { qRgb(229,229,229),  "grey90" },
+  { qRgb(232,232,232),  "grey91" },
+  { qRgb(235,235,235),  "grey92" },
+  { qRgb(237,237,237),  "grey93" },
+  { qRgb(240,240,240),  "grey94" },
+  { qRgb(242,242,242),  "grey95" },
+  { qRgb(245,245,245),  "grey96" },
+  { qRgb(247,247,247),  "grey97" },
+  { qRgb(250,250,250),  "grey98" },
+  { qRgb(252,252,252),  "grey99" },
+  { qRgb(240,255,240),  "honeydew" },
+  { qRgb(240,255,240),  "honeydew1" },
+  { qRgb(224,238,224),  "honeydew2" },
+  { qRgb(193,205,193),  "honeydew3" },
+  { qRgb(131,139,131),  "honeydew4" },
+  { qRgb(255,105,180),  "hotpink" },
+  { qRgb(255,110,180),  "hotpink1" },
+  { qRgb(238,106,167),  "hotpink2" },
+  { qRgb(205, 96,144),  "hotpink3" },
+  { qRgb(139, 58, 98),  "hotpink4" },
+  { qRgb(205, 92, 92),  "indianred" },
+  { qRgb(255,106,106),  "indianred1" },
+  { qRgb(238, 99, 99),  "indianred2" },
+  { qRgb(205, 85, 85),  "indianred3" },
+  { qRgb(139, 58, 58),  "indianred4" },
+  { qRgb(255,255,240),  "ivory" },
+  { qRgb(255,255,240),  "ivory1" },
+  { qRgb(238,238,224),  "ivory2" },
+  { qRgb(205,205,193),  "ivory3" },
+  { qRgb(139,139,131),  "ivory4" },
+  { qRgb(240,230,140),  "khaki" },
+  { qRgb(255,246,143),  "khaki1" },
+  { qRgb(238,230,133),  "khaki2" },
+  { qRgb(205,198,115),  "khaki3" },
+  { qRgb(139,134, 78),  "khaki4" },
+  { qRgb(230,230,250),  "lavender" },
+  { qRgb(255,240,245),  "lavenderblush" },
+  { qRgb(255,240,245),  "lavenderblush1" },
+  { qRgb(238,224,229),  "lavenderblush2" },
+  { qRgb(205,193,197),  "lavenderblush3" },
+  { qRgb(139,131,134),  "lavenderblush4" },
+  { qRgb(124,252,  0),  "lawngreen" },
+  { qRgb(255,250,205),  "lemonchiffon" },
+  { qRgb(255,250,205),  "lemonchiffon1" },
+  { qRgb(238,233,191),  "lemonchiffon2" },
+  { qRgb(205,201,165),  "lemonchiffon3" },
+  { qRgb(139,137,112),  "lemonchiffon4" },
+  { qRgb(173,216,230),  "lightblue" },
+  { qRgb(191,239,255),  "lightblue1" },
+  { qRgb(178,223,238),  "lightblue2" },
+  { qRgb(154,192,205),  "lightblue3" },
+  { qRgb(104,131,139),  "lightblue4" },
+  { qRgb(240,128,128),  "lightcoral" },
+  { qRgb(224,255,255),  "lightcyan" },
+  { qRgb(224,255,255),  "lightcyan1" },
+  { qRgb(209,238,238),  "lightcyan2" },
+  { qRgb(180,205,205),  "lightcyan3" },
+  { qRgb(122,139,139),  "lightcyan4" },
+  { qRgb(238,221,130),  "lightgoldenrod" },
+  { qRgb(255,236,139),  "lightgoldenrod1" },
+  { qRgb(238,220,130),  "lightgoldenrod2" },
+  { qRgb(205,190,112),  "lightgoldenrod3" },
+  { qRgb(139,129, 76),  "lightgoldenrod4" },
+  { qRgb(250,250,210),  "lightgoldenrodyellow" },
+  { qRgb(211,211,211),  "lightgray" },
+  { qRgb(144,238,144),  "lightgreen" },
+  { qRgb(211,211,211),  "lightgrey" },
+  { qRgb(255,182,193),  "lightpink" },
+  { qRgb(255,174,185),  "lightpink1" },
+  { qRgb(238,162,173),  "lightpink2" },
+  { qRgb(205,140,149),  "lightpink3" },
+  { qRgb(139, 95,101),  "lightpink4" },
+  { qRgb(255,160,122),  "lightsalmon" },
+  { qRgb(255,160,122),  "lightsalmon1" },
+  { qRgb(238,149,114),  "lightsalmon2" },
+  { qRgb(205,129, 98),  "lightsalmon3" },
+  { qRgb(139, 87, 66),  "lightsalmon4" },
+  { qRgb( 32,178,170),  "lightseagreen" },
+  { qRgb(135,206,250),  "lightskyblue" },
+  { qRgb(176,226,255),  "lightskyblue1" },
+  { qRgb(164,211,238),  "lightskyblue2" },
+  { qRgb(141,182,205),  "lightskyblue3" },
+  { qRgb( 96,123,139),  "lightskyblue4" },
+  { qRgb(132,112,255),  "lightslateblue" },
+  { qRgb(119,136,153),  "lightslategray" },
+  { qRgb(119,136,153),  "lightslategrey" },
+  { qRgb(176,196,222),  "lightsteelblue" },
+  { qRgb(202,225,255),  "lightsteelblue1" },
+  { qRgb(188,210,238),  "lightsteelblue2" },
+  { qRgb(162,181,205),  "lightsteelblue3" },
+  { qRgb(110,123,139),  "lightsteelblue4" },
+  { qRgb(255,255,224),  "lightyellow" },
+  { qRgb(255,255,224),  "lightyellow1" },
+  { qRgb(238,238,209),  "lightyellow2" },
+  { qRgb(205,205,180),  "lightyellow3" },
+  { qRgb(139,139,122),  "lightyellow4" },
+  { qRgb( 50,205, 50),  "limegreen" },
+  { qRgb(250,240,230),  "linen" },
+  { qRgb(255,  0,255),  "magenta" },
+  { qRgb(255,  0,255),  "magenta1" },
+  { qRgb(238,  0,238),  "magenta2" },
+  { qRgb(205,  0,205),  "magenta3" },
+  { qRgb(139,  0,139),  "magenta4" },
+  { qRgb(176, 48, 96),  "maroon" },
+  { qRgb(255, 52,179),  "maroon1" },
+  { qRgb(238, 48,167),  "maroon2" },
+  { qRgb(205, 41,144),  "maroon3" },
+  { qRgb(139, 28, 98),  "maroon4" },
+  { qRgb(102,205,170),  "mediumaquamarine" },
+  { qRgb(  0,  0,205),  "mediumblue" },
+  { qRgb(186, 85,211),  "mediumorchid" },
+  { qRgb(224,102,255),  "mediumorchid1" },
+  { qRgb(209, 95,238),  "mediumorchid2" },
+  { qRgb(180, 82,205),  "mediumorchid3" },
+  { qRgb(122, 55,139),  "mediumorchid4" },
+  { qRgb(147,112,219),  "mediumpurple" },
+  { qRgb(171,130,255),  "mediumpurple1" },
+  { qRgb(159,121,238),  "mediumpurple2" },
+  { qRgb(137,104,205),  "mediumpurple3" },
+  { qRgb( 93, 71,139),  "mediumpurple4" },
+  { qRgb( 60,179,113),  "mediumseagreen" },
+  { qRgb(123,104,238),  "mediumslateblue" },
+  { qRgb(  0,250,154),  "mediumspringgreen" },
+  { qRgb( 72,209,204),  "mediumturquoise" },
+  { qRgb(199, 21,133),  "mediumvioletred" },
+  { qRgb( 25, 25,112),  "midnightblue" },
+  { qRgb(245,255,250),  "mintcream" },
+  { qRgb(255,228,225),  "mistyrose" },
+  { qRgb(255,228,225),  "mistyrose1" },
+  { qRgb(238,213,210),  "mistyrose2" },
+  { qRgb(205,183,181),  "mistyrose3" },
+  { qRgb(139,125,123),  "mistyrose4" },
+  { qRgb(255,228,181),  "moccasin" },
+  { qRgb(255,222,173),  "navajowhite" },
+  { qRgb(255,222,173),  "navajowhite1" },
+  { qRgb(238,207,161),  "navajowhite2" },
+  { qRgb(205,179,139),  "navajowhite3" },
+  { qRgb(139,121, 94),  "navajowhite4" },
+  { qRgb(  0,  0,128),  "navy" },
+  { qRgb(  0,  0,128),  "navyblue" },
+  { qRgb(253,245,230),  "oldlace" },
+  { qRgb(107,142, 35),  "olivedrab" },
+  { qRgb(192,255, 62),  "olivedrab1" },
+  { qRgb(179,238, 58),  "olivedrab2" },
+  { qRgb(154,205, 50),  "olivedrab3" },
+  { qRgb(105,139, 34),  "olivedrab4" },
+  { qRgb(255,165,  0),  "orange" },
+  { qRgb(255,165,  0),  "orange1" },
+  { qRgb(238,154,  0),  "orange2" },
+  { qRgb(205,133,  0),  "orange3" },
+  { qRgb(139, 90,  0),  "orange4" },
+  { qRgb(255, 69,  0),  "orangered" },
+  { qRgb(255, 69,  0),  "orangered1" },
+  { qRgb(238, 64,  0),  "orangered2" },
+  { qRgb(205, 55,  0),  "orangered3" },
+  { qRgb(139, 37,  0),  "orangered4" },
+  { qRgb(218,112,214),  "orchid" },
+  { qRgb(255,131,250),  "orchid1" },
+  { qRgb(238,122,233),  "orchid2" },
+  { qRgb(205,105,201),  "orchid3" },
+  { qRgb(139, 71,137),  "orchid4" },
+  { qRgb(238,232,170),  "palegoldenrod" },
+  { qRgb(152,251,152),  "palegreen" },
+  { qRgb(154,255,154),  "palegreen1" },
+  { qRgb(144,238,144),  "palegreen2" },
+  { qRgb(124,205,124),  "palegreen3" },
+  { qRgb( 84,139, 84),  "palegreen4" },
+  { qRgb(175,238,238),  "paleturquoise" },
+  { qRgb(187,255,255),  "paleturquoise1" },
+  { qRgb(174,238,238),  "paleturquoise2" },
+  { qRgb(150,205,205),  "paleturquoise3" },
+  { qRgb(102,139,139),  "paleturquoise4" },
+  { qRgb(219,112,147),  "palevioletred" },
+  { qRgb(255,130,171),  "palevioletred1" },
+  { qRgb(238,121,159),  "palevioletred2" },
+  { qRgb(205,104,137),  "palevioletred3" },
+  { qRgb(139, 71, 93),  "palevioletred4" },
+  { qRgb(255,239,213),  "papayawhip" },
+  { qRgb(255,218,185),  "peachpuff" },
+  { qRgb(255,218,185),  "peachpuff1" },
+  { qRgb(238,203,173),  "peachpuff2" },
+  { qRgb(205,175,149),  "peachpuff3" },
+  { qRgb(139,119,101),  "peachpuff4" },
+  { qRgb(205,133, 63),  "peru" },
+  { qRgb(255,192,203),  "pink" },
+  { qRgb(255,181,197),  "pink1" },
+  { qRgb(238,169,184),  "pink2" },
+  { qRgb(205,145,158),  "pink3" },
+  { qRgb(139, 99,108),  "pink4" },
+  { qRgb(221,160,221),  "plum" },
+  { qRgb(255,187,255),  "plum1" },
+  { qRgb(238,174,238),  "plum2" },
+  { qRgb(205,150,205),  "plum3" },
+  { qRgb(139,102,139),  "plum4" },
+  { qRgb(176,224,230),  "powderblue" },
+  { qRgb(160, 32,240),  "purple" },
+  { qRgb(155, 48,255),  "purple1" },
+  { qRgb(145, 44,238),  "purple2" },
+  { qRgb(125, 38,205),  "purple3" },
+  { qRgb( 85, 26,139),  "purple4" },
+  { qRgb(255,  0,  0),  "red" },
+  { qRgb(255,  0,  0),  "red1" },
+  { qRgb(238,  0,  0),  "red2" },
+  { qRgb(205,  0,  0),  "red3" },
+  { qRgb(139,  0,  0),  "red4" },
+  { qRgb(188,143,143),  "rosybrown" },
+  { qRgb(255,193,193),  "rosybrown1" },
+  { qRgb(238,180,180),  "rosybrown2" },
+  { qRgb(205,155,155),  "rosybrown3" },
+  { qRgb(139,105,105),  "rosybrown4" },
+  { qRgb( 65,105,225),  "royalblue" },
+  { qRgb( 72,118,255),  "royalblue1" },
+  { qRgb( 67,110,238),  "royalblue2" },
+  { qRgb( 58, 95,205),  "royalblue3" },
+  { qRgb( 39, 64,139),  "royalblue4" },
+  { qRgb(139, 69, 19),  "saddlebrown" },
+  { qRgb(250,128,114),  "salmon" },
+  { qRgb(255,140,105),  "salmon1" },
+  { qRgb(238,130, 98),  "salmon2" },
+  { qRgb(205,112, 84),  "salmon3" },
+  { qRgb(139, 76, 57),  "salmon4" },
+  { qRgb(244,164, 96),  "sandybrown" },
+  { qRgb( 46,139, 87),  "seagreen" },
+  { qRgb( 84,255,159),  "seagreen1" },
+  { qRgb( 78,238,148),  "seagreen2" },
+  { qRgb( 67,205,128),  "seagreen3" },
+  { qRgb( 46,139, 87),  "seagreen4" },
+  { qRgb(255,245,238),  "seashell" },
+  { qRgb(255,245,238),  "seashell1" },
+  { qRgb(238,229,222),  "seashell2" },
+  { qRgb(205,197,191),  "seashell3" },
+  { qRgb(139,134,130),  "seashell4" },
+  { qRgb(160, 82, 45),  "sienna" },
+  { qRgb(255,130, 71),  "sienna1" },
+  { qRgb(238,121, 66),  "sienna2" },
+  { qRgb(205,104, 57),  "sienna3" },
+  { qRgb(139, 71, 38),  "sienna4" },
+  { qRgb(135,206,235),  "skyblue" },
+  { qRgb(135,206,255),  "skyblue1" },
+  { qRgb(126,192,238),  "skyblue2" },
+  { qRgb(108,166,205),  "skyblue3" },
+  { qRgb( 74,112,139),  "skyblue4" },
+  { qRgb(106, 90,205),  "slateblue" },
+  { qRgb(131,111,255),  "slateblue1" },
+  { qRgb(122,103,238),  "slateblue2" },
+  { qRgb(105, 89,205),  "slateblue3" },
+  { qRgb( 71, 60,139),  "slateblue4" },
+  { qRgb(112,128,144),  "slategray" },
+  { qRgb(198,226,255),  "slategray1" },
+  { qRgb(185,211,238),  "slategray2" },
+  { qRgb(159,182,205),  "slategray3" },
+  { qRgb(108,123,139),  "slategray4" },
+  { qRgb(112,128,144),  "slategrey" },
+  { qRgb(255,250,250),  "snow" },
+  { qRgb(255,250,250),  "snow1" },
+  { qRgb(238,233,233),  "snow2" },
+  { qRgb(205,201,201),  "snow3" },
+  { qRgb(139,137,137),  "snow4" },
+  { qRgb(  0,255,127),  "springgreen" },
+  { qRgb(  0,255,127),  "springgreen1" },
+  { qRgb(  0,238,118),  "springgreen2" },
+  { qRgb(  0,205,102),  "springgreen3" },
+  { qRgb(  0,139, 69),  "springgreen4" },
+  { qRgb( 70,130,180),  "steelblue" },
+  { qRgb( 99,184,255),  "steelblue1" },
+  { qRgb( 92,172,238),  "steelblue2" },
+  { qRgb( 79,148,205),  "steelblue3" },
+  { qRgb( 54,100,139),  "steelblue4" },
+  { qRgb(210,180,140),  "tan" },
+  { qRgb(255,165, 79),  "tan1" },
+  { qRgb(238,154, 73),  "tan2" },
+  { qRgb(205,133, 63),  "tan3" },
+  { qRgb(139, 90, 43),  "tan4" },
+  { qRgb(216,191,216),  "thistle" },
+  { qRgb(255,225,255),  "thistle1" },
+  { qRgb(238,210,238),  "thistle2" },
+  { qRgb(205,181,205),  "thistle3" },
+  { qRgb(139,123,139),  "thistle4" },
+  { qRgb(255, 99, 71),  "tomato" },
+  { qRgb(255, 99, 71),  "tomato1" },
+  { qRgb(238, 92, 66),  "tomato2" },
+  { qRgb(205, 79, 57),  "tomato3" },
+  { qRgb(139, 54, 38),  "tomato4" },
+  { qRgb( 64,224,208),  "turquoise" },
+  { qRgb(  0,245,255),  "turquoise1" },
+  { qRgb(  0,229,238),  "turquoise2" },
+  { qRgb(  0,197,205),  "turquoise3" },
+  { qRgb(  0,134,139),  "turquoise4" },
+  { qRgb(238,130,238),  "violet" },
+  { qRgb(208, 32,144),  "violetred" },
+  { qRgb(255, 62,150),  "violetred1" },
+  { qRgb(238, 58,140),  "violetred2" },
+  { qRgb(205, 50,120),  "violetred3" },
+  { qRgb(139, 34, 82),  "violetred4" },
+  { qRgb(245,222,179),  "wheat" },
+  { qRgb(255,231,186),  "wheat1" },
+  { qRgb(238,216,174),  "wheat2" },
+  { qRgb(205,186,150),  "wheat3" },
+  { qRgb(139,126,102),  "wheat4" },
+  { qRgb(255,255,255),  "white" },
+  { qRgb(245,245,245),  "whitesmoke" },
+  { qRgb(255,255,  0),  "yellow" },
+  { qRgb(255,255,  0),  "yellow1" },
+  { qRgb(238,238,  0),  "yellow2" },
+  { qRgb(205,205,  0),  "yellow3" },
+  { qRgb(139,139,  0),  "yellow4" },
+  { qRgb(154,205, 50),  "yellowgreen" } };
+static const qint16 X11RGBTblSize = sizeof(X11RGBTbl) / sizeof(X11RGBTblData);
 
-static const qint16 rgbTblSize = sizeof(rgbTbl) / sizeof(RGBData);
 #endif // QT_NO_COLORNAMES
 
 bool qt_get_hex_rgb(const char *, const int, QRgb *);
index b48d4b2..5c61ce6 100644 (file)
@@ -350,11 +350,11 @@ void tst_QColor::globalColors()
 
 void tst_QColor::setNamedColor()
 {
-    for (int i = 0; i < rgbTblSize; ++i) {
+    for (int i = 0; i < RGBTblSize; ++i) {
         QColor color;
-        color.setNamedColor(QLatin1String(rgbTbl[i].name));
+        color.setNamedColor(QLatin1String(RGBTbl[i].name));
         QColor expected;
-        expected.setRgba(rgbTbl[i].value);
+        expected.setRgba(RGBTbl[i].value);
         QCOMPARE(color, expected);
     }
 }
@@ -370,9 +370,9 @@ void tst_QColor::colorNames()
     DEPENDS_ON("setNamedColor()");
 
     QStringList all = QColor::colorNames();
-    QCOMPARE(all.size(), (int)rgbTblSize);
+    QCOMPARE(all.size(), (int)RGBTblSize);
     for (int i = 0; i < all.size(); ++i)
-        QCOMPARE(all.at(i), QString::fromLatin1(rgbTbl[i].name));
+        QCOMPARE(all.at(i), QString::fromLatin1(RGBTbl[i].name));
 }
 
 void tst_QColor::spec()