diff --git a/app/gui/ui.py b/app/gui/ui.py index 566b5b5..7f0f9f2 100644 --- a/app/gui/ui.py +++ b/app/gui/ui.py @@ -192,11 +192,11 @@ class UIBuilderMixin: swatch.bind("", lambda _e: swatch.configure(highlightbackground="#b1b1b6")) def _add_toolbar_button(self, parent, text: str, command) -> None: - font = tkfont.Font(root=self.root, family="Segoe UI", size=10, weight="bold") - padding_x = 18 + font = tkfont.Font(root=self.root, family="Segoe UI", size=9) + padding_x = 12 width = font.measure(text) + padding_x * 2 - height = 32 - radius = 12 + height = 28 + radius = 9 bg = self.root.cget("bg") if hasattr(self.root, "cget") else "#f2f2f7" canvas = tk.Canvas( parent, @@ -209,7 +209,7 @@ class UIBuilderMixin: cursor="hand2", takefocus=1, ) - canvas.pack(side=tk.LEFT, padx=6) + canvas.pack(side=tk.LEFT, padx=4, pady=1) palette = self._toolbar_palette() rect_id = self._create_round_rect(