chore: Make gradients use LCH for browser backgrounds, b=(no-bug), c=common, workspaces

This commit is contained in:
mr. m
2025-04-30 19:45:36 +02:00
parent 3eaeb4a0a1
commit 1540d6b411
2 changed files with 3 additions and 3 deletions

View File

@@ -909,12 +909,12 @@
} else if (themedColors.length === 1) {
return this.getSingleRGBColor(themedColors[0], forToolbar);
} else if (themedColors.length !== 3) {
return `linear-gradient(${this.currentRotation}deg, ${themedColors.map((color) => this.getSingleRGBColor(color, forToolbar)).join(', ')})`;
return `linear-gradient(in lch ${this.currentRotation}deg, ${themedColors.map((color) => this.getSingleRGBColor(color, forToolbar)).join(', ')})`;
} else {
let color1 = this.getSingleRGBColor(themedColors[2], forToolbar);
let color2 = this.getSingleRGBColor(themedColors[0], forToolbar);
let color3 = this.getSingleRGBColor(themedColors[1], forToolbar);
return `linear-gradient(${this.currentRotation}deg, ${color1}, ${color2}, ${color3})`;
return `linear-gradient(in lch ${this.currentRotation}deg, ${color1}, ${color2}, ${color3})`;
}
}