diff --git a/cli/src/zshell/subcommands/scheme.py b/cli/src/zshell/subcommands/scheme.py index 6332423..70343e5 100644 --- a/cli/src/zshell/subcommands/scheme.py +++ b/cli/src/zshell/subcommands/scheme.py @@ -609,6 +609,17 @@ def generate( name = palette_obj.scheme flavor = palette_obj.variant + display_name = schemes[p_scheme].name + config["colors"]["presets"] = { + "name": display_name, + "variant": p_variant, + "accent": accent or "", + } + tmp = CONFIG.with_suffix(".json.tmp") + with tmp.open("w") as f: + json.dump(config, f, indent=4) + os.replace(tmp, CONFIG) + seed = hex_to_hct(colors.get("primary", "#000000").lstrip("#")) else: image_path = image_path or Path(WALL_PATH)