    layout.addWidget(&label, 0, Qt::AlignLeft);
    label.setStyleSheet(R"(font-size: 35px; font-weight: 400;)");
  
    setFixedWidth(177);
    setLayout(&layout);
  }
  
  void SignalWidget::paintEvent(QPaintEvent *e){
    QPainter p(this);
    p.setRenderHint(QPainter::Antialiasing, true);
 
</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 void SignalWidget::paintEvent(QPaintEvent *e){
 </s> add void SignalWidget::paintEvent(QPaintEvent *e) { </s> remove   setLayout(&layout);
 </s> add   setLayout(layout); </s> remove SignalWidget::SignalWidget(QString text, int strength, QWidget* parent) : QFrame(parent), _strength(strength) {
  layout.setMargin(0);
  layout.setSpacing(0);
  layout.insertSpacing(0, 45);
 </s> add SignalWidget::SignalWidget(QWidget *parent) : QFrame(parent), _strength(0) {
  layout = new QVBoxLayout();
  layout->setMargin(0);
  layout->setSpacing(0);
  layout->insertSpacing(0, 45); </s> remove void StatusWidget::paintEvent(QPaintEvent *e){
 </s> add void StatusWidget::paintEvent(QPaintEvent *e) {
  setLayout(layout);
    layout.addWidget(&label, 0, Qt::AlignLeft);
    label.setStyleSheet(R"(font-size: 35px; font-weight: 400;)");
  
    setFixedWidth(177);
  setLayout(layout);
  }
  
  void SignalWidget::paintEvent(QPaintEvent *e){
    QPainter p(this);
    p.setRenderHint(QPainter::Antialiasing, true);
keep keep keep keep 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