summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/calltip_w.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2019-03-11 00:18:40 (GMT)
committerGitHub <noreply@github.com>2019-03-11 00:18:40 (GMT)
commit491ef53c1548c2b593d3c35d1e7bf25ccb443019 (patch)
tree0cf9a3cc3a4057813fc8af4e6a10e7fbec389513 /Lib/idlelib/calltip_w.py
parent0e1f1f01058bd4a9b98cfe443214adecc019a38c (diff)
downloadcpython-491ef53c1548c2b593d3c35d1e7bf25ccb443019.zip
cpython-491ef53c1548c2b593d3c35d1e7bf25ccb443019.tar.gz
cpython-491ef53c1548c2b593d3c35d1e7bf25ccb443019.tar.bz2
bpo-36176: Fix IDLE autocomplete & calltip popup colors. (#12262)
Prevent conflicts with Linux dark themes (and slightly darken calltip background).
Diffstat (limited to 'Lib/idlelib/calltip_w.py')
-rw-r--r--Lib/idlelib/calltip_w.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/idlelib/calltip_w.py b/Lib/idlelib/calltip_w.py
index 7553dfe..1e0404a 100644
--- a/Lib/idlelib/calltip_w.py
+++ b/Lib/idlelib/calltip_w.py
@@ -80,7 +80,8 @@ class CalltipWindow(TooltipBase):
def showcontents(self):
"""Create the call-tip widget."""
self.label = Label(self.tipwindow, text=self.text, justify=LEFT,
- background="#ffffe0", relief=SOLID, borderwidth=1,
+ background="#ffffd0", foreground="black",
+ relief=SOLID, borderwidth=1,
font=self.anchor_widget['font'])
self.label.pack()