diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-24 00:19:16 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-24 00:19:16 +1000 |
| commit | 2d05515b562eb153dbe032980604385699ab844b (patch) | |
| tree | 1e50216c31a0ae9dc755ed7c0418a2ad61292475 /src/caelestia/utils/material/generator.py | |
| parent | scheme: add extended material to fixed schemes (diff) | |
| download | caelestia-cli-2d05515b562eb153dbe032980604385699ab844b.tar.gz caelestia-cli-2d05515b562eb153dbe032980604385699ab844b.tar.bz2 caelestia-cli-2d05515b562eb153dbe032980604385699ab844b.zip | |
scheme: reduce chroma for neutral variant
Diffstat (limited to 'src/caelestia/utils/material/generator.py')
| -rw-r--r-- | src/caelestia/utils/material/generator.py | 4 |
1 files changed, 4 insertions, 0 deletions
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"] |