|
|
@ -331,10 +331,9 @@ void NvgWindow::drawLaneLines(QPainter &painter, const UIState *s) { |
|
|
|
// FIXME: painter.drawPolygon can be slow if hue is not rounded
|
|
|
|
// FIXME: painter.drawPolygon can be slow if hue is not rounded
|
|
|
|
curve_hue = int(curve_hue * 100 + 0.5) / 100; |
|
|
|
curve_hue = int(curve_hue * 100 + 0.5) / 100; |
|
|
|
|
|
|
|
|
|
|
|
bg.setColorAt(0.0 / 1.5, QColor::fromHslF(148 / 360., 1.0, 0.5, 1.0)); |
|
|
|
bg.setColorAt(0.0, QColor::fromHslF(148 / 360., 0.94, 0.51, 0.4)); |
|
|
|
bg.setColorAt(0.55 / 1.5, QColor::fromHslF(112 / 360., 1.0, 0.68, 0.8)); |
|
|
|
bg.setColorAt(0.75 / 1.5, QColor::fromHslF(curve_hue / 360., 1.0, 0.68, 0.35)); |
|
|
|
bg.setColorAt(0.9 / 1.5, QColor::fromHslF(curve_hue / 360., 1.0, 0.65, 0.6)); |
|
|
|
bg.setColorAt(1.0, QColor::fromHslF(curve_hue / 360., 1.0, 0.68, 0.0)); |
|
|
|
bg.setColorAt(1.0, QColor::fromHslF(curve_hue / 360., 1.0, 0.65, 0.0)); |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
bg.setColorAt(0, whiteColor()); |
|
|
|
bg.setColorAt(0, whiteColor()); |
|
|
|
bg.setColorAt(1, whiteColor(0)); |
|
|
|
bg.setColorAt(1, whiteColor(0)); |
|
|
|