Diff of /plugins/codetree.py [17c6bf] .. [82ddff] Maximize Restore

  Switch to side-by-side view

--- a/plugins/codetree.py
+++ b/plugins/codetree.py
@@ -4,6 +4,17 @@
 icons = 1
 colors = 1
 newroot = sys.platform != 'win32'
+
+blue = wx.Colour(0, 0, 200)
+red = wx.Colour(200, 0, 0)
+green = wx.Colour(0, 200, 0)
+
+D = {'cl':blue,
+     'de':red,
+     'cd':green,
+     '\\l':red,
+     '\\s':blue,
+     '#d':green}
 
 class TreeCtrl(wx.TreeCtrl):
     def __init__(self, parent, st):
@@ -58,14 +69,6 @@
             self.tree.root = self.tree.AddRoot("Unseen Root")
         root = [self.tree.root]
         stk = [hier[:]]
-        blue = wx.Colour(0, 0, 200)
-        red = wx.Colour(200, 0, 0)
-        green = wx.Colour(0, 200, 0)
-        D = {'cl':blue,
-             'de':red,
-             'cd':green,
-             '\\l':red,
-             '\\s':blue}
         while stk:
             cur = stk.pop()
             while cur: