fix(color): Reading of RGB theme colors in hex format (#4222)
This commit is contained in:
@@ -43,7 +43,7 @@ static uint32_t r_color(const YamlNode* node, const char* val, uint8_t val_len)
|
||||
{
|
||||
if ((strncmp(val, RGBSTRING, strlen(RGBSTRING)) == 0) && (val[val_len - 1] == ')')) {
|
||||
int r, g, b;
|
||||
int numTokens = sscanf(val, "RGB(%d,%d,%d)", &r, &g, &b);
|
||||
int numTokens = sscanf(val, "RGB(%i,%i,%i)", &r, &g, &b);
|
||||
|
||||
if (numTokens == 3)
|
||||
return RGB(r, g, b);
|
||||
|
||||
Reference in New Issue
Block a user