def getColor(self, item): vis = self.getVisualization() if vis.isInGroup(item, Visualization.FOCUS_ITEMS): return ColorLib.rgb(50, 50, 255) elif vis.isInGroup(item, Visualization.SEARCH_ITEMS): return ColorLib.rgb(220, 220, 255) else: return ColorLib.rgba(255, 255, 255, 0)
def getColor(self, item): vis = self.getVisualization() if item.getInt('child_count') > 0: return ColorLib.rgb(50, 50, 50) else: return ColorLib.rgba(255, 255, 255, 0)