From a6df944ba17e999f422a958acc4cd7af270ceb64 Mon Sep 17 00:00:00 2001 From: lm Date: Fri, 17 Oct 2025 17:15:54 +0200 Subject: [PATCH] Tweak toolbar order Move the free-draw toggle ahead of the clear button and normalise icon spacing so the new entry aligns with the rest. --- app/gui/ui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/gui/ui.py b/app/gui/ui.py index 0ec0ea0..0cbfd3a 100644 --- a/app/gui/ui.py +++ b/app/gui/ui.py @@ -22,8 +22,8 @@ class UIBuilderMixin: ("๐ŸŽจ", self._t("toolbar.choose_color"), self.choose_color), ("๐Ÿ–ฑ", self._t("toolbar.pick_from_image"), self.enable_pick_mode), ("๐Ÿ’พ", self._t("toolbar.save_overlay"), self.save_overlay), - ("๐Ÿงน", self._t("toolbar.clear_excludes"), self.clear_excludes), ("โœ๏ธ", self._t("toolbar.toggle_free_draw"), self.toggle_exclusion_mode), + ("๐Ÿงน", self._t("toolbar.clear_excludes"), self.clear_excludes), ("โ†ฉ", self._t("toolbar.undo_exclude"), self.undo_exclude), ("๐Ÿ”„", self._t("toolbar.reset_sliders"), self.reset_sliders), ("๐ŸŒ“", self._t("toolbar.toggle_theme"), self.toggle_theme), @@ -230,7 +230,7 @@ class UIBuilderMixin: font = tkfont.Font(root=self.root, family="Segoe UI", size=9) padding_x = 12 gap = font.measure(" ") - icon_width = font.measure(icon) + icon_width = font.measure(icon) or font.measure(" ") label_width = font.measure(label) width = padding_x * 2 + icon_width + gap + label_width height = 28