From 2d05515b562eb153dbe032980604385699ab844b Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 24 Jun 2025 00:19:16 +1000 Subject: scheme: reduce chroma for neutral variant --- src/caelestia/utils/material/generator.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/caelestia/utils') diff --git a/src/caelestia/utils/material/generator.py b/src/caelestia/utils/material/generator.py index 222bdd4..d304d7a 100644 --- a/src/caelestia/utils/material/generator.py +++ b/src/caelestia/utils/material/generator.py @@ -185,6 +185,10 @@ def gen_scheme(scheme, primary: Hct) -> dict[str, str]: else: 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 colours["text"] = colours["onBackground"] colours["subtext1"] = colours["onSurfaceVariant"] -- cgit v1.2.3-freya