wip
This commit is contained in:
@@ -622,15 +622,15 @@ void AnnotatedCameraWidget::drawLaneLines(QPainter &painter, const UIState *s) {
|
||||
|
||||
QColor center_lane_color;
|
||||
|
||||
if (is_no_lat_lane_change) {
|
||||
center_lane_color = bg_colors[CHANGE_LANE_PATH_COLOR];
|
||||
} else {
|
||||
// if (is_no_lat_lane_change) {
|
||||
// center_lane_color = bg_colors[CHANGE_LANE_PATH_COLOR];
|
||||
// } else {
|
||||
center_lane_color = bg_colors[CENTER_LANE_COLOR];
|
||||
}
|
||||
// }
|
||||
|
||||
QLinearGradient path_gradient(0, height(), 0, 0);
|
||||
|
||||
if (edgeColor != bg_colors[STATUS_DISENGAGED] || is_no_lat_lane_change) {
|
||||
// if (edgeColor != bg_colors[STATUS_DISENGAGED] || is_no_lat_lane_change) {
|
||||
if (scene.acceleration_path) {
|
||||
// The first half of track_vertices are the points for the right side of the path
|
||||
// and the indices match the positions of accel from uiPlan
|
||||
@@ -680,7 +680,7 @@ void AnnotatedCameraWidget::drawLaneLines(QPainter &painter, const UIState *s) {
|
||||
|
||||
painter.setBrush(path_gradient);
|
||||
painter.drawPolygon(scene.track_vertices);
|
||||
}
|
||||
// }
|
||||
|
||||
// Paint path edges ,Use current background color
|
||||
if (edgeColor != bg_colors[STATUS_DISENGAGED]) {
|
||||
|
||||
Reference in New Issue
Block a user