scheme: reduce chroma for neutral variant

This commit is contained in:
2 * r + 2 * t
2025-06-24 00:19:16 +10:00
parent bdcea4ee8a
commit 2d05515b56
@@ -185,6 +185,10 @@ def gen_scheme(scheme, primary: Hct) -> dict[str, str]:
else: else:
colours[colour_names[i]] = harmonize(hct, colours["primary_paletteKeyColor"], (-0.2 if light else 0.05)) colours[colour_names[i]] = harmonize(hct, colours["primary_paletteKeyColor"], (-0.2 if light else 0.05))
if scheme.variant == "neutral":
for name, hct in colours.items():
colours[name].chroma -= 15
# FIXME: deprecated stuff # FIXME: deprecated stuff
colours["text"] = colours["onBackground"] colours["text"] = colours["onBackground"]
colours["subtext1"] = colours["onSurfaceVariant"] colours["subtext1"] = colours["onSurfaceVariant"]