ui: adjust laneless design (#24246)

* tune design

* adjust

* adjust

* fix and compromise!

* fix sl
old-commit-hash: fdeb590ae6
taco
Shane Smiskol 3 years ago committed by GitHub
parent cfd796a210
commit 96ef36dcb4
  1. 7
      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));

Loading…
Cancel
Save