|
|
|
@ -311,7 +311,6 @@ void NvgWindow::drawLaneLines(QPainter &painter, const UIState *s) { |
|
|
|
|
|
|
|
|
|
// paint path
|
|
|
|
|
QLinearGradient bg(0, height(), 0, height() / 4); |
|
|
|
|
if (scene.end_to_end) { |
|
|
|
|
const auto &orientation = (*s->sm)["modelV2"].getModelV2().getOrientation(); |
|
|
|
|
float orientation_future = 0; |
|
|
|
|
if (orientation.getZ().size() > 16) { |
|
|
|
@ -325,10 +324,6 @@ void NvgWindow::drawLaneLines(QPainter &painter, const UIState *s) { |
|
|
|
|
bg.setColorAt(0.0, QColor::fromHslF(148 / 360., 0.94, 0.51, 0.4)); |
|
|
|
|
bg.setColorAt(0.75 / 1.5, QColor::fromHslF(curve_hue / 360., 1.0, 0.68, 0.35)); |
|
|
|
|
bg.setColorAt(1.0, QColor::fromHslF(curve_hue / 360., 1.0, 0.68, 0.0)); |
|
|
|
|
} else { |
|
|
|
|
bg.setColorAt(0, whiteColor()); |
|
|
|
|
bg.setColorAt(1, whiteColor(0)); |
|
|
|
|
} |
|
|
|
|
painter.setBrush(bg); |
|
|
|
|
painter.drawPolygon(scene.track_vertices.v, scene.track_vertices.cnt); |
|
|
|
|
|
|
|
|
|