change white background for project tree element to transparent
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Mon, 16 Jan 2017 12:15:20 +0300
changeset 1635 25e3bf6e193d
parent 1632 6e1ea3451c23
child 1636 ad3dee8b6d48
change white background for project tree element to transparent

because on GNU/Linux project tree has grey background, therefore
white background looks not good.
IDEFrame.py
--- a/IDEFrame.py	Fri Jan 13 20:05:59 2017 +0300
+++ b/IDEFrame.py	Mon Jan 16 12:15:20 2017 +0300
@@ -1491,8 +1491,7 @@
             item_name = _(item_name)
         self.ProjectTree.SetItemText(root, item_name)
         self.ProjectTree.SetPyData(root, infos)
-        highlight_colours = self.Highlights.get(infos.get("tagname", None), (wx.WHITE, wx.BLACK))
-        self.ProjectTree.SetItemBackgroundColour(root, highlight_colours[0])
+        highlight_colours = self.Highlights.get(infos.get("tagname", None), (wx.Colour(255, 255, 255, 0), wx.BLACK))
         self.ProjectTree.SetItemTextColour(root, highlight_colours[1])
         self.ProjectTree.SetItemExtraImage(root, None)
         if infos["type"] == ITEM_POU: