ui: adjust laneless design (#24246)
* tune design * adjust * adjust * fix and compromise! * fix sl old-commit-hash: fdeb590ae66bc2e6d930803c4401cea98d99786b
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user