Fine tuned the direction indicator arrow look
authorSami Rämö <sami.ramo@ixonos.com>
Fri, 27 Aug 2010 13:22:23 +0000 (16:22 +0300)
committerSami Rämö <sami.ramo@ixonos.com>
Fri, 27 Aug 2010 13:22:23 +0000 (16:22 +0300)
 - Reviewed by Jussi Laitinen

src/ui/indicatorbutton.cpp

index 81bc7b2..02b58d9 100644 (file)
@@ -136,9 +136,9 @@ void IndicatorButton::paintEvent(QPaintEvent *event)
     // 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] = {
@@ -159,8 +159,9 @@ void IndicatorButton::paintEvent(QPaintEvent *event)
         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);
     }