From 95e73b141ca8f3618701ff59658ef519353cc7c0 Mon Sep 17 00:00:00 2001 From: Chandler J Date: Fri, 12 Apr 2024 20:44:47 -0600 Subject: 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 --- src/theme.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/theme.py (limited to 'src/theme.py') 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 + } -- cgit v1.2.3