Added recursive method for getting inherited colors