Explorar o código

LibDraw: Parse the color name "pink" to #ffc0cb

Andreas Kling %!s(int64=5) %!d(string=hai) anos
pai
achega
a32cae4c3b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Libraries/LibDraw/Color.cpp

+ 1 - 0
Libraries/LibDraw/Color.cpp

@@ -116,6 +116,7 @@ Optional<Color> Color::from_string(const StringView& string)
         { 0x000000, "black" },
         { 0x000000, "black" },
         { 0xc0c0c0, "silver" },
         { 0xc0c0c0, "silver" },
         { 0x808080, "gray" },
         { 0x808080, "gray" },
+        { 0xffc0cb, "pink" },
         { 0x000000, nullptr }
         { 0x000000, nullptr }
     };
     };