    setStyleSheet("background-color: transparent;");
    setLayout(&layout);
  }
  
  void StatusWidget::paintEvent(QPaintEvent *e){
    QPainter p(this);
    p.setRenderHint(QPainter::Antialiasing, true);
    p.setPen(QPen(QColor(0xb2b2b2), 3, Qt::SolidLine, Qt::FlatCap));
    // origin at 1.5,1.5 because qt issues with pixel perfect borders
    p.drawRoundedRect(QRectF(1.5, 1.5, size().width()-3, size().height()-3), 30, 30);
 
</s> remove   setLayout(&layout);
 </s> add   setLayout(layout); </s> remove   setLayout(&layout);
 </s> add   setLayout(layout); </s> remove void SignalWidget::paintEvent(QPaintEvent *e){
 </s> add void SignalWidget::paintEvent(QPaintEvent *e) { </s> remove   update(label, msg, c);

 </s> add  </s> remove   for (int i = 0; i < 5 ; i++){
    if(i == _strength){
 </s> add   for (int i = 0; i < 5; i++) {
    if (i == _strength) {
void StatusWidget::paintEvent(QPaintEvent *e) {
    setStyleSheet("background-color: transparent;");
    setLayout(&layout);
  }
  
void StatusWidget::paintEvent(QPaintEvent *e) {
    QPainter p(this);
    p.setRenderHint(QPainter::Antialiasing, true);
    p.setPen(QPen(QColor(0xb2b2b2), 3, Qt::SolidLine, Qt::FlatCap));
    // origin at 1.5,1.5 because qt issues with pixel perfect borders
    p.drawRoundedRect(QRectF(1.5, 1.5, size().width()-3, size().height()-3), 30, 30);
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