Keep palette swatches borderless on hover
This commit is contained in:
parent
21c22692a5
commit
82cafc58e6
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue