From bf19c7dddfd5ef1ffde70c5f5482b760b0416afc Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Sat, 10 Jun 2023 06:58:49 -0400 Subject: [PATCH] ui: ensure driving path is colored when cruise state enabled (#124) --- selfdrive/ui/qt/onroad.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/onroad.cc b/selfdrive/ui/qt/onroad.cc index 42cd072e4c..1f3a7b1dfe 100644 --- a/selfdrive/ui/qt/onroad.cc +++ b/selfdrive/ui/qt/onroad.cc @@ -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()) {