ui: ensure driving path is colored when cruise state enabled (#124)

This commit is contained in:
Jason Wen
2023-06-10 06:58:49 -04:00
committed by GitHub
parent 547059a67f
commit bf19c7dddf
+1 -1
View File
@@ -1500,7 +1500,7 @@ void AnnotatedCameraWidget::drawLaneLines(QPainter &painter, const UIState *s) {
bg.setColorAt(0.0, QColor::fromHslF(20 / 360., 0.94, 0.51, 0.17));
bg.setColorAt(0.5, QColor::fromHslF(20 / 360., 1.0, 0.68, 0.17));
bg.setColorAt(1.0, QColor::fromHslF(20 / 360., 1.0, 0.68, 0.0));
} else if (!latActive) {
} else if (!(latActive || sm["carState"].getCarState().getCruiseState().getEnabled())) {
bg.setColorAt(0, whiteColor());
bg.setColorAt(1, whiteColor(0));
} else if (sm["controlsState"].getControlsState().getExperimentalMode()) {