forked from Shinonome/caelestia-cli
scheme: migrate to material
This commit is contained in:
@@ -227,10 +227,9 @@ if __name__ == "__main__":
|
|||||||
rgb = colour_name.get_hct(primary_scheme).to_rgba()[:3]
|
rgb = colour_name.get_hct(primary_scheme).to_rgba()[:3]
|
||||||
material[colour] = hex_to_hls("{:02X}{:02X}{:02X}".format(*rgb))
|
material[colour] = hex_to_hls("{:02X}{:02X}{:02X}".format(*rgb))
|
||||||
|
|
||||||
|
# TODO: eventually migrate to material for layers
|
||||||
colours = {
|
colours = {
|
||||||
"primary": material["primary"],
|
**material,
|
||||||
"secondary": material["secondary"],
|
|
||||||
"tertiary": material["tertiary"],
|
|
||||||
"text": material["onBackground"],
|
"text": material["onBackground"],
|
||||||
"subtext1": material["onSurfaceVariant"],
|
"subtext1": material["onSurfaceVariant"],
|
||||||
"subtext0": material["outline"],
|
"subtext0": material["outline"],
|
||||||
@@ -244,7 +243,6 @@ if __name__ == "__main__":
|
|||||||
"mantle": darken(material["surface"], 0.03),
|
"mantle": darken(material["surface"], 0.03),
|
||||||
"crust": darken(material["surface"], 0.05),
|
"crust": darken(material["surface"], 0.05),
|
||||||
"success": harmonize(base[8], primary_argb),
|
"success": harmonize(base[8], primary_argb),
|
||||||
"error": harmonize(base[4], primary_argb),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for name, hls in base_colours.items():
|
for name, hls in base_colours.items():
|
||||||
|
|||||||
Reference in New Issue
Block a user