mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
fix(album-color-theme): more simple assign
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user