Update theme: Format theme data JSON file

This commit is contained in:
mauro-balades 2024-09-07 18:16:35 +02:00
parent a14abb27d1
commit ef08ecb65f
3 changed files with 15 additions and 14 deletions

View file

@ -46,6 +46,8 @@ def main():
continue continue
with open(theme_data_file, 'r') as f: with open(theme_data_file, 'r') as f:
theme_data = json.load(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: with open(THEMES_DATA_FILE, 'r') as f:
themes_data = json.load(f) themes_data = json.load(f)
theme_colors_file = os.path.join(theme_folder, 'colors.json') theme_colors_file = os.path.join(theme_folder, 'colors.json')
@ -58,7 +60,7 @@ def main():
theme_data['isColorTheme'] = True theme_data['isColorTheme'] = True
themes_data[theme] = theme_data themes_data[theme] = theme_data
with open(THEMES_DATA_FILE, 'w') as f: with open(THEMES_DATA_FILE, 'w') as f:
json.dump(themes_data, f, indent=4) json.dump(themes_data, f)
del themes_data del themes_data
print(f"Rebuilt theme: {theme}") print(f"Rebuilt theme: {theme}")
print("Rebuilt all themes!") print("Rebuilt all themes!")

View file

@ -1,5 +1,4 @@
#urlbar:is([breakout][breakout-extend], [focused]) {
#urlbar:is([breakout][breakout-extend], [breakout][usertyping][focused]) {
#urlbar-input { #urlbar-input {
font-size: 16px !important; font-size: 16px !important;
} }

View file

@ -7,5 +7,5 @@
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/83a641f7-eca9-4c0f-91af-45627bef0539/readme.md", "readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/83a641f7-eca9-4c0f-91af-45627bef0539/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/83a641f7-eca9-4c0f-91af-45627bef0539/image.png", "image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/83a641f7-eca9-4c0f-91af-45627bef0539/image.png",
"author": "mauro-balades", "author": "mauro-balades",
"version": "1.0.0" "version": "1.0.1"
} }