diff --git a/.gitignore b/.gitignore
index 5e56e04..612d800 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,6 @@
/bin
+/gen
+/mir
+/internal-mir
+RepaField.prg
+RepaField.prg.debug.xml
diff --git a/TODO.md b/TODO.md
index 155f1cc..82cf3b5 100644
--- a/TODO.md
+++ b/TODO.md
@@ -3,3 +3,7 @@
- configurable theme color
- pace/speed based on sport
- imperial unit support
+
+- hr gauge => hr zone distribution
+- track color => color coded by elevation gain/loss (or even vertical speed)
+- https://github.com/loukad/vertlover
diff --git a/resources/drawables/drawables.xml b/resources/drawables/drawables.xml
index a22c33c..b240346 100755
--- a/resources/drawables/drawables.xml
+++ b/resources/drawables/drawables.xml
@@ -1,3 +1,4 @@
+
diff --git a/resources/drawables/e_gain.png b/resources/drawables/e_gain.png
new file mode 100644
index 0000000..e47d097
Binary files /dev/null and b/resources/drawables/e_gain.png differ
diff --git a/resources/drawables/e_loss.png b/resources/drawables/e_loss.png
new file mode 100644
index 0000000..246dc11
Binary files /dev/null and b/resources/drawables/e_loss.png differ
diff --git a/resources/drawables/hills.png b/resources/drawables/hills.png
new file mode 100644
index 0000000..63a7a0d
Binary files /dev/null and b/resources/drawables/hills.png differ
diff --git a/resources/layouts/layouts.xml b/resources/layouts/layouts.xml
index a034d4c..0a6fdf2 100755
--- a/resources/layouts/layouts.xml
+++ b/resources/layouts/layouts.xml
@@ -38,12 +38,12 @@
+
-
+
-
+
-
diff --git a/source/RepaFieldView.mc b/source/RepaFieldView.mc
index 61d7167..50219d8 100644
--- a/source/RepaFieldView.mc
+++ b/source/RepaFieldView.mc
@@ -264,6 +264,7 @@ class RepaFieldView extends WatchUi.DataField {
// alt/egain/edrop
var altField = View.findDrawableById("elevation") as Text;
if (altField != null) {
+ // draw icon
altField.setText(altitude.format("%.0f"));
}
var eGainField = View.findDrawableById("elevationGain") as Text;
@@ -300,6 +301,17 @@ class RepaFieldView extends WatchUi.DataField {
// Call parent's onUpdate(dc) to redraw the layout
View.onUpdate(dc);
+ // var bitmap = WatchUi.loadResource(Rez.Drawables.iconHills);
+ // dc.drawBitmap(132, 132, bitmap);
+ // TODO
+ /*
+ var bm = new WatchUi.Bitmap({
+ :rezId => Rez.Drawables.iconHills,
+ :locX => 132,
+ :locY => 132
+ });
+ bm.draw(dc);
+ */
}
}