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);
|
||||
$color = $matches[1] .$matches[1] .
|
||||
$matches[2] .$matches[2] .
|
||||
$matches[3] .$matches[3] .
|
||||
'ff';
|
||||
$matches[3] .$matches[3];
|
||||
break;
|
||||
case 7:
|
||||
$color = substr($value, 1) . 'ff';
|
||||
$color = substr($value, 1);
|
||||
break;
|
||||
case 9:
|
||||
$color = substr($value, 1);
|
||||
$color = substr($value, 1, 6);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue