mirror of
https://github.com/zen-browser/theme-store.git
synced 2025-07-07 08:55:31 +02:00
Update theme: Format theme data JSON file
This commit is contained in:
parent
a14abb27d1
commit
ef08ecb65f
3 changed files with 15 additions and 14 deletions
|
@ -46,6 +46,8 @@ def main():
|
|||
continue
|
||||
with open(theme_data_file, 'r') as f:
|
||||
theme_data = json.load(f)
|
||||
with open(theme_data_file, 'w') as f:
|
||||
json.dump(theme_data, f, indent=4) # format the json file
|
||||
with open(THEMES_DATA_FILE, 'r') as f:
|
||||
themes_data = json.load(f)
|
||||
theme_colors_file = os.path.join(theme_folder, 'colors.json')
|
||||
|
@ -58,7 +60,7 @@ def main():
|
|||
theme_data['isColorTheme'] = True
|
||||
themes_data[theme] = theme_data
|
||||
with open(THEMES_DATA_FILE, 'w') as f:
|
||||
json.dump(themes_data, f, indent=4)
|
||||
json.dump(themes_data, f)
|
||||
del themes_data
|
||||
print(f"Rebuilt theme: {theme}")
|
||||
print("Rebuilt all themes!")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue