feature:暗夜模式兼容调整,初始化需要手动写入初始密码。

This commit is contained in:
pixelmaxQM
2024-05-16 21:49:56 +08:00
parent 58a1b72910
commit e8128250f4
10 changed files with 61 additions and 32 deletions
+2 -1
View File
@@ -71,8 +71,9 @@ const hexToColor = (u,e,t)=>{
}
const generateAllColors = (u,e)=> {
let t = colorToHex(u);
const target = [10, 10, 30];
for (let a = 0; a < 3; a++)
t[a] = Math.floor((255 - t[a]) * e + t[a]);
t[a] = Math.floor(t[a] * (1 - e) + target[a] * e);
return hexToColor(t[0], t[1], t[2])
}