mirror of
https://github.com/ethauvin/warp-themes.git
synced 2025-04-25 09:07:11 -07:00
Adding previews for bundled themes
This commit is contained in:
parent
d71d997671
commit
4bb9249f6a
21 changed files with 1642 additions and 3 deletions
|
@ -61,7 +61,8 @@ def gen_svg_for_theme(color_dict: Dict[str, str], svg_template: str) -> str:
|
|||
output = svg_template
|
||||
|
||||
for key, value in color_dict.items():
|
||||
output = output.replace(f"{{{key}}}", value)
|
||||
if isinstance(value, str):
|
||||
output = output.replace(f"{{{key}}}", value)
|
||||
return output
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue