ui: set the bg color of controllerUnresponsivePermanent to blue (#23308)

* fix bg color

* blue
old-commit-hash: 5fe809b34471470b79e436d071d8278297b15a3c
This commit is contained in:
Dean Lee
2021-12-28 15:50:24 +08:00
committed by GitHub
parent 0e3f1eae46
commit 70b297f5db
+2
View File
@@ -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);
}