Instead of creating a new QColor for each condition just use the `setRgb` method or fix the conditions order.