Keep palette swatches borderless on hover

This commit is contained in:
lm 2025-10-17 13:56:34 +02:00
parent 21c22692a5
commit 82cafc58e6
1 changed files with 2 additions and 2 deletions

View File

@ -186,8 +186,8 @@ class UIBuilderMixin:
swatch.bind("<Button-1>", trigger)
swatch.bind("<space>", trigger)
swatch.bind("<Return>", trigger)
swatch.bind("<Enter>", lambda _e: swatch.configure(highlightthickness=1, highlightbackground="#71717a"))
swatch.bind("<Leave>", lambda _e: swatch.configure(highlightthickness=0))
swatch.bind("<Enter>", lambda _e: swatch.configure(cursor="hand2"))
swatch.bind("<Leave>", lambda _e: swatch.configure(cursor="arrow"))
def _add_toolbar_button(self, parent, text: str, command) -> None:
font = tkfont.Font(root=self.root, family="Segoe UI", size=9)