fix set speed color (#33634)

color
pull/33644/head
Maxime Desroches 7 months ago committed by GitHub
parent 35581d31eb
commit 23b1f2d646
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      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 max_color = QColor(0xa6, 0xa6, 0xa6, 0xff);
QColor set_speed_color = QColor(0x72, 0x72, 0x72, 0xff); QColor set_speed_color = QColor(0x72, 0x72, 0x72, 0xff);
if (is_cruise_set) { if (is_cruise_set) {
set_speed_color = QColor(255, 255, 255);
if (status == STATUS_DISENGAGED) { if (status == STATUS_DISENGAGED) {
max_color = QColor(255, 255, 255); max_color = QColor(255, 255, 255);
} else if (status == STATUS_OVERRIDE) { } else if (status == STATUS_OVERRIDE) {
max_color = QColor(0x91, 0x9b, 0x95, 0xff); max_color = QColor(0x91, 0x9b, 0x95, 0xff);
} else { } else {
max_color = QColor(0x80, 0xd8, 0xa6, 0xff); max_color = QColor(0x80, 0xd8, 0xa6, 0xff);
set_speed_color = QColor(255, 255, 255);
} }
} }

Loading…
Cancel
Save