Keep palette swatches borderless on hover
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user