Skip to content

Commit

Permalink
🐛 Add missing colors to ColorImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinbreiz committed Sep 25, 2023
1 parent ba9549c commit 29949c8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions source/Cosmos.System2_Plugs/System/Drawing/ColorImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ public static void Ctor(ref Color athis, KnownColor knownColor,
case KnownColor.Black:
aValue = 0xFF000000;
break;
case KnownColor.BlanchedAlmond:
aValue = 0xFFFFEBCD;
break;
case KnownColor.Blue:
aValue = 0xFF0000FF;
break;
Expand Down Expand Up @@ -400,6 +403,9 @@ public static void Ctor(ref Color athis, KnownColor knownColor,
case KnownColor.Tan:
aValue = 0xFFD2B48C;
break;
case KnownColor.Teal:
aValue = 0xFF008080;
break;
case KnownColor.Thistle:
aValue = 0xFFD8BFD8;
break;
Expand Down Expand Up @@ -455,6 +461,7 @@ public static Color FromName(string name)
"Beige" => Color.Beige,
"Bisque" => Color.Bisque,
"Black" => Color.Black,
"BlanchedAlmond" => Color.BlanchedAlmond,
"Blue" => Color.Blue,
"BlueViolet" => Color.BlueViolet,
"Brown" => Color.Brown,
Expand Down Expand Up @@ -575,6 +582,7 @@ public static Color FromName(string name)
"SpringGreen" => Color.SpringGreen,
"SteelBlue" => Color.SteelBlue,
"Tan" => Color.Tan,
"Teal" => Color.Teal,
"Thistle" => Color.Thistle,
"Tomato" => Color.Tomato,
"Transparent" => Color.Transparent,
Expand Down Expand Up @@ -630,6 +638,8 @@ public static string ToString(ref Color aThis,
return "Color [Bisque]";
case (short)KnownColor.Black:
return "Color [Black]";
case (short)KnownColor.BlanchedAlmond:
return "Color [BlanchedAlmond]";
case (short)KnownColor.Blue:
return "Color [Blue]";
case (short)KnownColor.BlueViolet:
Expand Down Expand Up @@ -870,6 +880,8 @@ public static string ToString(ref Color aThis,
return "Color [SteelBlue]";
case (short)KnownColor.Tan:
return "Color [Tan]";
case (short)KnownColor.Teal:
return "Color [Teal]";
case (short)KnownColor.Thistle:
return "Color [Thistle]";
case (short)KnownColor.Tomato:
Expand Down

0 comments on commit 29949c8

Please sign in to comment.