From 603ba2f67910b903b8e9f13cae4fe28e51c7f1d5 Mon Sep 17 00:00:00 2001 From: Ramforth Date: Mon, 3 Nov 2025 00:55:06 +0100 Subject: [PATCH] Fix: Add missing border_width to CTkFrame in custom themes --- custom_theme_dark.json | 5 +++++ custom_theme_light.json | 5 +++++ gui.py | 4 +--- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/custom_theme_dark.json b/custom_theme_dark.json index ccc4b79..b861de4 100644 --- a/custom_theme_dark.json +++ b/custom_theme_dark.json @@ -47,5 +47,10 @@ "text_color": ["#ecd7b2", "#ecd7b2"], "corner_radius": 8, "border_color": ["#333333", "#333333"] + }, + "CTkFont": { + "family": ["Roboto", "Roboto"], + "size": [13, 13], + "weight": ["normal", "normal"] } } \ No newline at end of file diff --git a/custom_theme_light.json b/custom_theme_light.json index 6a2d802..457d891 100644 --- a/custom_theme_light.json +++ b/custom_theme_light.json @@ -47,5 +47,10 @@ "text_color": ["#000000", "#000000"], "corner_radius": 8, "border_color": ["#cccccc", "#cccccc"] + }, + "CTkFont": { + "family": ["Roboto", "Roboto"], + "size": [13, 13], + "weight": ["normal", "normal"] } } \ No newline at end of file diff --git a/gui.py b/gui.py index 01ebe5b..16e1104 100644 --- a/gui.py +++ b/gui.py @@ -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()