summaryrefslogtreecommitdiff
path: root/src/manage_saves.py
diff options
context:
space:
mode:
authorChandler J <cjustice2000@gmail.com>2024-04-12 20:54:00 -0600
committerGitHub <noreply@github.com>2024-04-12 20:54:00 -0600
commit8a1903bb16d9e04795c33f3eb226486d06e8a642 (patch)
treee8fc9dc0bb690cc1976a47fe1166f4bafcafcb40 /src/manage_saves.py
parent95e73b141ca8f3618701ff59658ef519353cc7c0 (diff)
parent2564189a769a5bd3de63086bb62dc3532d1b07b9 (diff)
Merge branch 'main' into saves
Diffstat (limited to 'src/manage_saves.py')
-rw-r--r--src/manage_saves.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/manage_saves.py b/src/manage_saves.py
index f57f7b8..44ce2a3 100644
--- a/src/manage_saves.py
+++ b/src/manage_saves.py
@@ -6,8 +6,10 @@ def save_theme(hex_colors, hex_compliments, wallpaper_location, save_location):
Save a theme to the disk at a specified location as a json object.
"""
+
theme = Theme(hex_colors, hex_compliments, wallpaper_location)
+
with open(save_location, 'w') as file:
json.dump(theme.toDict(), file)
print('[bold green]color palette saved successfully')