forked from Shinonome/caelestia-cli
scheme: reduce chroma for neutral variant
This commit is contained in:
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user