api.getItemQualityColor: new implementation