Fix: Add missing border_width to CTkFrame in custom themes

This commit is contained in:
Ramforth
2025-11-03 00:55:06 +01:00
parent 46bb80338a
commit 603ba2f679
3 changed files with 11 additions and 3 deletions

4
gui.py
View File

@@ -21,7 +21,7 @@ class VideoConverterGUI:
# --- Set Dark Mode by Default ---
customtkinter.set_appearance_mode("Dark") # Modes: "System", "Dark", "Light"
customtkinter.set_default_color_theme(os.path.join(os.path.dirname(__file__), "custom_theme_dark.json"))
customtkinter.set_default_color_theme("blue")
# --- Footer Frame ---
self.footer_frame = customtkinter.CTkFrame(master, fg_color="transparent")
@@ -110,10 +110,8 @@ class VideoConverterGUI:
# Check if the switch is on (1) or off (0)
if self.mode_switch.get() == 1:
customtkinter.set_appearance_mode("Dark")
customtkinter.set_default_color_theme(os.path.join(os.path.dirname(__file__), "custom_theme_dark.json"))
else:
customtkinter.set_appearance_mode("Light")
customtkinter.set_default_color_theme(os.path.join(os.path.dirname(__file__), "custom_theme_light.json"))
def browse_file(self):
filepath = filedialog.askopenfilename()