Update themes.json with past version if available, otherwise set it to 1.0.0

This commit is contained in:
Mauro Balades 2024-08-25 13:04:52 +02:00
parent 4d6424f9ea
commit a23e634a6e
2 changed files with 130 additions and 125 deletions

View file

@ -61,9 +61,14 @@ def main():
past_version = themes_data[theme].get('version', None)
themes_data[theme] = theme_data
if past_version is not None:
print(f" Found past version: {past_version}")
themes_data[theme]['version'] = past_version
else:
print(f" No past version found, setting to 1.0.0")
themes_data[theme]['version'] = "1.0.0"
with open(THEMES_DATA_FILE, 'w') as f:
json.dump(themes_data, f, indent=4)
del themes_data
print(f"Rebuilt theme: {theme}")
print("Rebuilt all themes!")

View file

@ -1,4 +1,16 @@
{
"ea1a5ace-f698-4b45-ab88-6e8bd3a563f0": {
"id": "ea1a5ace-f698-4b45-ab88-6e8bd3a563f0",
"name": "Bookmark Toolbar Tweaks",
"description": "Center bookmarks, hide the icons!",
"homepage": "https://github.com/n7itro/Zen-Themes/",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ea1a5ace-f698-4b45-ab88-6e8bd3a563f0/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ea1a5ace-f698-4b45-ab88-6e8bd3a563f0/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ea1a5ace-f698-4b45-ab88-6e8bd3a563f0/image.png",
"author": "n7itro",
"preferences": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ea1a5ace-f698-4b45-ab88-6e8bd3a563f0/preferences.json",
"version": "1.0.0"
},
"5ac61d13-a0dc-400e-aaa0-0f10fd3a7d0c": {
"id": "5ac61d13-a0dc-400e-aaa0-0f10fd3a7d0c",
"name": "Uniform Workspaces Button",
@ -10,29 +22,17 @@
"author": "andrewbellucci",
"version": "1.0.0"
},
"17f70712-4530-42d0-ba0f-fa25bcbf2ddc": {
"id": "17f70712-4530-42d0-ba0f-fa25bcbf2ddc",
"name": "Vesper Dark",
"description": "P\u0336e\u0336p\u0336p\u0336e\u0336r\u0336m\u0336i\u0336n\u0336t\u0336 and orange flavored dark theme for V\u0336S\u0336C\u0336o\u0336d\u0336e\u0336 Zen browser.",
"ef16716a-58dc-42d4-99f8-b1667d32247d": {
"id": "ef16716a-58dc-42d4-99f8-b1667d32247d",
"name": "Formula 1",
"description": "Embrace the simplicity of black and red",
"homepage": "",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/17f70712-4530-42d0-ba0f-fa25bcbf2ddc/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/17f70712-4530-42d0-ba0f-fa25bcbf2ddc/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/17f70712-4530-42d0-ba0f-fa25bcbf2ddc/image.png",
"author": "bdsqqq",
"version": "1.0.0",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ef16716a-58dc-42d4-99f8-b1667d32247d/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ef16716a-58dc-42d4-99f8-b1667d32247d/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ef16716a-58dc-42d4-99f8-b1667d32247d/image.png",
"author": "thejournalwriter",
"isDarkMode": true,
"isColorTheme": true
},
"58649066-2b6f-4a5b-af6d-c3d21d16fc00": {
"id": "58649066-2b6f-4a5b-af6d-c3d21d16fc00",
"name": "Private Mode Highlighting",
"description": "This theme adds a purple gradient and icon to the main toolbar of any private browsing window.",
"homepage": "https://github.com/danm36/zen-browser-private-browsing-toolbar-highlighting",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/58649066-2b6f-4a5b-af6d-c3d21d16fc00/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/58649066-2b6f-4a5b-af6d-c3d21d16fc00/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/58649066-2b6f-4a5b-af6d-c3d21d16fc00/image.png",
"author": "danm36",
"preferences": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/58649066-2b6f-4a5b-af6d-c3d21d16fc00/preferences.json",
"isColorTheme": true,
"version": "1.0.0"
},
"ab9b529c-63d6-48c0-a59a-4a407c5c3129": {
@ -47,63 +47,6 @@
"preferences": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ab9b529c-63d6-48c0-a59a-4a407c5c3129/preferences.json",
"version": "1.0.0"
},
"c6813222-6571-4ba6-8faf-58f3343324f6": {
"id": "c6813222-6571-4ba6-8faf-58f3343324f6",
"name": "Disable Rounded Corners",
"description": "Disable Rounded Corners from Web View.",
"homepage": "https://github.com/gunir/desktop/tree/themes/themes",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/c6813222-6571-4ba6-8faf-58f3343324f6/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/c6813222-6571-4ba6-8faf-58f3343324f6/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/c6813222-6571-4ba6-8faf-58f3343324f6/image.png",
"author": "gunir",
"version": "1.0.0"
},
"e3eec307-7c64-4cbd-a0c5-3447cd45a840": {
"id": "e3eec307-7c64-4cbd-a0c5-3447cd45a840",
"name": "Catppuccin",
"description": "Dive into Catppuccin's, unique pastel color theme for Zen!",
"homepage": "https://catppuccin.com/",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/e3eec307-7c64-4cbd-a0c5-3447cd45a840/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/e3eec307-7c64-4cbd-a0c5-3447cd45a840/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/e3eec307-7c64-4cbd-a0c5-3447cd45a840/image.png",
"author": "mauro-balades",
"version": "1.0.0",
"isDarkMode": true,
"isColorTheme": true
},
"053a3ffa-9233-4554-88f3-076e6a6ebb43": {
"id": "053a3ffa-9233-4554-88f3-076e6a6ebb43",
"name": "Hide tab mute",
"description": "Hides the mute/unmute button when the sidebar is collapsed to make clicking on tabs easier.",
"homepage": "",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/053a3ffa-9233-4554-88f3-076e6a6ebb43/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/053a3ffa-9233-4554-88f3-076e6a6ebb43/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/053a3ffa-9233-4554-88f3-076e6a6ebb43/image.png",
"author": "Tc-001",
"version": "1.0.0"
},
"cb15abdb-0514-4e09-8ce5-722cf1f4a20f": {
"id": "cb15abdb-0514-4e09-8ce5-722cf1f4a20f",
"name": "Hide Extension Name",
"description": "Hides the name of the extension on tabs loaded from the extension",
"homepage": "https://github.com/ch4og/zenbrowser-themes/tree/main/Hide%20Extension%20Name",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/cb15abdb-0514-4e09-8ce5-722cf1f4a20f/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/cb15abdb-0514-4e09-8ce5-722cf1f4a20f/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/cb15abdb-0514-4e09-8ce5-722cf1f4a20f/image.png",
"author": "ch4og",
"version": "1.0.0"
},
"680424a8-a818-406b-98c5-7726214e2a9f": {
"id": "680424a8-a818-406b-98c5-7726214e2a9f",
"name": "Remove Browser Padding",
"description": "Remove the right and bottom paddings of the browser views on zen!",
"homepage": "https://github.com/zen-browser/theme-components",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/680424a8-a818-406b-98c5-7726214e2a9f/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/680424a8-a818-406b-98c5-7726214e2a9f/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/680424a8-a818-406b-98c5-7726214e2a9f/image.png",
"author": "mauro-balades",
"version": "1.0.0"
},
"64cdc40f-2366-4b5b-8bad-d0524682595e": {
"id": "64cdc40f-2366-4b5b-8bad-d0524682595e",
"name": "Allow Toolbar Theming",
@ -113,31 +56,6 @@
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/64cdc40f-2366-4b5b-8bad-d0524682595e/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/64cdc40f-2366-4b5b-8bad-d0524682595e/image.png",
"author": "ch4og",
"version": "1.0.1"
},
"ecda11ae-d3fd-4052-8881-303b2504e3ce": {
"id": "ecda11ae-d3fd-4052-8881-303b2504e3ce",
"name": "Gruvbox",
"description": "A gruvbox based theme",
"homepage": "",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ecda11ae-d3fd-4052-8881-303b2504e3ce/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ecda11ae-d3fd-4052-8881-303b2504e3ce/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ecda11ae-d3fd-4052-8881-303b2504e3ce/image.png",
"author": "Blaster4385",
"version": "1.0.0",
"isDarkMode": true,
"isColorTheme": true
},
"5a007026-0801-4a5d-9740-f17dc1c3ff21": {
"id": "5a007026-0801-4a5d-9740-f17dc1c3ff21",
"name": "Hide Window Buttons",
"description": "Hide the minimize, maximize, and close window buttons",
"homepage": "https://github.com/n7itro/Zen-Themes",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/5a007026-0801-4a5d-9740-f17dc1c3ff21/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/5a007026-0801-4a5d-9740-f17dc1c3ff21/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/5a007026-0801-4a5d-9740-f17dc1c3ff21/image.png",
"author": "n7itro",
"preferences": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/5a007026-0801-4a5d-9740-f17dc1c3ff21/preferences.json",
"version": "1.0.0"
},
"83a641f7-eca9-4c0f-91af-45627bef0539": {
@ -151,29 +69,111 @@
"author": "mauro-balades",
"version": "1.0.0"
},
"ef16716a-58dc-42d4-99f8-b1667d32247d": {
"id": "ef16716a-58dc-42d4-99f8-b1667d32247d",
"name": "Formula 1",
"description": "Embrace the simplicity of black and red",
"homepage": "",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ef16716a-58dc-42d4-99f8-b1667d32247d/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ef16716a-58dc-42d4-99f8-b1667d32247d/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ef16716a-58dc-42d4-99f8-b1667d32247d/image.png",
"author": "thejournalwriter",
"version": "1.0.0",
"isDarkMode": true,
"isColorTheme": true
"58649066-2b6f-4a5b-af6d-c3d21d16fc00": {
"id": "58649066-2b6f-4a5b-af6d-c3d21d16fc00",
"name": "Private Mode Highlighting",
"description": "This theme adds a purple gradient and icon to the main toolbar of any private browsing window.",
"homepage": "https://github.com/danm36/zen-browser-private-browsing-toolbar-highlighting",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/58649066-2b6f-4a5b-af6d-c3d21d16fc00/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/58649066-2b6f-4a5b-af6d-c3d21d16fc00/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/58649066-2b6f-4a5b-af6d-c3d21d16fc00/image.png",
"author": "danm36",
"preferences": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/58649066-2b6f-4a5b-af6d-c3d21d16fc00/preferences.json",
"version": "1.0.0"
},
"ea1a5ace-f698-4b45-ab88-6e8bd3a563f0": {
"id": "ea1a5ace-f698-4b45-ab88-6e8bd3a563f0",
"name": "Bookmark Toolbar Tweaks",
"description": "Center bookmarks, hide the icons!",
"homepage": "https://github.com/n7itro/Zen-Themes/",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ea1a5ace-f698-4b45-ab88-6e8bd3a563f0/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ea1a5ace-f698-4b45-ab88-6e8bd3a563f0/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ea1a5ace-f698-4b45-ab88-6e8bd3a563f0/image.png",
"5a007026-0801-4a5d-9740-f17dc1c3ff21": {
"id": "5a007026-0801-4a5d-9740-f17dc1c3ff21",
"name": "Hide Window Buttons",
"description": "Hide the minimize, maximize, and close window buttons",
"homepage": "https://github.com/n7itro/Zen-Themes",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/5a007026-0801-4a5d-9740-f17dc1c3ff21/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/5a007026-0801-4a5d-9740-f17dc1c3ff21/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/5a007026-0801-4a5d-9740-f17dc1c3ff21/image.png",
"author": "n7itro",
"preferences": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ea1a5ace-f698-4b45-ab88-6e8bd3a563f0/preferences.json",
"preferences": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/5a007026-0801-4a5d-9740-f17dc1c3ff21/preferences.json",
"version": "1.0.0"
},
"17f70712-4530-42d0-ba0f-fa25bcbf2ddc": {
"id": "17f70712-4530-42d0-ba0f-fa25bcbf2ddc",
"name": "Vesper Dark",
"description": "P\u0336e\u0336p\u0336p\u0336e\u0336r\u0336m\u0336i\u0336n\u0336t\u0336 and orange flavored dark theme for V\u0336S\u0336C\u0336o\u0336d\u0336e\u0336 Zen browser.",
"homepage": "",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/17f70712-4530-42d0-ba0f-fa25bcbf2ddc/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/17f70712-4530-42d0-ba0f-fa25bcbf2ddc/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/17f70712-4530-42d0-ba0f-fa25bcbf2ddc/image.png",
"author": "bdsqqq",
"isDarkMode": true,
"isColorTheme": true,
"version": "1.0.0"
},
"053a3ffa-9233-4554-88f3-076e6a6ebb43": {
"id": "053a3ffa-9233-4554-88f3-076e6a6ebb43",
"name": "Hide tab mute",
"description": "Hides the mute/unmute button when the sidebar is collapsed to make clicking on tabs easier.",
"homepage": "",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/053a3ffa-9233-4554-88f3-076e6a6ebb43/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/053a3ffa-9233-4554-88f3-076e6a6ebb43/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/053a3ffa-9233-4554-88f3-076e6a6ebb43/image.png",
"author": "Tc-001",
"version": "1.0.0"
},
"ecda11ae-d3fd-4052-8881-303b2504e3ce": {
"id": "ecda11ae-d3fd-4052-8881-303b2504e3ce",
"name": "Gruvbox",
"description": "A gruvbox based theme",
"homepage": "",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ecda11ae-d3fd-4052-8881-303b2504e3ce/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ecda11ae-d3fd-4052-8881-303b2504e3ce/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ecda11ae-d3fd-4052-8881-303b2504e3ce/image.png",
"author": "Blaster4385",
"isDarkMode": true,
"isColorTheme": true,
"version": "1.0.0"
},
"680424a8-a818-406b-98c5-7726214e2a9f": {
"id": "680424a8-a818-406b-98c5-7726214e2a9f",
"name": "Remove Browser Padding",
"description": "Remove the right and bottom paddings of the browser views on zen!",
"homepage": "https://github.com/zen-browser/theme-components",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/680424a8-a818-406b-98c5-7726214e2a9f/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/680424a8-a818-406b-98c5-7726214e2a9f/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/680424a8-a818-406b-98c5-7726214e2a9f/image.png",
"author": "mauro-balades",
"version": "1.0.0"
},
"cb15abdb-0514-4e09-8ce5-722cf1f4a20f": {
"id": "cb15abdb-0514-4e09-8ce5-722cf1f4a20f",
"name": "Hide Extension Name",
"description": "Hides the name of the extension on tabs loaded from the extension",
"homepage": "https://github.com/ch4og/zenbrowser-themes/tree/main/Hide%20Extension%20Name",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/cb15abdb-0514-4e09-8ce5-722cf1f4a20f/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/cb15abdb-0514-4e09-8ce5-722cf1f4a20f/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/cb15abdb-0514-4e09-8ce5-722cf1f4a20f/image.png",
"author": "ch4og",
"version": "1.0.0"
},
"e3eec307-7c64-4cbd-a0c5-3447cd45a840": {
"id": "e3eec307-7c64-4cbd-a0c5-3447cd45a840",
"name": "Catppuccin",
"description": "Dive into Catppuccin's, unique pastel color theme for Zen!",
"homepage": "https://catppuccin.com/",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/e3eec307-7c64-4cbd-a0c5-3447cd45a840/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/e3eec307-7c64-4cbd-a0c5-3447cd45a840/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/e3eec307-7c64-4cbd-a0c5-3447cd45a840/image.png",
"author": "mauro-balades",
"isDarkMode": true,
"isColorTheme": true,
"version": "1.0.0"
},
"c6813222-6571-4ba6-8faf-58f3343324f6": {
"id": "c6813222-6571-4ba6-8faf-58f3343324f6",
"name": "Disable Rounded Corners",
"description": "Disable Rounded Corners from Web View.",
"homepage": "https://github.com/gunir/desktop/tree/themes/themes",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/c6813222-6571-4ba6-8faf-58f3343324f6/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/c6813222-6571-4ba6-8faf-58f3343324f6/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/c6813222-6571-4ba6-8faf-58f3343324f6/image.png",
"author": "gunir",
"version": "1.0.0"
}
}
}