Tint titlebar close button on hover
This commit is contained in:
parent
191f454561
commit
e624419a01
|
|
@ -399,6 +399,8 @@ class UIBuilderMixin:
|
||||||
width=3,
|
width=3,
|
||||||
)
|
)
|
||||||
close_btn.pack(side=tk.RIGHT, padx=8, pady=4)
|
close_btn.pack(side=tk.RIGHT, padx=8, pady=4)
|
||||||
|
close_btn.bind("<Enter>", lambda _e: close_btn.configure(bg="#cf212f"))
|
||||||
|
close_btn.bind("<Leave>", lambda _e: close_btn.configure(bg=bar_bg))
|
||||||
|
|
||||||
for widget in (title_bar, title_label):
|
for widget in (title_bar, title_label):
|
||||||
widget.bind("<ButtonPress-1>", self._start_window_drag)
|
widget.bind("<ButtonPress-1>", self._start_window_drag)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue