- painter.fillRect(margin, 0, width - 2 * margin, height, Qt::black);
-
- // TODO: QLinearGradient is not gamma-correct; we might want to correct for that.
- QLinearGradient on(0, 0, 0, height);
- on.setColorAt(0.0f, QColor(255, 0, 0));
- on.setColorAt(0.5f, QColor(255, 255, 0));
- on.setColorAt(1.0f, QColor(0, 255, 0));
- QColor off(80, 80, 80);
+ painter.fillRect(horizontal_margin, y_offset, width - 2 * horizontal_margin, height, Qt::black);