mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-05 00:05:57 +08:00
ui: set the bg color of controllerUnresponsivePermanent to blue (#23308)
* fix bg color * blue old-commit-hash: 5fe809b34471470b79e436d071d8278297b15a3c
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user