mirror of
https://github.com/dyuri/garmin-repafield.git
synced 2025-12-16 19:24:01 +00:00
fenix (260x260) support
This commit is contained in:
parent
d5fd70ef54
commit
3234078662
@ -11,6 +11,8 @@
|
||||
<iq:product id="epix2pro42mm"/>
|
||||
<iq:product id="epix2pro47mm"/>
|
||||
<iq:product id="epix2pro51mm"/>
|
||||
<iq:product id="fenix7"/>
|
||||
<iq:product id="fenix7pro"/>
|
||||
<iq:product id="fr965"/>
|
||||
<iq:product id="marq2"/>
|
||||
<iq:product id="marq2aviator"/>
|
||||
|
||||
73
resources-round-260x260/layouts.xml
Executable file
73
resources-round-260x260/layouts.xml
Executable file
@ -0,0 +1,73 @@
|
||||
<layouts>
|
||||
<!-- A generic, centered layout. -->
|
||||
<layout id="MainLayout">
|
||||
<drawable class="Background"/>
|
||||
<drawable class="BgOverlay" id="BgOverlay">
|
||||
<param name="x">100</param>
|
||||
<param name="y">42</param>
|
||||
<param name="w">180</param>
|
||||
<param name="h">160</param>
|
||||
<param name="d">-18</param>
|
||||
</drawable>
|
||||
<drawable class="HeartRate" id="HeartRate">
|
||||
<param name="y">42</param>
|
||||
</drawable>
|
||||
<drawable class="Track" />
|
||||
<!-- drawable class="Stamina" /-->
|
||||
|
||||
<!-- hr labels -->
|
||||
<label id="hr" x="center" y="3" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" font="Graphics.FONT_MEDIUM" />
|
||||
<label id="ahr" x="32%" y="11" color="0x888888" justification="Graphics.TEXT_JUSTIFY_CENTER" font="Graphics.FONT_TINY" />
|
||||
<label id="mhr" x="68%" y="11" color="0x888888" justification="Graphics.TEXT_JUSTIFY_CENTER" font="Graphics.FONT_TINY" />
|
||||
|
||||
<!-- time/timer -->
|
||||
<label id="timerHM" x="86" y="172" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_RIGHT" font="Graphics.FONT_MEDIUM" />
|
||||
<label id="timerS" x="87" y="186" color="Graphics.COLOR_LT_GRAY" justification="Graphics.TEXT_JUSTIFY_LEFT" font="Graphics.FONT_XTINY" />
|
||||
<label id="time" x="50%" y="210" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" font="Graphics.FONT_LARGE" />
|
||||
|
||||
<!-- distance/pace/avg pace -->
|
||||
<label id="pace" x="220" y="40" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_RIGHT" font="Graphics.FONT_NUMBER_MEDIUM"/>
|
||||
<bitmap id="iconPace" filename="../resources/drawables/pace.png" x="218" y="68" />
|
||||
<label id="apace" x="220" y="106" color="0x0088FF" justification="Graphics.TEXT_JUSTIFY_RIGHT" font="Graphics.FONT_LARGE"/>
|
||||
<bitmap id="iconAPace" filename="../resources/drawables/apace.png" x="218" y="114" />
|
||||
<label id="distance" x="220" y="140" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_RIGHT" font="Graphics.FONT_NUMBER_MEDIUM" />
|
||||
<label id="distanceLabel" x="222" y="156" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_LEFT" font="Graphics.FONT_XTINY" text="km"/>
|
||||
|
||||
<!-- cadence -->
|
||||
<bitmap id="iconCadence" filename="../resources/drawables/cadence.png" x="24" y="70" />
|
||||
<label id="cadence" x="42" y="58" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_LEFT" font="Graphics.FONT_MEDIUM" />
|
||||
|
||||
<!-- elevation, egain -->
|
||||
<bitmap id="iconHills" filename="../resources/drawables/hills_sm.png" x="12" y="92" />
|
||||
<label id="elevation" x="42" y="86" color="0x0088FF" justification="Graphics.TEXT_JUSTIFY_LEFT" font="Graphics.FONT_MEDIUM"/>
|
||||
<bitmap id="iconEGain" filename="../resources/drawables/e_gain_sm.png" x="12" y="120" />
|
||||
<label id="elevationGain" x="42" y="114" color="0x0088FF" justification="Graphics.TEXT_JUSTIFY_LEFT" font="Graphics.FONT_MEDIUM"/>
|
||||
<bitmap id="iconELoss" filename="../resources/drawables/e_loss_sm.png" x="12" y="148" />
|
||||
<label id="elevationLoss" x="42" y="142" color="0x0088FF" justification="Graphics.TEXT_JUSTIFY_LEFT" font="Graphics.FONT_MEDIUM"/>
|
||||
|
||||
</layout>
|
||||
|
||||
<!-- Layouts used for the for the four quadrants. -->
|
||||
<layout id="TopLayout">
|
||||
<drawable class="Background" />
|
||||
<drawable class="HeartRate" id="HeartRate">
|
||||
<param name="y">42</param>
|
||||
</drawable>
|
||||
|
||||
<!-- hr labels -->
|
||||
<label id="hr" x="center" y="6" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" font="Graphics.FONT_MEDIUM" />
|
||||
<label id="ahr" x="32%" y="18" color="0x888888" justification="Graphics.TEXT_JUSTIFY_CENTER" font="Graphics.FONT_TINY" />
|
||||
<label id="mhr" x="68%" y="18" color="0x888888" justification="Graphics.TEXT_JUSTIFY_CENTER" font="Graphics.FONT_TINY" />
|
||||
</layout>
|
||||
<layout id="BottomLayout">
|
||||
<drawable class="Background" />
|
||||
<drawable class="HeartRate" id="HeartRate">
|
||||
<param name="y">42</param>
|
||||
</drawable>
|
||||
|
||||
<!-- hr labels -->
|
||||
<label id="hr" x="center" y="72" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" font="Graphics.FONT_MEDIUM" />
|
||||
<label id="ahr" x="32%" y="72" color="0x888888" justification="Graphics.TEXT_JUSTIFY_CENTER" font="Graphics.FONT_TINY" />
|
||||
<label id="mhr" x="68%" y="72" color="0x888888" justification="Graphics.TEXT_JUSTIFY_CENTER" font="Graphics.FONT_TINY" />
|
||||
</layout>
|
||||
</layouts>
|
||||
BIN
resources/drawables/e_gain_sm.png
Normal file
BIN
resources/drawables/e_gain_sm.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.9 KiB |
BIN
resources/drawables/e_loss_sm.png
Normal file
BIN
resources/drawables/e_loss_sm.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.9 KiB |
BIN
resources/drawables/hills_sm.png
Normal file
BIN
resources/drawables/hills_sm.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.9 KiB |
@ -1,6 +1,6 @@
|
||||
<properties>
|
||||
<property id="appVersion" type="string">1.0.0</property>
|
||||
<property id="appVersion" type="string">1.0.3</property>
|
||||
<property id="themeColor" type="string">0088FF</property>
|
||||
<property id="themeColor2" type="string">0088FF</property>
|
||||
<property id="themeColor3" type="string">FFFF00</property>
|
||||
</properties>
|
||||
</properties>
|
||||
|
||||
@ -37,7 +37,7 @@ class HeartRate extends WatchUi.Drawable {
|
||||
}
|
||||
|
||||
function draw(dc as Dc) as Void {
|
||||
dc.setPenWidth(8);
|
||||
dc.setPenWidth((dc.getHeight() * 0.02).toNumber());
|
||||
dc.setColor(0x555555, Graphics.COLOR_TRANSPARENT);
|
||||
var width = dc.getWidth();
|
||||
dc.drawLine(width * .1, y, width * .9, y);
|
||||
|
||||
@ -48,7 +48,7 @@ class Track extends WatchUi.Drawable {
|
||||
var h = dc.getHeight();
|
||||
var astart = 150;
|
||||
var aend = 390;
|
||||
dc.setPenWidth(4);
|
||||
dc.setPenWidth((dc.getWidth() * 0.01).toNumber());
|
||||
dc.setColor(0x555555, Graphics.COLOR_TRANSPARENT);
|
||||
dc.drawArc(w / 2, h / 2, w / 2 - 2, Graphics.ARC_COUNTER_CLOCKWISE, astart, aend);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user