Added POI text field. Some tuning to detail screen item position.
[jspeed] / src / detailscreen.cpp
index ee2da40..7ef6f10 100644 (file)
@@ -33,7 +33,7 @@ namespace
     QString const DEFAULT_BACKGROUND_COLOR = "#000";
     QString const DEFAULT_COLOR = "#fff";
     int const FONT_SIZE = 20;
-    int const START_HEIGHT = 61;
+    int const START_HEIGHT = 74;
     int const ITEM_WIDTH = 130;
 
 }
@@ -142,7 +142,7 @@ void DetailScreen::reArrange()
 
     int lineHeight = (height - START_HEIGHT) / 8;
 
-    int padding = width / 22;
+    int padding = width / 27;
     int area1 = (width / 3) + ITEM_WIDTH / 2 + 20;
     int area2 = area1 + ITEM_WIDTH;
 
@@ -246,6 +246,9 @@ void DetailScreen::setColor(QString const& color)
     totalLabel_->setDefaultTextColor(c);
     total_->setDefaultTextColor(c);
     totalUnit_->setDefaultTextColor(c);
+    altitudeLabel_->setDefaultTextColor(c);
+    altitude_->setDefaultTextColor(c);
+    altitudeUnit_->setDefaultTextColor(c);
     speedLabel_->setDefaultTextColor(c);
     speed_->setDefaultTextColor(c);
     speedUnit_->setDefaultTextColor(c);