#2579 On showing search result, text color of tree item is set to white. We need to change back color to show the result.
authordporopat <denis.poropat@smarteh.si>
Tue, 10 Apr 2018 13:36:36 +0200
changeset 1978 526013d2d462
parent 1974 b3a110daa135
child 1985 ae758ff037dc
#2579 On showing search result, text color of tree item is set to white. We need to change back color to show the result.
IDEFrame.py
--- a/IDEFrame.py	Mon Mar 19 16:18:17 2018 +0100
+++ b/IDEFrame.py	Tue Apr 10 13:36:36 2018 +0200
@@ -1537,6 +1537,7 @@
         self.ProjectTree.SetItemText(root, item_name)
         self.ProjectTree.SetPyData(root, infos)
         highlight_colours = self.Highlights.get(infos.get("tagname", None), (wx.Colour(255, 255, 255, 0), wx.BLACK))
+        self.ProjectTree.SetItemBackgroundColour(root, highlight_colours[0])
         self.ProjectTree.SetItemTextColour(root, highlight_colours[1])
         self.ProjectTree.SetItemExtraImage(root, None)
         if infos["type"] == ITEM_POU: