From 5fe809b34471470b79e436d071d8278297b15a3c Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Tue, 28 Dec 2021 15:50:24 +0800 Subject: [PATCH] ui: set the bg color of controllerUnresponsivePermanent to blue (#23308) * fix bg color * blue --- selfdrive/ui/qt/onroad.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/selfdrive/ui/qt/onroad.cc b/selfdrive/ui/qt/onroad.cc index e978aaf104cdd5..e394d1248afe1b 100644 --- a/selfdrive/ui/qt/onroad.cc +++ b/selfdrive/ui/qt/onroad.cc @@ -51,6 +51,8 @@ void OnroadWindow::updateState(const UIState &s) { if (s.sm->updated("controlsState") || !alert.equal({})) { if (alert.type == "controlsUnresponsive") { bgColor = bg_colors[STATUS_ALERT]; + } else if (alert.type == "controlsUnresponsivePermanent") { + bgColor = bg_colors[STATUS_DISENGAGED]; } alerts->updateAlert(alert, bgColor); }