Cache colors outside the loop

Merged Waqar Ahmed requested to merge waqar/kate:search-color into master

Merge request reports