nav: lighter eta colors for better readability

pull/21219/head
Willem Melching 4 years ago
parent 3c197953bc
commit 63cb0f7c20
  1. 14
      selfdrive/ui/qt/maps/map.cc

@ -688,15 +688,17 @@ void MapETA::updateETA(float s, float s_typical, float d) {
time_unit->setText("hr");
}
s = s_typical * 1.6;
if (s / s_typical > 1.5) {
time_unit->setStyleSheet(R"(color: #c92231; )");
time->setStyleSheet(R"(color: #c92231; )");
time_unit->setStyleSheet(R"(color: #DA3025; )");
time->setStyleSheet(R"(color: #DA3025; )");
} else if (s / s_typical > 1.2) {
time_unit->setStyleSheet(R"(color: #da6f25; )");
time->setStyleSheet(R"(color: #da6f25; )");
time_unit->setStyleSheet(R"(color: #DAA725; )");
time->setStyleSheet(R"(color: #DAA725; )");
} else {
time_unit->setStyleSheet(R"(color: #178644; )");
time->setStyleSheet(R"(color: #178644; )");
time_unit->setStyleSheet(R"(color: #25DA6E; )");
time->setStyleSheet(R"(color: #25DA6E; )");
}
// Distance

Loading…
Cancel
Save