load theme fix

This commit is contained in:
faroukbmiled 2023-09-25 11:16:13 +01:00
parent 815896c5f6
commit 3604a6258c

View File

@ -362,9 +362,13 @@ class SettingsTab(ctk.CTkFrame):
if setting == "theme": if setting == "theme":
theme_config = check_config("theme", "boiiiwd_theme.json") theme_config = check_config("theme", "boiiiwd_theme.json")
if os.path.exists(os.path.join(application_path, theme_config)): if os.path.exists(os.path.join(application_path, theme_config)):
return "Custom" return "Custom"
if theme_config == "boiiiwd_theme.json":
return "Default"
match = re.match(r'boiiiwd_(\w+)\.json', theme_config) match = re.match(r'boiiiwd_(\w+)\.json', theme_config)
if match: if match:
theme_name = match.group(1).capitalize() theme_name = match.group(1).capitalize()