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.
This commit is contained in:
lm 2025-10-17 17:15:54 +02:00
parent 464855f365
commit a6df944ba1
1 changed files with 2 additions and 2 deletions

View File

@ -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