    setFixedWidth(177);
    setLayout(&layout);
  }
  
  void SignalWidget::paintEvent(QPaintEvent *e){
    QPainter p(this);
    p.setRenderHint(QPainter::Antialiasing, true);
    p.setPen(Qt::NoPen);
    p.setBrush(Qt::white);
    for (int i = 0; i < 5 ; i++){
 
</s> remove   for (int i = 0; i < 5 ; i++){
    if(i == _strength){
 </s> add   for (int i = 0; i < 5; i++) {
    if (i == _strength) { </s> remove   setLayout(&layout);
 </s> add   setLayout(layout); </s> remove   setLayout(&layout);
 </s> add   setLayout(layout); </s> remove void StatusWidget::paintEvent(QPaintEvent *e){
 </s> add void StatusWidget::paintEvent(QPaintEvent *e) { </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);
void SignalWidget::paintEvent(QPaintEvent *e) {
    setFixedWidth(177);
    setLayout(&layout);
  }
  
void SignalWidget::paintEvent(QPaintEvent *e) {
    QPainter p(this);
    p.setRenderHint(QPainter::Antialiasing, true);
    p.setPen(Qt::NoPen);
    p.setBrush(Qt::white);
    for (int i = 0; i < 5 ; i++){
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