    }
    return;
  }
  
  SignalWidget::SignalWidget(QString text, int strength, QWidget* parent) : QFrame(parent), _strength(strength) {
    layout.setMargin(0);
    layout.setSpacing(0);
    layout.insertSpacing(0, 45);
  
    label.setText(text);
    layout.addWidget(&label, 0, Qt::AlignLeft);
    label.setStyleSheet(R"(font-size: 35px; font-weight: 400;)");
  
 
</s> remove   label.setText(text);
  layout.addWidget(&label, 0, Qt::AlignLeft);
  label.setStyleSheet(R"(font-size: 35px; font-weight: 400;)");
 </s> add   label = new QLabel(this);
  label->setStyleSheet(R"(font-size: 35px; font-weight: 400;)");
  layout->addWidget(label, 0, Qt::AlignLeft); </s> remove   setLayout(&layout);
 </s> add   setLayout(layout); </s> remove   SignalWidget(QString text, int strength, QWidget* parent = 0);
  void update(QString text, int strength);
  QLabel label;
 </s> add   SignalWidget(QWidget* parent = 0);
  void update(const QString &text, int strength);
  QLabel *label; </s> remove void SignalWidget::update(QString text, int strength){
  label.setText(text);
  _strength = strength;
 </s> add void SignalWidget::update(const QString &text, int strength) {
  label->setText(text);
  if (_strength != strength) {
    _strength = strength;
    repaint();
  } </s> remove   if(msg.length() > 0){
    layout.setContentsMargins(50, 24, 16, 24);
    status.setAlignment(Qt::AlignLeft | Qt::AlignHCenter);
    status.setStyleSheet(R"(font-size: 65px; font-weight: 500;)");
 </s> add   status = new QLabel(this);
SignalWidget::SignalWidget(QWidget *parent) : QFrame(parent), _strength(0) {
  layout = new QVBoxLayout();
  layout->setMargin(0);
  layout->setSpacing(0);
  layout->insertSpacing(0, 45);
    }
    return;
  }
  
SignalWidget::SignalWidget(QWidget *parent) : QFrame(parent), _strength(0) {
  layout = new QVBoxLayout();
  layout->setMargin(0);
  layout->setSpacing(0);
  layout->insertSpacing(0, 45);
SignalWidget::SignalWidget(QWidget *parent) : QFrame(parent), _strength(0) {
  layout = new QVBoxLayout();
  layout->setMargin(0);
  layout->setSpacing(0);
  layout->insertSpacing(0, 45);
SignalWidget::SignalWidget(QWidget *parent) : QFrame(parent), _strength(0) {
  layout = new QVBoxLayout();
  layout->setMargin(0);
  layout->setSpacing(0);
  layout->insertSpacing(0, 45);
SignalWidget::SignalWidget(QWidget *parent) : QFrame(parent), _strength(0) {
  layout = new QVBoxLayout();
  layout->setMargin(0);
  layout->setSpacing(0);
  layout->insertSpacing(0, 45);
  
    label.setText(text);
    layout.addWidget(&label, 0, Qt::AlignLeft);
    label.setStyleSheet(R"(font-size: 35px; font-weight: 400;)");
  
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Sidebar: update text and color in one place (#20777)

* do not set text&color in ctor

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> 
selfdrive/ui/qt/sidebar.cc