95: Fix light/dark mode mismatch causes preset to not load #124

Merged
zach merged 2 commits from 95-fix-light-mode-scheme-mismatch into main 2026-06-14 21:27:27 +02:00
Showing only changes of commit f31a1e224b - Show all commits
+11
View File
2
@@ -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)