This commit is contained in:
Auric Vente
2024-07-20 04:48:04 -06:00
parent 6450af91be
commit 896b39eb4a
5 changed files with 59 additions and 5 deletions

View File

@@ -51,6 +51,7 @@ class Config:
input_text_color: str = "rgb(18, 18, 18)"
input_border_color: str = "rgb(140, 140, 140)"
input_caret_color: str = "rgb(18, 18, 18)"
settings_json: Path
@staticmethod
def prepare() -> None:
@@ -61,6 +62,14 @@ class Config:
Config.ants_json.parent.mkdir(parents=True, exist_ok=True)
Config.ants_json.write_text("[]")
Config.settings_json = (
Path(appdirs.user_config_dir()) / "cromulant" / "settings.json"
)
if not Config.settings_json.exists():
Config.settings_json.parent.mkdir(parents=True, exist_ok=True)
Config.settings_json.write_text("{}")
Config.icon_path = Config.here / "img" / "icon_4.jpg"
Config.status_image_path = Config.here / "img" / "icon_5.jpg"
Config.hatched_image_path = Config.here / "img" / "icon_7.jpg"