      status.setStyleSheet(R"(font-size: 38px; font-weight: 500;)");
      layout.addWidget(&status, 0, Qt::AlignCenter);
    }
  
    update(label, msg, c);
  
    setMinimumHeight(124);
    setStyleSheet("background-color: transparent;");
    setLayout(&layout);
  }
  
 
</s> remove     status.setAlignment(Qt::AlignCenter);
    status.setStyleSheet(R"(font-size: 38px; font-weight: 500;)");
    layout.addWidget(&status, 0, Qt::AlignCenter);
 </s> add     status->setAlignment(Qt::AlignCenter);
    status->setStyleSheet(R"(font-size: 38px; font-weight: 500;)");
    layout->addWidget(status, 0, Qt::AlignCenter); </s> remove   setLayout(&layout);
 </s> add   setLayout(layout); </s> remove     layout.setContentsMargins(40, 24, 16, 24);
 </s> add     layout->setContentsMargins(40, 24, 16, 24); </s> remove     layout.addWidget(&status, 0, Qt::AlignLeft);
    layout.addWidget(&substatus, 0, Qt::AlignLeft);
 </s> add     substatus = new QLabel(this);
    substatus->setAlignment(Qt::AlignLeft | Qt::AlignHCenter);
    substatus->setStyleSheet(R"(font-size: 30px; font-weight: 400;)");

    layout->addWidget(status, 0, Qt::AlignLeft);
    layout->addWidget(substatus, 0, Qt::AlignLeft); </s> remove void StatusWidget::paintEvent(QPaintEvent *e){
 </s> add void StatusWidget::paintEvent(QPaintEvent *e) {
      status.setStyleSheet(R"(font-size: 38px; font-weight: 500;)");
      layout.addWidget(&status, 0, Qt::AlignCenter);
    }
  


    setMinimumHeight(124);
    setStyleSheet("background-color: transparent;");
    setLayout(&layout);
  }
  
keep keep keep keep 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