This commit is contained in:
Rintim 2023-10-04 21:02:48 +08:00
parent 6b41bae90d
commit 2dcc9f43e1
No known key found for this signature in database
GPG Key ID: BE9E1EA615BACFCF
1 changed files with 3 additions and 3 deletions

View File

@ -171,9 +171,9 @@
if("color" in config&&config.color!=null){
let color1,color2,color3,color4;
if (typeof config.color=="string"&&/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(config.color)){
let c1=parseInt(`0x${item[1].slice(1, 3)}`);
let c2=parseInt(`0x${item[1].slice(3, 5)}`);
let c3=parseInt(`0x${item[1].slice(5, 7)}`);
let c1=parseInt(`0x${config.color.slice(1, 3)}`);
let c2=parseInt(`0x${config.color.slice(3, 5)}`);
let c3=parseInt(`0x${config.color.slice(5, 7)}`);
color1=color2=color3=color4=[c1,c2,c3,1];
}
else if(Array.isArray(config.color)&&config.color.length==4){