Save HEX colors without alpha
This commit is contained in:
parent
0cc7f1ebdd
commit
766088b19a
1 changed files with 3 additions and 4 deletions
|
@ -2047,14 +2047,13 @@ else {
|
||||||
preg_match('/#(.)(.)(.)/', $value, $matches);
|
preg_match('/#(.)(.)(.)/', $value, $matches);
|
||||||
$color = $matches[1] .$matches[1] .
|
$color = $matches[1] .$matches[1] .
|
||||||
$matches[2] .$matches[2] .
|
$matches[2] .$matches[2] .
|
||||||
$matches[3] .$matches[3] .
|
$matches[3] .$matches[3];
|
||||||
'ff';
|
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
$color = substr($value, 1) . 'ff';
|
$color = substr($value, 1);
|
||||||
break;
|
break;
|
||||||
case 9:
|
case 9:
|
||||||
$color = substr($value, 1);
|
$color = substr($value, 1, 6);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue