fixed wrong json class names and added fix for backwards compatibility in ThemeManager #1538

This commit is contained in:
Tom Schimansky
2023-05-27 13:25:30 +02:00
parent cd85a1c782
commit 37b375d58b
6 changed files with 28 additions and 22 deletions

View File

@@ -37,6 +37,12 @@ class ThemeManager:
else:
cls.theme[key] = cls.theme[key]["Linux"]
# fix name inconsistencies
if "CTkCheckbox" in cls.theme.keys():
cls.theme["CTkCheckBox"] = cls.theme.pop("CTkCheckbox")
if "CTkRadiobutton" in cls.theme.keys():
cls.theme["CTkRadioButton"] = cls.theme.pop("CTkRadiobutton")
@classmethod
def save_theme(cls):
if cls._currently_loaded_theme is not None: