Fix: Add missing border_width to CTkFrame in custom themes
This commit is contained in:
@@ -47,5 +47,10 @@
|
|||||||
"text_color": ["#ecd7b2", "#ecd7b2"],
|
"text_color": ["#ecd7b2", "#ecd7b2"],
|
||||||
"corner_radius": 8,
|
"corner_radius": 8,
|
||||||
"border_color": ["#333333", "#333333"]
|
"border_color": ["#333333", "#333333"]
|
||||||
|
},
|
||||||
|
"CTkFont": {
|
||||||
|
"family": ["Roboto", "Roboto"],
|
||||||
|
"size": [13, 13],
|
||||||
|
"weight": ["normal", "normal"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -47,5 +47,10 @@
|
|||||||
"text_color": ["#000000", "#000000"],
|
"text_color": ["#000000", "#000000"],
|
||||||
"corner_radius": 8,
|
"corner_radius": 8,
|
||||||
"border_color": ["#cccccc", "#cccccc"]
|
"border_color": ["#cccccc", "#cccccc"]
|
||||||
|
},
|
||||||
|
"CTkFont": {
|
||||||
|
"family": ["Roboto", "Roboto"],
|
||||||
|
"size": [13, 13],
|
||||||
|
"weight": ["normal", "normal"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
4
gui.py
4
gui.py
@@ -21,7 +21,7 @@ class VideoConverterGUI:
|
|||||||
|
|
||||||
# --- Set Dark Mode by Default ---
|
# --- Set Dark Mode by Default ---
|
||||||
customtkinter.set_appearance_mode("Dark") # Modes: "System", "Dark", "Light"
|
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 ---
|
# --- Footer Frame ---
|
||||||
self.footer_frame = customtkinter.CTkFrame(master, fg_color="transparent")
|
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)
|
# Check if the switch is on (1) or off (0)
|
||||||
if self.mode_switch.get() == 1:
|
if self.mode_switch.get() == 1:
|
||||||
customtkinter.set_appearance_mode("Dark")
|
customtkinter.set_appearance_mode("Dark")
|
||||||
customtkinter.set_default_color_theme(os.path.join(os.path.dirname(__file__), "custom_theme_dark.json"))
|
|
||||||
else:
|
else:
|
||||||
customtkinter.set_appearance_mode("Light")
|
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):
|
def browse_file(self):
|
||||||
filepath = filedialog.askopenfilename()
|
filepath = filedialog.askopenfilename()
|
||||||
|
|||||||
Reference in New Issue
Block a user