Replace this switch by 

```cpp
std::string colorStr = ItemQualityColors[item_quality];
```

ItemQualityColors is an array defined at line 252 of SharedDefines.h