Skip to content

Commit ea16270

Browse files
bpo-36176: Fix IDLE autocomplete & calltip popup colors. (GH-12262)
Prevent conflicts with Linux dark themes (and slightly darken calltip background). (cherry picked from commit 491ef53) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
1 parent 97c7d78 commit ea16270

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

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-??-??
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy