summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/TreeWidget.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2015-11-12 20:02:57 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2015-11-12 20:02:57 (GMT)
commitd0c0f0041c3eb561adfa57179bc41f4dae212317 (patch)
tree5c9d1a6b937f7f89aff55ffcb21802aacf95d875 /Lib/idlelib/TreeWidget.py
parent84023247b432afba7075e87090986bca72a0e8b0 (diff)
downloadcpython-d0c0f0041c3eb561adfa57179bc41f4dae212317.zip
cpython-d0c0f0041c3eb561adfa57179bc41f4dae212317.tar.gz
cpython-d0c0f0041c3eb561adfa57179bc41f4dae212317.tar.bz2
Issue #25313: Change the handling of new built-in text color themes to better
address the compatibility problem introduced by the addition of IDLE Dark. Consistently use the revised idleConf.CurrentTheme everywhere in idlelib.
Diffstat (limited to 'Lib/idlelib/TreeWidget.py')
-rw-r--r--Lib/idlelib/TreeWidget.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/TreeWidget.py b/Lib/idlelib/TreeWidget.py
index 4844a69..a19578f 100644
--- a/Lib/idlelib/TreeWidget.py
+++ b/Lib/idlelib/TreeWidget.py
@@ -249,7 +249,7 @@ class TreeNode:
except AttributeError:
# padding carefully selected (on Windows) to match Entry widget:
self.label = Label(self.canvas, text=text, bd=0, padx=2, pady=2)
- theme = idleConf.GetOption('main','Theme','name')
+ theme = idleConf.CurrentTheme()
if self.selected:
self.label.configure(idleConf.GetHighlight(theme, 'hilite'))
else: