icons
BIN
resources/drawables/apace.png
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
resources/drawables/cadence.png
Normal file
|
After Width: | Height: | Size: 932 B |
|
Before Width: | Height: | Size: 885 B After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 869 B After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 907 B After Width: | Height: | Size: 4.5 KiB |
BIN
resources/drawables/pace.png
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
@ -3,11 +3,11 @@
|
||||
<layout id="MainLayout">
|
||||
<drawable class="Background"/>
|
||||
<drawable class="BgOverlay" id="BgOverlay">
|
||||
<param name="x">142</param>
|
||||
<param name="x">158</param>
|
||||
<param name="y">62</param>
|
||||
<param name="w">280</param>
|
||||
<param name="h">260</param>
|
||||
<param name="d">-30</param>
|
||||
<param name="d">-32</param>
|
||||
</drawable>
|
||||
<drawable class="HeartRate" id="HeartRate">
|
||||
<param name="y">64</param>
|
||||
@ -26,24 +26,24 @@
|
||||
<label id="time" x="center" y="330" color="0xDDFF88" justification="Graphics.TEXT_JUSTIFY_CENTER" font="Graphics.FONT_LARGE" />
|
||||
|
||||
<!-- distance/pace/avg pace -->
|
||||
<label id="pace" x="82%" y="80" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_RIGHT" font="Graphics.FONT_NUMBER_MEDIUM" text="12.34"/>
|
||||
<label id="paceLabel" x="83%" y="136" color="0x004488" justification="Graphics.TEXT_JUSTIFY_LEFT" font="Graphics.FONT_XTINY" text="pace"/>
|
||||
<label id="apace" x="82%" y="178" color="0x4488FF" justification="Graphics.TEXT_JUSTIFY_RIGHT" font="Graphics.FONT_LARGE" text="12.34"/>
|
||||
<label id="apaceLabel" x="83%" y="200" color="0x004488" justification="Graphics.TEXT_JUSTIFY_LEFT" font="Graphics.FONT_XTINY" text="apace"/>
|
||||
<label id="distance" x="82%" y="224" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_RIGHT" font="Graphics.FONT_NUMBER_MEDIUM" />
|
||||
<label id="distanceLabel" x="83%" y="272" color="0x004488" justification="Graphics.TEXT_JUSTIFY_LEFT" font="Graphics.FONT_TINY" text="km"/>
|
||||
<label id="pace" x="360" y="80" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_RIGHT" font="Graphics.FONT_NUMBER_MEDIUM" text="12.34"/>
|
||||
<bitmap id="iconPace" filename="../drawables/pace.png" x="362" y="132" />
|
||||
<label id="apace" x="360" y="178" color="0x4488FF" justification="Graphics.TEXT_JUSTIFY_RIGHT" font="Graphics.FONT_LARGE" text="12.34"/>
|
||||
<bitmap id="iconAPace" filename="../drawables/apace.png" x="362" y="198" />
|
||||
<label id="distance" x="360" y="224" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_RIGHT" font="Graphics.FONT_NUMBER_MEDIUM" />
|
||||
<label id="distanceLabel" x="364" y="246" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_LEFT" font="Graphics.FONT_XTINY" text="km"/>
|
||||
|
||||
<!-- cadence -->
|
||||
<label id="cadence" x="13%" y="92" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_LEFT" font="Graphics.FONT_MEDIUM" />
|
||||
<label id="cadenceLabel" x="12%" y="98" color="0x004488" justification="Graphics.TEXT_JUSTIFY_RIGHT" font="Graphics.FONT_SMALL" text="c"/>
|
||||
<bitmap id="iconCadence" filename="../drawables/cadence.png" x="36" y="116" />
|
||||
<label id="cadence" x="62" y="92" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_LEFT" font="Graphics.FONT_MEDIUM" />
|
||||
|
||||
<!-- elevation, egain -->
|
||||
<bitmap id="iconHills" filename="../drawables/hills.png" x="20" y="144" />
|
||||
<label id="elevation" x="13%" y="132" color="0x0088FF" justification="Graphics.TEXT_JUSTIFY_LEFT" font="Graphics.FONT_MEDIUM"/>
|
||||
<bitmap id="iconEGain" filename="../drawables/e_gain.png" x="20" y="184" />
|
||||
<label id="elevationGain" x="13%" y="172" color="0x0088FF" justification="Graphics.TEXT_JUSTIFY_LEFT" font="Graphics.FONT_MEDIUM"/>
|
||||
<bitmap id="iconELoss" filename="../drawables/e_loss.png" x="20" y="224" />
|
||||
<label id="elevationLoss" x="13%" y="212" color="0x0088FF" justification="Graphics.TEXT_JUSTIFY_LEFT" font="Graphics.FONT_MEDIUM"/>
|
||||
<bitmap id="iconHills" filename="../drawables/hills.png" x="22" y="144" />
|
||||
<label id="elevation" x="62" y="132" color="0x0088FF" justification="Graphics.TEXT_JUSTIFY_LEFT" font="Graphics.FONT_MEDIUM"/>
|
||||
<bitmap id="iconEGain" filename="../drawables/e_gain.png" x="22" y="184" />
|
||||
<label id="elevationGain" x="62" y="172" color="0x0088FF" justification="Graphics.TEXT_JUSTIFY_LEFT" font="Graphics.FONT_MEDIUM"/>
|
||||
<bitmap id="iconELoss" filename="../drawables/e_loss.png" x="22" y="224" />
|
||||
<label id="elevationLoss" x="62" y="212" color="0x0088FF" justification="Graphics.TEXT_JUSTIFY_LEFT" font="Graphics.FONT_MEDIUM"/>
|
||||
|
||||
</layout>
|
||||
|
||||
|
||||
@ -32,7 +32,7 @@ class RepaFieldView extends WatchUi.DataField {
|
||||
ahrValue = 0;
|
||||
mhrValue = 0;
|
||||
hrZones = UserProfile.getHeartRateZones(UserProfile.getCurrentSport());
|
||||
hrZoneColors = [Graphics.COLOR_BLACK, Graphics.COLOR_LT_GRAY, Graphics.COLOR_BLUE, Graphics.COLOR_GREEN, Graphics.COLOR_YELLOW, Graphics.COLOR_RED, Graphics.COLOR_DK_RED];
|
||||
hrZoneColors = [Graphics.COLOR_DK_GRAY, Graphics.COLOR_LT_GRAY, Graphics.COLOR_BLUE, Graphics.COLOR_GREEN, Graphics.COLOR_YELLOW, Graphics.COLOR_RED, Graphics.COLOR_DK_RED];
|
||||
cadenceZones = [153, 163, 173, 183];
|
||||
cadenceZoneColors = [Graphics.COLOR_RED, Graphics.COLOR_YELLOW, Graphics.COLOR_GREEN, Graphics.COLOR_BLUE, Graphics.COLOR_PURPLE];
|
||||
toDestination = 0.0f;
|
||||
@ -301,17 +301,6 @@ 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);
|
||||
*/
|
||||
}
|
||||
|
||||
}
|
||||
|
||||