From 22414da6a8443be9f9c26032d138431b7f26ec2a Mon Sep 17 00:00:00 2001 From: "mr. m" <91018726+mauro-balades@users.noreply.github.com> Date: Thu, 1 May 2025 05:14:10 -0700 Subject: [PATCH] Revert "Oklch to Oklab (even better gradients)" --- src/zen/workspaces/ZenGradientGenerator.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zen/workspaces/ZenGradientGenerator.mjs b/src/zen/workspaces/ZenGradientGenerator.mjs index 67e5da401..b64b5f544 100644 --- a/src/zen/workspaces/ZenGradientGenerator.mjs +++ b/src/zen/workspaces/ZenGradientGenerator.mjs @@ -909,12 +909,12 @@ } else if (themedColors.length === 1) { return this.getSingleRGBColor(themedColors[0], forToolbar); } else if (themedColors.length !== 3) { - return `linear-gradient(in oklab ${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 { let color1 = this.getSingleRGBColor(themedColors[2], forToolbar); let color2 = this.getSingleRGBColor(themedColors[0], forToolbar); let color3 = this.getSingleRGBColor(themedColors[1], forToolbar); - return `linear-gradient(in oklab ${this.currentRotation}deg, ${color1}, ${color2}, ${color3})`; + return `linear-gradient(in oklch ${this.currentRotation}deg, ${color1}, ${color2}, ${color3})`; } }