Refactor GDM module to correspond SOLID principles

- I don't know how I will support this hell ahh code;
- Added some methods to gnome_shell_theme_builder.py;
- Added "color" property "install" method from theme_base.py.
This commit is contained in:
Vladyslav Hroshev
2025-04-12 23:30:34 +03:00
parent 48d10df4b1
commit ca4e4d4cbe
17 changed files with 674 additions and 202 deletions

View File

@@ -1,12 +1,12 @@
from abc import ABC
from abc import ABC, abstractmethod
class ThemeBase(ABC):
"""Base class for theme installation and preparation."""
@staticmethod
@abstractmethod
def prepare(self):
pass
@staticmethod
def install(self, hue: int, sat: float | None = None):
@abstractmethod
def install(self, hue: int, name: str, sat: float | None = None):
pass