mirror of https://github.com/python/cpython
bpo-36176: Fix IDLE autocomplete & calltip popup colors. (#12262)
Prevent conflicts with Linux dark themes (and slightly darken calltip background).
This commit is contained in:
parent
0e1f1f0105
commit
491ef53c15
|
@ -3,7 +3,11 @@ Released on 2019-10-20?
|
|||
======================================
|
||||
|
||||
|
||||
bpl-36152: Remove colorizer.ColorDelegator.close_when_done and the
|
||||
bpo-36176: Fix IDLE autocomplete & calltip popup colors.
|
||||
Prevent conflicts with Linux dark themes
|
||||
(and slightly darken calltip background).
|
||||
|
||||
bpo-36152: Remove colorizer.ColorDelegator.close_when_done and the
|
||||
corresponding argument of .close(). In IDLE, both have always been
|
||||
None or False since 2007.
|
||||
|
||||
|
|
|
@ -189,7 +189,7 @@ class AutoCompleteWindow:
|
|||
pass
|
||||
self.scrollbar = scrollbar = Scrollbar(acw, orient=VERTICAL)
|
||||
self.listbox = listbox = Listbox(acw, yscrollcommand=scrollbar.set,
|
||||
exportselection=False, bg="white")
|
||||
exportselection=False)
|
||||
for item in self.completions:
|
||||
listbox.insert(END, item)
|
||||
self.origselforeground = listbox.cget("selectforeground")
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
Fix IDLE autocomplete & calltip popup colors. Prevent conflicts with Linux
|
||||
dark themes (and slightly darken calltip background).
|
Loading…
Reference in New Issue