      {NET_CONNECTED, {"CONNECT\nONLINE", COLOR_GOOD}},
      {NET_DISCONNECTED, {"CONNECT\nOFFLINE", COLOR_WARNING}},
    };
    auto net_params = connectivity_map[s.scene.athenaStatus];
    connect->update(net_params.first, "", net_params.second);
  
    static std::map<cereal::DeviceState::ThermalStatus, QColor> temp_severity_map = {
          {cereal::DeviceState::ThermalStatus::GREEN, COLOR_GOOD},
          {cereal::DeviceState::ThermalStatus::YELLOW, COLOR_WARNING},
          {cereal::DeviceState::ThermalStatus::RED, COLOR_DANGER},
 
</s> remove     {NET_ERROR, {"CONNECT\nERROR", COLOR_DANGER}},
    {NET_CONNECTED, {"CONNECT\nONLINE", COLOR_GOOD}},
    {NET_DISCONNECTED, {"CONNECT\nOFFLINE", COLOR_WARNING}},
 </s> add       {NET_ERROR, {"CONNECT\nERROR", COLOR_DANGER}},
      {NET_CONNECTED, {"CONNECT\nONLINE", COLOR_GOOD}},
      {NET_DISCONNECTED, {"CONNECT\nOFFLINE", COLOR_WARNING}}, </s> remove void Sidebar::update(const UIState &s){
 </s> add void Sidebar::update(const UIState &s) { </s> remove   connect = new StatusWidget("CONNECT\nOFFLINE", "",  QColor(218, 202, 37), this);
 </s> add   connect = new StatusWidget(false, this); </s> remove   panda->update(panda_message, "", panda_color);
 </s> add   panda->update(panda_message, panda_color);
  connect->update(net_params.first, net_params.second);
      {NET_CONNECTED, {"CONNECT\nONLINE", COLOR_GOOD}},
      {NET_DISCONNECTED, {"CONNECT\nOFFLINE", COLOR_WARNING}},
    };
    auto net_params = connectivity_map[s.scene.athenaStatus];
  connect->update(net_params.first, net_params.second);
  
    static std::map<cereal::DeviceState::ThermalStatus, QColor> temp_severity_map = {
          {cereal::DeviceState::ThermalStatus::GREEN, COLOR_GOOD},
          {cereal::DeviceState::ThermalStatus::YELLOW, COLOR_WARNING},
          {cereal::DeviceState::ThermalStatus::RED, COLOR_DANGER},
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