From 3604a6258ce5268539093f440316e1a33ab78187 Mon Sep 17 00:00:00 2001 From: faroukbmiled Date: Mon, 25 Sep 2023 11:16:13 +0100 Subject: [PATCH] load theme fix --- boiiiwd_package/src/settings_tab.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boiiiwd_package/src/settings_tab.py b/boiiiwd_package/src/settings_tab.py index 5ab5ed7..bc69743 100644 --- a/boiiiwd_package/src/settings_tab.py +++ b/boiiiwd_package/src/settings_tab.py @@ -362,9 +362,13 @@ class SettingsTab(ctk.CTkFrame): if setting == "theme": theme_config = check_config("theme", "boiiiwd_theme.json") + if os.path.exists(os.path.join(application_path, theme_config)): return "Custom" + if theme_config == "boiiiwd_theme.json": + return "Default" + match = re.match(r'boiiiwd_(\w+)\.json', theme_config) if match: theme_name = match.group(1).capitalize()