diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-01 19:43:10 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-01 19:43:10 +1000 |
| commit | bb83c57308a639d75a83b1b106784cdbb95fa057 (patch) | |
| tree | 4140a6a549546edfa10c44ab5174cd50f284cf81 | |
| parent | record: switch to wl-screenrec (diff) | |
| download | caelestia-cli-bb83c57308a639d75a83b1b106784cdbb95fa057.tar.gz caelestia-cli-bb83c57308a639d75a83b1b106784cdbb95fa057.tar.bz2 caelestia-cli-bb83c57308a639d75a83b1b106784cdbb95fa057.zip | |
scheme: migrate to material
| -rwxr-xr-x | scheme/autoadjust.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scheme/autoadjust.py b/scheme/autoadjust.py index 499841e..cd8d479 100755 --- a/scheme/autoadjust.py +++ b/scheme/autoadjust.py @@ -227,10 +227,9 @@ if __name__ == "__main__": rgb = colour_name.get_hct(primary_scheme).to_rgba()[:3] material[colour] = hex_to_hls("{:02X}{:02X}{:02X}".format(*rgb)) + # TODO: eventually migrate to material for layers colours = { - "primary": material["primary"], - "secondary": material["secondary"], - "tertiary": material["tertiary"], + **material, "text": material["onBackground"], "subtext1": material["onSurfaceVariant"], "subtext0": material["outline"], @@ -244,7 +243,6 @@ if __name__ == "__main__": "mantle": darken(material["surface"], 0.03), "crust": darken(material["surface"], 0.05), "success": harmonize(base[8], primary_argb), - "error": harmonize(base[4], primary_argb), } for name, hls in base_colours.items(): |