feat: 新增自定义颜色弹窗

This commit is contained in:
奔跑的面条
2023-02-25 22:00:55 +08:00
parent c74b3957a6
commit a8ac40770d
14 changed files with 817 additions and 30 deletions
+10
View File
@@ -86,6 +86,16 @@ export function darken(color: string, concentration: number) {
return Color(color).darken(concentration).toString()
}
/**
* hsl 转成16进制
* @param hsl
* @returns
*/
export function hslToHex(hslString: string): string {
const color = Color(hslString);
return color.hex()
}
/**
* * 修改主题色
* @param themeName 主题名称