commit 59

This commit is contained in:
2025-08-06 23:49:16 +02:00
parent 84c5405df7
commit bbfdc3efac
3 changed files with 9 additions and 8 deletions

View File

@@ -335,20 +335,21 @@ class WidgetManager:
"""Sets up the bottom bar including containers and widgets based on dialog mode."""
self.action_status_frame = ttk.Frame(self.content_frame, style="AccentBottom.TFrame")
self.action_status_frame.grid(row=1, column=0, sticky="ew", pady=(5, 10), padx=10)
self.status_container = ttk.Frame(self.action_status_frame, style="AccentBottom.TFrame")
self.left_container = ttk.Frame(self.action_status_frame, style="AccentBottom.TFrame")
self.center_container = ttk.Frame(self.action_status_frame, style="AccentBottom.TFrame")
self.right_container = ttk.Frame(self.action_status_frame, style="AccentBottom.TFrame")
self.action_status_frame.grid_columnconfigure(1, weight=1)
self.left_container.grid(row=0, column=0, sticky='w')
self.center_container.grid(row=0, column=1, sticky='ew')
self.right_container.grid(row=0, column=2, sticky='e')
self.status_container.grid(row=0, column=0, columnspan=3, sticky='ew')
self.left_container.grid(row=1, column=0, sticky='w')
self.center_container.grid(row=1, column=1, sticky='ew')
self.right_container.grid(row=1, column=2, sticky='e')
# --- Define Widgets ---
self.search_status_label = ttk.Label(self.status_container, text="", style="AccentBottom.TLabel")
self.status_bar = ttk.Label(self.center_container, text="", anchor="w", style="AccentBottom.TLabel")
self.search_entry = ttk.Entry(self.center_container)
self.search_status_label = ttk.Label(self.center_container, text="", style="AccentBottom.TLabel")
self.settings_button = ttk.Button(self.action_status_frame, image=self.dialog.icon_manager.get_icon('settings-2_small'),
command=self.dialog.open_settings_dialog, style="Bottom.TButton.Borderless.Round")
self.trash_button = ttk.Button(self.action_status_frame, image=self.dialog.icon_manager.get_icon('trash_small2'),
@@ -396,7 +397,7 @@ class WidgetManager:
self.center_container.grid_columnconfigure(0, weight=1)
self.filter_combobox.grid(in_=self.center_container, row=1, column=1, pady=(5,0), padx=(5,0))
self.search_status_label.grid(in_=self.center_container, row=1, column=0, sticky="w", pady=(5,0), padx=(5,0))
self.search_status_label.grid(in_=self.status_container, row=0, column=0, sticky="w", pady=(5,0), padx=(5,0))
self.right_container.grid_rowconfigure(0, weight=1)
self.trash_button.grid(in_=self.right_container, row=0, column=1, sticky="se", padx=(5,0))
@@ -421,7 +422,7 @@ class WidgetManager:
self.center_container.grid_columnconfigure(0, weight=1)
self.filter_combobox.grid(in_=self.center_container, row=0, column=1, sticky="e", pady=(5,0), padx=(5,0))
self.search_status_label.grid(in_=self.center_container, row=0, column=0, sticky="w", pady=(5,0), padx=(5,0))
self.search_status_label.grid(in_=self.status_container, row=0, column=0, sticky="w", pady=(5,0), padx=(5,0))
self.right_container.grid_rowconfigure(0, weight=1)
self.settings_button.grid(in_=self.right_container, row=0, column=0, sticky="se")
@@ -433,7 +434,7 @@ class WidgetManager:
self.settings_button.grid(in_=self.right_container, row=0, column=0, sticky="ne", pady=(0,5))
self.center_container.grid_columnconfigure(1, weight=1)
self.search_status_label.grid(in_=self.center_container, row=0, column=0, sticky="w", pady=(5,0), padx=(5,0))
self.search_status_label.grid(in_=self.status_container, row=0, column=0, sticky="w", pady=(5,0), padx=(5,0))
self.filter_combobox.grid(in_=self.center_container, row=0, column=1, sticky="e", pady=(5,0), padx=(0,5))
self.left_container.grid_rowconfigure(0, weight=1)