mirror of
https://github.com/yuukiwww/taiko-web.git
synced 2024-09-30 21:29:31 +02:00
default song color to random
This commit is contained in:
parent
b0955af4b9
commit
a4b6cb84a1
@ -17,6 +17,7 @@ class SongSelect{
|
||||
this.canvas.style.imageRendering = "pixelated"
|
||||
}
|
||||
|
||||
const defaultColor = Math.floor(Math.random() * 0xFFFFFF).toString(16).padStart(6, "0");
|
||||
this.songSkin = {
|
||||
"selected": {
|
||||
background: "#ffdb2c",
|
||||
@ -72,10 +73,10 @@ class SongSelect{
|
||||
},
|
||||
"default": {
|
||||
sort: null,
|
||||
background: "#ececec",
|
||||
border: ["#fbfbfb", "#8b8b8b"],
|
||||
outline: "#656565",
|
||||
infoFill: "#656565"
|
||||
background: `#${defaultColor}`,
|
||||
border: [`#${defaultColor}`, `#${defaultColor}`],
|
||||
outline: `#000000`,
|
||||
infoFill: `#${defaultColor}`
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user