mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-18 06:07:48 +00:00
feat: 支持GitHub Actions和一堆其他更新
This commit is contained in:
parent
f5ab5ea754
commit
e748155032
28 changed files with 185 additions and 36 deletions
|
|
@ -69,8 +69,6 @@ const FMCard = () => {
|
|||
if (coverUrl) {
|
||||
average(coverUrl, { amount: 1, format: 'hex', sample: 1 }).then(color => {
|
||||
let c = colord(color as string)
|
||||
console.log({ dark: c.isDark(), light: c.isLight() })
|
||||
|
||||
if (c.isLight()) c = c.darken(0.15)
|
||||
else if (c.isDark()) c = c.lighten(0.1)
|
||||
const to = c.darken(0.15).rotate(-5).toHex()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue