mirror of
https://github.com/dyuri/garmin-repafield.git
synced 2025-12-16 11:14:16 +00:00
fenix 8 support
This commit is contained in:
parent
8a82a256f2
commit
1874c52bba
16
manifest.xml
16
manifest.xml
@ -7,9 +7,13 @@
|
||||
<iq:product id="approachs7047mm"/>
|
||||
<iq:product id="d2airx10"/>
|
||||
<iq:product id="d2mach1"/>
|
||||
<iq:product id="descentmk343mm"/>
|
||||
<iq:product id="descentmk351mm"/>
|
||||
<iq:product id="enduro3"/>
|
||||
<iq:product id="epix2"/>
|
||||
<iq:product id="epix2pro42mm"/>
|
||||
<iq:product id="epix2pro47mm"/>
|
||||
<iq:product id="epix2pro47mmsystem7preview"/>
|
||||
<iq:product id="epix2pro51mm"/>
|
||||
<iq:product id="fenix5plus"/>
|
||||
<iq:product id="fenix5splus"/>
|
||||
@ -19,13 +23,24 @@
|
||||
<iq:product id="fenix6xpro"/>
|
||||
<iq:product id="fenix7"/>
|
||||
<iq:product id="fenix7pro"/>
|
||||
<iq:product id="fenix7pronowifi"/>
|
||||
<iq:product id="fenix7s"/>
|
||||
<iq:product id="fenix7spro"/>
|
||||
<iq:product id="fenix7x"/>
|
||||
<iq:product id="fenix7xpro"/>
|
||||
<iq:product id="fenix7xpronowifi"/>
|
||||
<iq:product id="fenix843mm"/>
|
||||
<iq:product id="fenix847mm"/>
|
||||
<iq:product id="fenix8solar47mm"/>
|
||||
<iq:product id="fenix8solar51mm"/>
|
||||
<iq:product id="fenixe"/>
|
||||
<iq:product id="fr165"/>
|
||||
<iq:product id="fr165m"/>
|
||||
<iq:product id="fr245m"/>
|
||||
<iq:product id="fr255"/>
|
||||
<iq:product id="fr255m"/>
|
||||
<iq:product id="fr265"/>
|
||||
<iq:product id="fr265s"/>
|
||||
<iq:product id="fr945"/>
|
||||
<iq:product id="fr945lte"/>
|
||||
<iq:product id="fr955"/>
|
||||
@ -42,6 +57,7 @@
|
||||
<iq:product id="marqgolfer"/>
|
||||
<iq:product id="venu2"/>
|
||||
<iq:product id="venu2plus"/>
|
||||
<iq:product id="venu2s"/>
|
||||
<iq:product id="venu3"/>
|
||||
<iq:product id="venu3s"/>
|
||||
<iq:product id="vivoactive5"/>
|
||||
|
||||
72
resources-round-360x360/layouts.xml
Executable file
72
resources-round-360x360/layouts.xml
Executable file
@ -0,0 +1,72 @@
|
||||
<layouts>
|
||||
<!-- A generic, centered layout. -->
|
||||
<layout id="MainLayout">
|
||||
<drawable class="Background"/>
|
||||
<drawable class="BgOverlay" id="BgOverlay">
|
||||
<param name="x">150</param>
|
||||
<param name="y">52</param>
|
||||
<param name="h">230</param>
|
||||
<param name="d">-32</param>
|
||||
</drawable>
|
||||
<drawable class="HeartRate" id="HeartRate">
|
||||
<param name="y">54</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="12" color="0x888888" justification="Graphics.TEXT_JUSTIFY_CENTER" font="Graphics.FONT_TINY" />
|
||||
<label id="mhr" x="68%" y="12" color="0x888888" justification="Graphics.TEXT_JUSTIFY_CENTER" font="Graphics.FONT_TINY" />
|
||||
|
||||
<!-- time/timer -->
|
||||
<label id="timerHM" x="132" y="238" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_RIGHT" font="Graphics.FONT_MEDIUM" />
|
||||
<label id="timerS" x="134" y="258" color="Graphics.COLOR_LT_GRAY" justification="Graphics.TEXT_JUSTIFY_LEFT" font="Graphics.FONT_XTINY" />
|
||||
<label id="time" x="50%" y="300" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" font="Graphics.FONT_LARGE" />
|
||||
|
||||
<!-- distance/pace/avg pace -->
|
||||
<label id="pace" x="315" y="60" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_RIGHT" font="Graphics.FONT_NUMBER_MILD"/>
|
||||
<label id="iconPace" x="317" y="102" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_LEFT" font="@Fonts.repafield_icons" text="1" />
|
||||
<label id="apace" x="315" y="143" color="0x0088FF" justification="Graphics.TEXT_JUSTIFY_RIGHT" font="Graphics.FONT_LARGE"/>
|
||||
<label id="iconAPace" x="317" y="163" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_LEFT" font="@Fonts.repafield_icons" text="2" />
|
||||
<label id="distance" x="315" y="200" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_RIGHT" font="Graphics.FONT_NUMBER_MILD" />
|
||||
<label id="distanceLabel" x="317" y="220" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_LEFT" font="Graphics.FONT_XTINY" text="km"/>
|
||||
|
||||
<!-- cadence -->
|
||||
<label id="iconCadence" x="30" y="91" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_LEFT" font="@Fonts.repafield_icons" text="5" />
|
||||
<label id="cadence" x="62" y="77" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_LEFT" font="Graphics.FONT_MEDIUM" />
|
||||
|
||||
<!-- elevation, egain -->
|
||||
<label id="iconHills" x="22" y="129" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_LEFT" font="@Fonts.repafield_icons" text="0" />
|
||||
<label id="elevation" x="62" y="117" color="0x0088FF" justification="Graphics.TEXT_JUSTIFY_LEFT" font="Graphics.FONT_MEDIUM"/>
|
||||
<label id="iconEGain" x="22" y="169" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_LEFT" font="@Fonts.repafield_icons" text="3" />
|
||||
<label id="elevationGain" x="62" y="157" color="0x0088FF" justification="Graphics.TEXT_JUSTIFY_LEFT" font="Graphics.FONT_MEDIUM"/>
|
||||
<label id="iconELoss" x="22" y="209" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_LEFT" font="@Fonts.repafield_icons" text="4" />
|
||||
<label id="elevationLoss" x="62" y="197" 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">64</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">64</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>
|
||||
@ -1,5 +1,5 @@
|
||||
<properties>
|
||||
<property id="appVersion" type="string">2.0.2</property>
|
||||
<property id="appVersion" type="string">2.0.4</property>
|
||||
<property id="themeColor" type="string">0</property>
|
||||
<property id="themeColor2" type="string">0088FF</property>
|
||||
<property id="themeColor3" type="string">00AA55</property>
|
||||
|
||||
@ -17,8 +17,8 @@ class RepaFieldApp extends Application.AppBase {
|
||||
}
|
||||
|
||||
//! Return the initial view of your application here
|
||||
function getInitialView() as Array<Views or InputDelegates>? {
|
||||
return [ new RepaFieldView() ] as Array<Views or InputDelegates>;
|
||||
function getInitialView() {
|
||||
return [new RepaFieldView() as View];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -63,7 +63,7 @@ class RepaFieldView extends WatchUi.DataField {
|
||||
hidden var cadenceZoneColors as Array<Number>;
|
||||
hidden var gradeZones as Array<Number>;
|
||||
hidden var gradeZoneColors as Array<Number>;
|
||||
hidden var vsZones as Array<Number>;
|
||||
hidden var vsZones as Array<Float>;
|
||||
hidden var vsZoneColors as Array<Number>;
|
||||
hidden var isDistanceMetric as Boolean;
|
||||
hidden var isElevationMetric as Boolean;
|
||||
@ -554,7 +554,7 @@ class RepaFieldView extends WatchUi.DataField {
|
||||
fitGradeLapAvg.setData(avgLGrade * 100);
|
||||
}
|
||||
if (fitGAP != null) {
|
||||
fitGAP.setData(cgap ? cgap : 60);
|
||||
fitGAP.setData(cgap ? cgap : 0);
|
||||
}
|
||||
if (fitVSpeed != null) {
|
||||
fitVSpeed.setData(cvspeed ? cvspeed : 0);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user