From 5815efff8167a9ef939d3e30205123d575240482 Mon Sep 17 00:00:00 2001 From: trickypr <23250792+trickypr@users.noreply.github.com> Date: Mon, 15 Apr 2024 10:49:16 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Make=20theming=20less=20strict?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/content/src/browser/windowApi/WebsiteTheme.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/content/src/browser/windowApi/WebsiteTheme.js b/apps/content/src/browser/windowApi/WebsiteTheme.js index f8bc568..547766f 100644 --- a/apps/content/src/browser/windowApi/WebsiteTheme.js +++ b/apps/content/src/browser/windowApi/WebsiteTheme.js @@ -42,10 +42,10 @@ export function applyTheme(view, theme) { } const isLight = lightness > 50 - const withinSpec = isLight ? lightness >= 75 : lightness <= 25 + const withinSpec = isLight ? lightness >= 70 : lightness <= 30 if (!withinSpec) { - lightness = isLight ? 75 : 25 + lightness = isLight ? 70 : 30 if (chroma === 0) { chroma = 0 } else {