Skip to content

Commit

Permalink
ui: set the bg color of controllerUnresponsivePermanent to blue (comm…
Browse files Browse the repository at this point in the history
…aai#23308)

* fix bg color

* blue
  • Loading branch information
deanlee authored Dec 28, 2021
1 parent 4c7c2cc commit 5fe809b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions selfdrive/ui/qt/onroad.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5fe809b

Please sign in to comment.