From 63cb0f7c20bbc4252e12090f8d62650cc799c859 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Thu, 10 Jun 2021 10:01:02 +0200 Subject: [PATCH] nav: lighter eta colors for better readability --- selfdrive/ui/qt/maps/map.cc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/selfdrive/ui/qt/maps/map.cc b/selfdrive/ui/qt/maps/map.cc index 0e4d54a35a..d5f42bf5cd 100644 --- a/selfdrive/ui/qt/maps/map.cc +++ b/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