mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-25 09:52:05 +08:00
ui: ensure driving path is colored when cruise state enabled (#124)
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user