fix(album-color-theme): more simple assign

This commit is contained in:
JellyBrick
2023-11-28 04:50:24 +09:00
parent 845c9365be
commit bf27c73f1d

View File

@ -118,10 +118,7 @@ export default createPlugin({
fastAverageColor.getColorAsync(thumbnail.url)
.then((albumColor) => {
if (albumColor) {
const [hue, saturation, lightness] = this.hexToHSL(albumColor.hex);
this.hue = hue;
this.saturation = saturation;
this.lightness = lightness;
const [hue, saturation, lightness] = [this.hue, this.saturation, this.lightness] = this.hexToHSL(albumColor.hex);
this.changeElementColor(this.playerPage, hue, saturation, lightness - 30);
this.changeElementColor(this.navBarBackground, hue, saturation, lightness - 15);
this.changeElementColor(this.ytmusicPlayerBar, hue, saturation, lightness - 15);