Beginning adding OTP verification to client shange screen

This commit is contained in:
Lucas Mathews
2024-05-28 17:49:31 +02:00
parent 5d44aef65f
commit 870dd1435f
33 changed files with 72 additions and 29 deletions

View File

@@ -53,10 +53,13 @@ def change_dark_theme():
##############
# Set appearance mode based on configuration
if CONFIG["preferences"]["dark_theme"] == "dark":
customtkinter.set_appearance_mode("dark")
if "preferences" in CONFIG and "dark_theme" in CONFIG["preferences"]:
if CONFIG["preferences"]["dark_theme"] == "dark":
customtkinter.set_appearance_mode("dark")
else:
customtkinter.set_appearance_mode("light")
else:
customtkinter.set_appearance_mode("light")
customtkinter.set_appearance_mode("dark")
# Initialize the main window
root = customtkinter.CTk()