8000 Fix tk tooltips for dark themes. · matplotlib/matplotlib@0c8afdd · GitHub
[go: up one dir, main page]

Skip to content

Commit 0c8afdd

Browse files
committed
Fix tk tooltips for dark themes.
Not setting the background explicitly to a light color is sufficient to avoid having white text on a light color when using a dark desktop theme. (The forced background color goes back to when ToolTip was introduced, in c887139, with no comment as to why.)
1 parent 0cf3974 commit 0c8afdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/_backend_tk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ def showtip(self, text):
684684
except tk.TclError:
685685
pass
686686
label = tk.Label(tw, text=self.text, justify=tk.LEFT,
687-
background="#ffffe0", relief=tk.SOLID, borderwidth=1)
687+
relief=tk.SOLID, borderwidth=1)
688688
label.pack(ipadx=1)
689689

690690
def hidetip(self):

0 commit comments

Comments
 (0)
0