| 11 | // ============================================================================ |
| 12 | |
| 13 | static bool parseSolid(const std::string& css, uint32_t& argb) { |
| 14 | ColorValue cv; |
| 15 | if (!ColorParser::parse(css, cv)) return false; |
| 16 | if (cv.type != ColorValueType::Solid) return false; |
| 17 | argb = cv.solidColor; |
| 18 | return true; |
| 19 | } |
| 20 | |
| 21 | static bool parseGradient(const std::string& css, ColorValue& cv) { |
| 22 | if (!ColorParser::parse(css, cv)) return false; |