// draw the direction indicator triangle only when autocentering is disabled and MapEngine
// doesn't deny drawing (because GPS location item is visible)
if (!isChecked() && m_drawTriangle) {
- const int TRIANGLE_WIDTH = 10;
- const int TRIANGLE_HEIGHT = 10;
- const int TRIANGLE_DISTANCE_FROM_CENTER = 15;
+ const int TRIANGLE_WIDTH = 14;
+ const int TRIANGLE_HEIGHT = 15;
+ const int TRIANGLE_DISTANCE_FROM_CENTER = 13;
const int POINTS = 3;
const QPointF points[POINTS] = {
painter.setTransform(rotationTransform * translateTransform);
// setting the look of the triangle
- painter.setBrush(Qt::red);
- painter.setPen(Qt::red);
+ const QColor TRIANGLE_BACKGROUND_COLOR = QColor("#68d0f8");
+ painter.setBrush(QBrush(TRIANGLE_BACKGROUND_COLOR));
+ painter.setPen(Qt::black);
painter.drawPolygon(points, POINTS);
}