Added search in legend color to rule