Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 491ef53

Browse files
authored
bpo-36176: Fix IDLE autocomplete & calltip popup colors. (#12262)
Prevent conflicts with Linux dark themes (and slightly darken calltip background).
1 parent 0e1f1f0 commit 491ef53

4 files changed

Lines changed: 10 additions & 3 deletions

File tree

Lib/idlelib/NEWS.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ Released on 2019-10-20?
33
======================================
44

55

6-
bpl-36152: Remove colorizer.ColorDelegator.close_when_done and the
6+
bpo-36176: Fix IDLE autocomplete & calltip popup colors.
7+
Prevent conflicts with Linux dark themes
8+
(and slightly darken calltip background).
9+
10+
bpo-36152: Remove colorizer.ColorDelegator.close_when_done and the
711
corresponding argument of .close(). In IDLE, both have always been
812
None or False since 2007.
913

Lib/idlelib/autocomplete_w.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def show_window(self, comp_lists, index, complete, mode, userWantsWin):
189189
pass
190190
self.scrollbar = scrollbar = Scrollbar(acw, orient=VERTICAL)
191191
self.listbox = listbox = Listbox(acw, yscrollcommand=scrollbar.set,
192-
exportselection=False, bg="white")
192+
exportselection=False)
193193
for item in self.completions:
194194
listbox.insert(END, item)
195195
self.origselforeground = listbox.cget("selectforeground")

Lib/idlelib/calltip_w.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ def showtip(self, text, parenleft, parenright):
8080
def showcontents(self):
8181
"""Create the call-tip widget."""
8282
self.label = Label(self.tipwindow, text=self.text, justify=LEFT,
83-
background="#ffffe0", relief=SOLID, borderwidth=1,
83+
background="#ffffd0", foreground="black",
84+
relief=SOLID, borderwidth=1,
8485
font=self.anchor_widget['font'])
8586
self.label.pack()
8687

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix IDLE autocomplete & calltip popup colors. Prevent conflicts with Linux
2+
dark themes (and slightly darken calltip background).

0 commit comments

Comments
 (0)