summaryrefslogtreecommitdiff
path: root/src/theme.py
diff options
context:
space:
mode:
authorChandler J <cjustice2000@gmail.com>2024-04-12 20:44:47 -0600
committerChandler J <cjustice2000@gmail.com>2024-04-12 20:44:47 -0600
commit95e73b141ca8f3618701ff59658ef519353cc7c0 (patch)
tree27967d34376bc6ed624c12c758f580a712765118 /src/theme.py
parentb7dc1316ab0eb51f408b2b7782571d868ad3b864 (diff)
major changes:
- Can now save/load themes which entails the color scheme and wallpaper - Can now use themes to load colors independent of background image - refactoring to make code less bad
Diffstat (limited to 'src/theme.py')
-rw-r--r--src/theme.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/theme.py b/src/theme.py
new file mode 100644
index 0000000..4bda7e1
--- /dev/null
+++ b/src/theme.py
@@ -0,0 +1,12 @@
+
+class Theme:
+ def __init__(self, colors, comp_colors, wallpaper):
+ self.colors = colors
+ self.comp_colors = comp_colors
+ self.wallpaper = wallpaper
+ def toDict(self):
+ return {
+ "colors" : self.colors,
+ "comp_colors": self.comp_colors,
+ "wallpaper" : self.wallpaper
+ }