From 96ef36dcb4d1b9455f7b46b81df1a68ac02a6779 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Mon, 18 Apr 2022 13:32:09 -0700 Subject: [PATCH] ui: adjust laneless design (#24246) * tune design * adjust * adjust * fix and compromise! * fix sl old-commit-hash: fdeb590ae66bc2e6d930803c4401cea98d99786b --- selfdrive/ui/qt/onroad.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/selfdrive/ui/qt/onroad.cc b/selfdrive/ui/qt/onroad.cc index 8af6fbae30..af795014ef 100644 --- a/selfdrive/ui/qt/onroad.cc +++ b/selfdrive/ui/qt/onroad.cc @@ -331,10 +331,9 @@ void NvgWindow::drawLaneLines(QPainter &painter, const UIState *s) { // FIXME: painter.drawPolygon can be slow if hue is not rounded curve_hue = int(curve_hue * 100 + 0.5) / 100; - bg.setColorAt(0.0 / 1.5, QColor::fromHslF(148 / 360., 1.0, 0.5, 1.0)); - bg.setColorAt(0.55 / 1.5, QColor::fromHslF(112 / 360., 1.0, 0.68, 0.8)); - bg.setColorAt(0.9 / 1.5, QColor::fromHslF(curve_hue / 360., 1.0, 0.65, 0.6)); - bg.setColorAt(1.0, QColor::fromHslF(curve_hue / 360., 1.0, 0.65, 0.0)); + bg.setColorAt(0.0, QColor::fromHslF(148 / 360., 0.94, 0.51, 0.4)); + bg.setColorAt(0.75 / 1.5, QColor::fromHslF(curve_hue / 360., 1.0, 0.68, 0.35)); + bg.setColorAt(1.0, QColor::fromHslF(curve_hue / 360., 1.0, 0.68, 0.0)); } else { bg.setColorAt(0, whiteColor()); bg.setColorAt(1, whiteColor(0));