Fix: Add missing border_width to CTkFrame in custom themes
This commit is contained in:
4
gui.py
4
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()
|
||||
|
||||
Reference in New Issue
Block a user