diff --git a/__pycache__/custom_file_dialog.cpython-312.pyc b/__pycache__/custom_file_dialog.cpython-312.pyc index b37c8ad..ba95de2 100644 Binary files a/__pycache__/custom_file_dialog.cpython-312.pyc and b/__pycache__/custom_file_dialog.cpython-312.pyc differ diff --git a/custom_file_dialog.py b/custom_file_dialog.py index 9cd9ccc..bfaafb4 100644 --- a/custom_file_dialog.py +++ b/custom_file_dialog.py @@ -180,6 +180,7 @@ class CustomFileDialog(tk.Toplevel): self.bottom_color = self.accent_color self.color_foreground = "#ffffff" self.freespace_background = self.sidebar_color + style.configure("TSeparator", background="#000000") else: self.selection_color = "#cce5ff" # Light blue for selection @@ -194,6 +195,7 @@ class CustomFileDialog(tk.Toplevel): self.bottom_color = "#d9d9d9" self.freespace_background = self.sidebar_color self.color_foreground = "#000000" + style.configure("TSeparator", background="#d9d9d9") style.configure("Header.TButton.Borderless.Round", background=self.header) @@ -332,6 +334,8 @@ class CustomFileDialog(tk.Toplevel): compound="left", command=lambda p=config['path']: self.navigate_to(p), style="Dark.TButton.Borderless") btn.pack(fill="x", pady=1) + ttk.Separator(sidebar_buttons_frame, orient='horizontal').pack(fill='x', pady=10, padx=20) + storage_frame = ttk.Frame(sidebar_frame, style="Sidebar.TFrame") storage_frame.grid(row=1, column=0, sticky="ew", padx=10) self.storage_label = ttk.Label( @@ -370,7 +374,7 @@ class CustomFileDialog(tk.Toplevel): command=self.on_cancel).grid(row=1, column=0, padx=10) self.filter_combobox = ttk.Combobox( - bottom_controls_frame, values=[ft[0] for ft in self.filetypes], state="readonly", width=20) + bottom_controls_frame, values=[ft[0] for ft in self.filetypes], state="readonly", width=15) self.filter_combobox.grid( row=1, column=1, sticky="w", padx=10, pady=(5, 10)) self.filter_combobox.bind(