Merge pull request #64942 from paulloz/cs-fix-color-names
C#: Fix dictionary keys in Colors
This commit is contained in:
commit
488c501633
1 changed files with 91 additions and 91 deletions
|
@ -10,136 +10,136 @@ namespace Godot
|
||||||
{
|
{
|
||||||
// Color names and values are derived from core/math/color_names.inc
|
// Color names and values are derived from core/math/color_names.inc
|
||||||
internal static readonly Dictionary<string, Color> namedColors = new Dictionary<string, Color> {
|
internal static readonly Dictionary<string, Color> namedColors = new Dictionary<string, Color> {
|
||||||
{ "ALICE_BLUE", new Color(0xF0F8FFFF) },
|
{ "ALICEBLUE", new Color(0xF0F8FFFF) },
|
||||||
{ "ANTIQUE_WHITE", new Color(0xFAEBD7FF) },
|
{ "ANTIQUEWHITE", new Color(0xFAEBD7FF) },
|
||||||
{ "AQUA", new Color(0x00FFFFFF) },
|
{ "AQUA", new Color(0x00FFFFFF) },
|
||||||
{ "AQUAMARINE", new Color(0x7FFFD4FF) },
|
{ "AQUAMARINE", new Color(0x7FFFD4FF) },
|
||||||
{ "AZURE", new Color(0xF0FFFFFF) },
|
{ "AZURE", new Color(0xF0FFFFFF) },
|
||||||
{ "BEIGE", new Color(0xF5F5DCFF) },
|
{ "BEIGE", new Color(0xF5F5DCFF) },
|
||||||
{ "BISQUE", new Color(0xFFE4C4FF) },
|
{ "BISQUE", new Color(0xFFE4C4FF) },
|
||||||
{ "BLACK", new Color(0x000000FF) },
|
{ "BLACK", new Color(0x000000FF) },
|
||||||
{ "BLANCHED_ALMOND", new Color(0xFFEBCDFF) },
|
{ "BLANCHEDALMOND", new Color(0xFFEBCDFF) },
|
||||||
{ "BLUE", new Color(0x0000FFFF) },
|
{ "BLUE", new Color(0x0000FFFF) },
|
||||||
{ "BLUE_VIOLET", new Color(0x8A2BE2FF) },
|
{ "BLUEVIOLET", new Color(0x8A2BE2FF) },
|
||||||
{ "BROWN", new Color(0xA52A2AFF) },
|
{ "BROWN", new Color(0xA52A2AFF) },
|
||||||
{ "BURLYWOOD", new Color(0xDEB887FF) },
|
{ "BURLYWOOD", new Color(0xDEB887FF) },
|
||||||
{ "CADET_BLUE", new Color(0x5F9EA0FF) },
|
{ "CADETBLUE", new Color(0x5F9EA0FF) },
|
||||||
{ "CHARTREUSE", new Color(0x7FFF00FF) },
|
{ "CHARTREUSE", new Color(0x7FFF00FF) },
|
||||||
{ "CHOCOLATE", new Color(0xD2691EFF) },
|
{ "CHOCOLATE", new Color(0xD2691EFF) },
|
||||||
{ "CORAL", new Color(0xFF7F50FF) },
|
{ "CORAL", new Color(0xFF7F50FF) },
|
||||||
{ "CORNFLOWER_BLUE", new Color(0x6495EDFF) },
|
{ "CORNFLOWERBLUE", new Color(0x6495EDFF) },
|
||||||
{ "CORNSILK", new Color(0xFFF8DCFF) },
|
{ "CORNSILK", new Color(0xFFF8DCFF) },
|
||||||
{ "CRIMSON", new Color(0xDC143CFF) },
|
{ "CRIMSON", new Color(0xDC143CFF) },
|
||||||
{ "CYAN", new Color(0x00FFFFFF) },
|
{ "CYAN", new Color(0x00FFFFFF) },
|
||||||
{ "DARK_BLUE", new Color(0x00008BFF) },
|
{ "DARKBLUE", new Color(0x00008BFF) },
|
||||||
{ "DARK_CYAN", new Color(0x008B8BFF) },
|
{ "DARKCYAN", new Color(0x008B8BFF) },
|
||||||
{ "DARK_GOLDENROD", new Color(0xB8860BFF) },
|
{ "DARKGOLDENROD", new Color(0xB8860BFF) },
|
||||||
{ "DARK_GRAY", new Color(0xA9A9A9FF) },
|
{ "DARKGRAY", new Color(0xA9A9A9FF) },
|
||||||
{ "DARK_GREEN", new Color(0x006400FF) },
|
{ "DARKGREEN", new Color(0x006400FF) },
|
||||||
{ "DARK_KHAKI", new Color(0xBDB76BFF) },
|
{ "DARKKHAKI", new Color(0xBDB76BFF) },
|
||||||
{ "DARK_MAGENTA", new Color(0x8B008BFF) },
|
{ "DARKMAGENTA", new Color(0x8B008BFF) },
|
||||||
{ "DARK_OLIVE_GREEN", new Color(0x556B2FFF) },
|
{ "DARKOLIVEGREEN", new Color(0x556B2FFF) },
|
||||||
{ "DARK_ORANGE", new Color(0xFF8C00FF) },
|
{ "DARKORANGE", new Color(0xFF8C00FF) },
|
||||||
{ "DARK_ORCHID", new Color(0x9932CCFF) },
|
{ "DARKORCHID", new Color(0x9932CCFF) },
|
||||||
{ "DARK_RED", new Color(0x8B0000FF) },
|
{ "DARKRED", new Color(0x8B0000FF) },
|
||||||
{ "DARK_SALMON", new Color(0xE9967AFF) },
|
{ "DARKSALMON", new Color(0xE9967AFF) },
|
||||||
{ "DARK_SEA_GREEN", new Color(0x8FBC8FFF) },
|
{ "DARKSEAGREEN", new Color(0x8FBC8FFF) },
|
||||||
{ "DARK_SLATE_BLUE", new Color(0x483D8BFF) },
|
{ "DARKSLATEBLUE", new Color(0x483D8BFF) },
|
||||||
{ "DARK_SLATE_GRAY", new Color(0x2F4F4FFF) },
|
{ "DARKSLATEGRAY", new Color(0x2F4F4FFF) },
|
||||||
{ "DARK_TURQUOISE", new Color(0x00CED1FF) },
|
{ "DARKTURQUOISE", new Color(0x00CED1FF) },
|
||||||
{ "DARK_VIOLET", new Color(0x9400D3FF) },
|
{ "DARKVIOLET", new Color(0x9400D3FF) },
|
||||||
{ "DEEP_PINK", new Color(0xFF1493FF) },
|
{ "DEEPPINK", new Color(0xFF1493FF) },
|
||||||
{ "DEEP_SKY_BLUE", new Color(0x00BFFFFF) },
|
{ "DEEPSKYBLUE", new Color(0x00BFFFFF) },
|
||||||
{ "DIM_GRAY", new Color(0x696969FF) },
|
{ "DIMGRAY", new Color(0x696969FF) },
|
||||||
{ "DODGER_BLUE", new Color(0x1E90FFFF) },
|
{ "DODGERBLUE", new Color(0x1E90FFFF) },
|
||||||
{ "FIREBRICK", new Color(0xB22222FF) },
|
{ "FIREBRICK", new Color(0xB22222FF) },
|
||||||
{ "FLORAL_WHITE", new Color(0xFFFAF0FF) },
|
{ "FLORALWHITE", new Color(0xFFFAF0FF) },
|
||||||
{ "FOREST_GREEN", new Color(0x228B22FF) },
|
{ "FORESTGREEN", new Color(0x228B22FF) },
|
||||||
{ "FUCHSIA", new Color(0xFF00FFFF) },
|
{ "FUCHSIA", new Color(0xFF00FFFF) },
|
||||||
{ "GAINSBORO", new Color(0xDCDCDCFF) },
|
{ "GAINSBORO", new Color(0xDCDCDCFF) },
|
||||||
{ "GHOST_WHITE", new Color(0xF8F8FFFF) },
|
{ "GHOSTWHITE", new Color(0xF8F8FFFF) },
|
||||||
{ "GOLD", new Color(0xFFD700FF) },
|
{ "GOLD", new Color(0xFFD700FF) },
|
||||||
{ "GOLDENROD", new Color(0xDAA520FF) },
|
{ "GOLDENROD", new Color(0xDAA520FF) },
|
||||||
{ "GRAY", new Color(0xBEBEBEFF) },
|
{ "GRAY", new Color(0xBEBEBEFF) },
|
||||||
{ "GREEN", new Color(0x00FF00FF) },
|
{ "GREEN", new Color(0x00FF00FF) },
|
||||||
{ "GREEN_YELLOW", new Color(0xADFF2FFF) },
|
{ "GREENYELLOW", new Color(0xADFF2FFF) },
|
||||||
{ "HONEYDEW", new Color(0xF0FFF0FF) },
|
{ "HONEYDEW", new Color(0xF0FFF0FF) },
|
||||||
{ "HOT_PINK", new Color(0xFF69B4FF) },
|
{ "HOTPINK", new Color(0xFF69B4FF) },
|
||||||
{ "INDIAN_RED", new Color(0xCD5C5CFF) },
|
{ "INDIANRED", new Color(0xCD5C5CFF) },
|
||||||
{ "INDIGO", new Color(0x4B0082FF) },
|
{ "INDIGO", new Color(0x4B0082FF) },
|
||||||
{ "IVORY", new Color(0xFFFFF0FF) },
|
{ "IVORY", new Color(0xFFFFF0FF) },
|
||||||
{ "KHAKI", new Color(0xF0E68CFF) },
|
{ "KHAKI", new Color(0xF0E68CFF) },
|
||||||
{ "LAVENDER", new Color(0xE6E6FAFF) },
|
{ "LAVENDER", new Color(0xE6E6FAFF) },
|
||||||
{ "LAVENDER_BLUSH", new Color(0xFFF0F5FF) },
|
{ "LAVENDERBLUSH", new Color(0xFFF0F5FF) },
|
||||||
{ "LAWN_GREEN", new Color(0x7CFC00FF) },
|
{ "LAWNGREEN", new Color(0x7CFC00FF) },
|
||||||
{ "LEMON_CHIFFON", new Color(0xFFFACDFF) },
|
{ "LEMONCHIFFON", new Color(0xFFFACDFF) },
|
||||||
{ "LIGHT_BLUE", new Color(0xADD8E6FF) },
|
{ "LIGHTBLUE", new Color(0xADD8E6FF) },
|
||||||
{ "LIGHT_CORAL", new Color(0xF08080FF) },
|
{ "LIGHTCORAL", new Color(0xF08080FF) },
|
||||||
{ "LIGHT_CYAN", new Color(0xE0FFFFFF) },
|
{ "LIGHTCYAN", new Color(0xE0FFFFFF) },
|
||||||
{ "LIGHT_GOLDENROD", new Color(0xFAFAD2FF) },
|
{ "LIGHTGOLDENROD", new Color(0xFAFAD2FF) },
|
||||||
{ "LIGHT_GRAY", new Color(0xD3D3D3FF) },
|
{ "LIGHTGRAY", new Color(0xD3D3D3FF) },
|
||||||
{ "LIGHT_GREEN", new Color(0x90EE90FF) },
|
{ "LIGHTGREEN", new Color(0x90EE90FF) },
|
||||||
{ "LIGHT_PINK", new Color(0xFFB6C1FF) },
|
{ "LIGHTPINK", new Color(0xFFB6C1FF) },
|
||||||
{ "LIGHT_SALMON", new Color(0xFFA07AFF) },
|
{ "LIGHTSALMON", new Color(0xFFA07AFF) },
|
||||||
{ "LIGHT_SEA_GREEN", new Color(0x20B2AAFF) },
|
{ "LIGHTSEAGREEN", new Color(0x20B2AAFF) },
|
||||||
{ "LIGHT_SKY_BLUE", new Color(0x87CEFAFF) },
|
{ "LIGHTSKYBLUE", new Color(0x87CEFAFF) },
|
||||||
{ "LIGHT_SLATE_GRAY", new Color(0x778899FF) },
|
{ "LIGHTSLATEGRAY", new Color(0x778899FF) },
|
||||||
{ "LIGHT_STEEL_BLUE", new Color(0xB0C4DEFF) },
|
{ "LIGHTSTEELBLUE", new Color(0xB0C4DEFF) },
|
||||||
{ "LIGHT_YELLOW", new Color(0xFFFFE0FF) },
|
{ "LIGHTYELLOW", new Color(0xFFFFE0FF) },
|
||||||
{ "LIME", new Color(0x00FF00FF) },
|
{ "LIME", new Color(0x00FF00FF) },
|
||||||
{ "LIME_GREEN", new Color(0x32CD32FF) },
|
{ "LIMEGREEN", new Color(0x32CD32FF) },
|
||||||
{ "LINEN", new Color(0xFAF0E6FF) },
|
{ "LINEN", new Color(0xFAF0E6FF) },
|
||||||
{ "MAGENTA", new Color(0xFF00FFFF) },
|
{ "MAGENTA", new Color(0xFF00FFFF) },
|
||||||
{ "MAROON", new Color(0xB03060FF) },
|
{ "MAROON", new Color(0xB03060FF) },
|
||||||
{ "MEDIUM_AQUAMARINE", new Color(0x66CDAAFF) },
|
{ "MEDIUMAQUAMARINE", new Color(0x66CDAAFF) },
|
||||||
{ "MEDIUM_BLUE", new Color(0x0000CDFF) },
|
{ "MEDIUMBLUE", new Color(0x0000CDFF) },
|
||||||
{ "MEDIUM_ORCHID", new Color(0xBA55D3FF) },
|
{ "MEDIUMORCHID", new Color(0xBA55D3FF) },
|
||||||
{ "MEDIUM_PURPLE", new Color(0x9370DBFF) },
|
{ "MEDIUMPURPLE", new Color(0x9370DBFF) },
|
||||||
{ "MEDIUM_SEA_GREEN", new Color(0x3CB371FF) },
|
{ "MEDIUMSEAGREEN", new Color(0x3CB371FF) },
|
||||||
{ "MEDIUM_SLATE_BLUE", new Color(0x7B68EEFF) },
|
{ "MEDIUMSLATEBLUE", new Color(0x7B68EEFF) },
|
||||||
{ "MEDIUM_SPRING_GREEN", new Color(0x00FA9AFF) },
|
{ "MEDIUMSPRINGGREEN", new Color(0x00FA9AFF) },
|
||||||
{ "MEDIUM_TURQUOISE", new Color(0x48D1CCFF) },
|
{ "MEDIUMTURQUOISE", new Color(0x48D1CCFF) },
|
||||||
{ "MEDIUM_VIOLET_RED", new Color(0xC71585FF) },
|
{ "MEDIUMVIOLETRED", new Color(0xC71585FF) },
|
||||||
{ "MIDNIGHT_BLUE", new Color(0x191970FF) },
|
{ "MIDNIGHTBLUE", new Color(0x191970FF) },
|
||||||
{ "MINT_CREAM", new Color(0xF5FFFAFF) },
|
{ "MINTCREAM", new Color(0xF5FFFAFF) },
|
||||||
{ "MISTY_ROSE", new Color(0xFFE4E1FF) },
|
{ "MISTYROSE", new Color(0xFFE4E1FF) },
|
||||||
{ "MOCCASIN", new Color(0xFFE4B5FF) },
|
{ "MOCCASIN", new Color(0xFFE4B5FF) },
|
||||||
{ "NAVAJO_WHITE", new Color(0xFFDEADFF) },
|
{ "NAVAJOWHITE", new Color(0xFFDEADFF) },
|
||||||
{ "NAVY_BLUE", new Color(0x000080FF) },
|
{ "NAVYBLUE", new Color(0x000080FF) },
|
||||||
{ "OLD_LACE", new Color(0xFDF5E6FF) },
|
{ "OLDLACE", new Color(0xFDF5E6FF) },
|
||||||
{ "OLIVE", new Color(0x808000FF) },
|
{ "OLIVE", new Color(0x808000FF) },
|
||||||
{ "OLIVE_DRAB", new Color(0x6B8E23FF) },
|
{ "OLIVEDRAB", new Color(0x6B8E23FF) },
|
||||||
{ "ORANGE", new Color(0xFFA500FF) },
|
{ "ORANGE", new Color(0xFFA500FF) },
|
||||||
{ "ORANGE_RED", new Color(0xFF4500FF) },
|
{ "ORANGERED", new Color(0xFF4500FF) },
|
||||||
{ "ORCHID", new Color(0xDA70D6FF) },
|
{ "ORCHID", new Color(0xDA70D6FF) },
|
||||||
{ "PALE_GOLDENROD", new Color(0xEEE8AAFF) },
|
{ "PALEGOLDENROD", new Color(0xEEE8AAFF) },
|
||||||
{ "PALE_GREEN", new Color(0x98FB98FF) },
|
{ "PALEGREEN", new Color(0x98FB98FF) },
|
||||||
{ "PALE_TURQUOISE", new Color(0xAFEEEEFF) },
|
{ "PALETURQUOISE", new Color(0xAFEEEEFF) },
|
||||||
{ "PALE_VIOLET_RED", new Color(0xDB7093FF) },
|
{ "PALEVIOLETRED", new Color(0xDB7093FF) },
|
||||||
{ "PAPAYA_WHIP", new Color(0xFFEFD5FF) },
|
{ "PAPAYAWHIP", new Color(0xFFEFD5FF) },
|
||||||
{ "PEACH_PUFF", new Color(0xFFDAB9FF) },
|
{ "PEACHPUFF", new Color(0xFFDAB9FF) },
|
||||||
{ "PERU", new Color(0xCD853FFF) },
|
{ "PERU", new Color(0xCD853FFF) },
|
||||||
{ "PINK", new Color(0xFFC0CBFF) },
|
{ "PINK", new Color(0xFFC0CBFF) },
|
||||||
{ "PLUM", new Color(0xDDA0DDFF) },
|
{ "PLUM", new Color(0xDDA0DDFF) },
|
||||||
{ "POWDER_BLUE", new Color(0xB0E0E6FF) },
|
{ "POWDERBLUE", new Color(0xB0E0E6FF) },
|
||||||
{ "PURPLE", new Color(0xA020F0FF) },
|
{ "PURPLE", new Color(0xA020F0FF) },
|
||||||
{ "REBECCA_PURPLE", new Color(0x663399FF) },
|
{ "REBECCAPURPLE", new Color(0x663399FF) },
|
||||||
{ "RED", new Color(0xFF0000FF) },
|
{ "RED", new Color(0xFF0000FF) },
|
||||||
{ "ROSY_BROWN", new Color(0xBC8F8FFF) },
|
{ "ROSYBROWN", new Color(0xBC8F8FFF) },
|
||||||
{ "ROYAL_BLUE", new Color(0x4169E1FF) },
|
{ "ROYALBLUE", new Color(0x4169E1FF) },
|
||||||
{ "SADDLE_BROWN", new Color(0x8B4513FF) },
|
{ "SADDLEBROWN", new Color(0x8B4513FF) },
|
||||||
{ "SALMON", new Color(0xFA8072FF) },
|
{ "SALMON", new Color(0xFA8072FF) },
|
||||||
{ "SANDY_BROWN", new Color(0xF4A460FF) },
|
{ "SANDYBROWN", new Color(0xF4A460FF) },
|
||||||
{ "SEA_GREEN", new Color(0x2E8B57FF) },
|
{ "SEAGREEN", new Color(0x2E8B57FF) },
|
||||||
{ "SEASHELL", new Color(0xFFF5EEFF) },
|
{ "SEASHELL", new Color(0xFFF5EEFF) },
|
||||||
{ "SIENNA", new Color(0xA0522DFF) },
|
{ "SIENNA", new Color(0xA0522DFF) },
|
||||||
{ "SILVER", new Color(0xC0C0C0FF) },
|
{ "SILVER", new Color(0xC0C0C0FF) },
|
||||||
{ "SKY_BLUE", new Color(0x87CEEBFF) },
|
{ "SKYBLUE", new Color(0x87CEEBFF) },
|
||||||
{ "SLATE_BLUE", new Color(0x6A5ACDFF) },
|
{ "SLATEBLUE", new Color(0x6A5ACDFF) },
|
||||||
{ "SLATE_GRAY", new Color(0x708090FF) },
|
{ "SLATEGRAY", new Color(0x708090FF) },
|
||||||
{ "SNOW", new Color(0xFFFAFAFF) },
|
{ "SNOW", new Color(0xFFFAFAFF) },
|
||||||
{ "SPRING_GREEN", new Color(0x00FF7FFF) },
|
{ "SPRINGGREEN", new Color(0x00FF7FFF) },
|
||||||
{ "STEEL_BLUE", new Color(0x4682B4FF) },
|
{ "STEELBLUE", new Color(0x4682B4FF) },
|
||||||
{ "TAN", new Color(0xD2B48CFF) },
|
{ "TAN", new Color(0xD2B48CFF) },
|
||||||
{ "TEAL", new Color(0x008080FF) },
|
{ "TEAL", new Color(0x008080FF) },
|
||||||
{ "THISTLE", new Color(0xD8BFD8FF) },
|
{ "THISTLE", new Color(0xD8BFD8FF) },
|
||||||
|
@ -147,15 +147,15 @@ namespace Godot
|
||||||
{ "TRANSPARENT", new Color(0xFFFFFF00) },
|
{ "TRANSPARENT", new Color(0xFFFFFF00) },
|
||||||
{ "TURQUOISE", new Color(0x40E0D0FF) },
|
{ "TURQUOISE", new Color(0x40E0D0FF) },
|
||||||
{ "VIOLET", new Color(0xEE82EEFF) },
|
{ "VIOLET", new Color(0xEE82EEFF) },
|
||||||
{ "WEB_GRAY", new Color(0x808080FF) },
|
{ "WEBGRAY", new Color(0x808080FF) },
|
||||||
{ "WEB_GREEN", new Color(0x008000FF) },
|
{ "WEBGREEN", new Color(0x008000FF) },
|
||||||
{ "WEB_MAROON", new Color(0x800000FF) },
|
{ "WEBMAROON", new Color(0x800000FF) },
|
||||||
{ "WEB_PURPLE", new Color(0x800080FF) },
|
{ "WEBPURPLE", new Color(0x800080FF) },
|
||||||
{ "WHEAT", new Color(0xF5DEB3FF) },
|
{ "WHEAT", new Color(0xF5DEB3FF) },
|
||||||
{ "WHITE", new Color(0xFFFFFFFF) },
|
{ "WHITE", new Color(0xFFFFFFFF) },
|
||||||
{ "WHITE_SMOKE", new Color(0xF5F5F5FF) },
|
{ "WHITESMOKE", new Color(0xF5F5F5FF) },
|
||||||
{ "YELLOW", new Color(0xFFFF00FF) },
|
{ "YELLOW", new Color(0xFFFF00FF) },
|
||||||
{ "YELLOW_GREEN", new Color(0x9ACD32FF) },
|
{ "YELLOWGREEN", new Color(0x9ACD32FF) },
|
||||||
};
|
};
|
||||||
|
|
||||||
#pragma warning disable CS1591 // Disable warning: "Missing XML comment for publicly visible type or member"
|
#pragma warning disable CS1591 // Disable warning: "Missing XML comment for publicly visible type or member"
|
||||||
|
|
Loading…
Reference in a new issue