    text1 = t1;
    text2 = t2;
    alert_type = type;
    blinking_rate = blink_rate;
  
    update();
  }
 
</s> remove   title->setText(text1);
  msg->setText(text2);
  msg->setVisible(!msg->text().isEmpty());

  if (size == cereal::ControlsState::AlertSize::SMALL) {
    setFixedHeight(241);
    title->setStyleSheet("font-size: 70px; font-weight: 500;");
  } else if (size == cereal::ControlsState::AlertSize::MID) {
    setFixedHeight(390);
    msg->setStyleSheet("font-size: 65px; font-weight: 400;");
    title->setStyleSheet("font-size: 80px; font-weight: 500;");
  } else if (size == cereal::ControlsState::AlertSize::FULL) {
    setFixedHeight(vwp_h);
    int title_size = (title->text().size() > 15) ? 130 : 110;
    title->setStyleSheet(QString("font-size: %1px; font-weight: 500;").arg(title_size));
    msg->setStyleSheet("font-size: 90px; font-weight: 400;");
  }
 </s> add  </s> remove   setVisible(size != cereal::ControlsState::AlertSize::NONE);
  repaint();
 </s> add   update();
  alert_size = size;
    text1 = t1;
    text2 = t2;
    alert_type = type;
  alert_size = size;
    blinking_rate = blink_rate;
  
    update();
  }
keep keep add keep keep keep keep
 match nvg onroad alerts (#20854) 
selfdrive/ui/qt/onroad.cc