mirror of
https://github.com/zen-browser/theme-store.git
synced 2025-07-08 01:10:01 +02:00
feat: Update theme creation workflow to handle color themes
This commit is contained in:
parent
06d5b7f04f
commit
9f440aacec
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue