  
  #include "selfdrive/common/swaglog.h"
  #include "selfdrive/common/timing.h"
  #include "selfdrive/ui/paint.h"
  #include "selfdrive/ui/qt/qt_window.h"
  
  OnroadWindow::OnroadWindow(QWidget *parent) : QWidget(parent) {
    layout = new QStackedLayout();
    layout->setStackingMode(QStackedLayout::StackAll);
  
 
</s> remove 
void configFont(QPainter &p, QString family, int size, int weight) {
  QFont f(family);
  f.setPixelSize(size);
  f.setWeight(weight);
  p.setFont(f);
}
 </s> add #include "selfdrive/ui/qt/util.h" </s> remove   QObject::connect(this, &OnroadWindow::update, alerts, &OnroadAlerts::update);
 </s> add   QObject::connect(this, &OnroadWindow::update, alerts, &OnroadAlerts::updateState); </s> remove     configFont(p, "Open Sans", 35, 400);
 </s> add     configFont(p, "Open Sans", 35, "Regular"); </s> remove class OnroadAlerts : public QFrame {
 </s> add class OnroadAlerts : public QWidget {
#include "selfdrive/ui/qt/util.h"
  
  #include "selfdrive/common/swaglog.h"
  #include "selfdrive/common/timing.h"
  #include "selfdrive/ui/paint.h"
#include "selfdrive/ui/qt/util.h"
  
  OnroadWindow::OnroadWindow(QWidget *parent) : QWidget(parent) {
    layout = new QStackedLayout();
    layout->setStackingMode(QStackedLayout::StackAll);
  
keep keep keep keep replace keep keep keep keep keep
 match nvg onroad alerts (#20854) 
selfdrive/ui/qt/onroad.cc