code: def TextForegroundForNode(self, node, depth=0):
          
          if node == self.selectedNode:
              fg_color = wx.SystemSettings_GetColour(wx.SYS_COLOUR_HIGHLIGHTTEXT)
          else:
              fg_color = self.adapter.foreground_color(node, depth)
              if not fg_color:
                  fg_color = wx.SystemSettings_GetColour(wx.SYS_COLOUR_WINDOWTEXT)
          return fg_color
docs: Determine the text foreground color to use to display the label of
             the given node