feat: Update theme creation workflow to handle color themes

This commit is contained in:
Mauro Balades 2024-08-21 16:45:34 +02:00
parent 06d5b7f04f
commit 9f440aacec

View file

@ -177,6 +177,9 @@ Just joking, you can do whatever you want. You're the boss.
f.write(get_readme()) f.write(get_readme())
if os.path.exists(TEMPLATE_PREFERENCES_FILE): if os.path.exists(TEMPLATE_PREFERENCES_FILE):
if is_color_theme:
print("Color themes do not support preferences.", file=sys.stderr)
exit(1)
prefs_file = f"themes/{theme_id}/{PREFERENCES_FILE}" prefs_file = f"themes/{theme_id}/{PREFERENCES_FILE}"
with open(prefs_file, 'w') as f: with open(prefs_file, 'w') as f:
prefs = get_preferences() prefs = get_preferences()