feature:暗夜模式兼容调整,初始化需要手动写入初始密码。
This commit is contained in:
@@ -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])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user