Update lch to oklch

Update to a better gradient 

Signed-off-by: BlueFox1616 <149878174+BlueFox1616@users.noreply.github.com>
This commit is contained in:
BlueFox1616
2025-05-01 13:06:22 +03:00
committed by GitHub
parent 38753ab8b0
commit 2ba4ffb4f8

View File

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