diff --git a/selfdrive/ui/qt/home.cc b/selfdrive/ui/qt/home.cc index 0e4d9acc7..bc402eec8 100644 --- a/selfdrive/ui/qt/home.cc +++ b/selfdrive/ui/qt/home.cc @@ -99,7 +99,9 @@ void OffroadHome::refresh() { } alert_notification->setVisible(true); - alert_notification->setStyleSheet(QString(R"( + + // Red background for alerts, blue for update available + QString style = QString(R"( padding: 15px; padding-left: 30px; padding-right: 30px; @@ -108,7 +110,11 @@ void OffroadHome::refresh() { font-size: 40px; font-weight: bold; background-color: red; - )")); + )"); + if (alerts_widget->updateAvailable){ + style.replace("red", "blue"); + } + alert_notification->setStyleSheet(style); }