From 23b1f2d646cf5e9dcdded7a264b69399d9e39867 Mon Sep 17 00:00:00 2001 From: Maxime Desroches Date: Mon, 23 Sep 2024 18:16:14 -0700 Subject: [PATCH] fix set speed color (#33634) color --- selfdrive/ui/qt/onroad/hud.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/onroad/hud.cc b/selfdrive/ui/qt/onroad/hud.cc index ebd95dab4..50b563b22 100644 --- a/selfdrive/ui/qt/onroad/hud.cc +++ b/selfdrive/ui/qt/onroad/hud.cc @@ -68,13 +68,13 @@ void HudRenderer::drawSetSpeed(QPainter &p, const QRect &surface_rect) { QColor max_color = QColor(0xa6, 0xa6, 0xa6, 0xff); QColor set_speed_color = QColor(0x72, 0x72, 0x72, 0xff); if (is_cruise_set) { + set_speed_color = QColor(255, 255, 255); if (status == STATUS_DISENGAGED) { max_color = QColor(255, 255, 255); } else if (status == STATUS_OVERRIDE) { max_color = QColor(0x91, 0x9b, 0x95, 0xff); } else { max_color = QColor(0x80, 0xd8, 0xa6, 0xff); - set_speed_color = QColor(255, 255, 255); } }